All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Drunkard Zhang <gongfan193@gmail.com>
Cc: maillist-linux <ceph-devel@vger.kernel.org>
Subject: Re: Empty directory size greater than zero and can't remove
Date: Wed, 19 Dec 2012 16:48:13 +1300	[thread overview]
Message-ID: <50D138FD.3090502@catalyst.net.nz> (raw)
In-Reply-To: <CAJiejCTTHVOXHK71Quw4SfXHL7R2NXJDV-S+JdZ0ZVWbLQqOwQ@mail.gmail.com>

On 19/12/12 15:56, Drunkard Zhang wrote:
> 2012/12/19 Mark Kirkwood <mark.kirkwood@catalyst.net.nz>:
>> On 19/12/12 14:44, Drunkard Zhang wrote:
>>> 2012/12/16 Drunkard Zhang <gongfan193@gmail.com>:
>>>> I couldn't rm files in ceph, which was backuped files of one osd. It
>>>> reports direcory not empty, but there's nothing under that directory,
>>>> just the directory itself held some spaces. How could I shoot down the
>>>> problem ?
>>>>
>>>> log30 /mnt/bc # ls -aR osd.28/
>>>> osd.28/:
>>>> .  ..  osd.28
>>>>
>>>> osd.28/osd.28:
>>>> .  ..  current
>>>>
>>>> osd.28/osd.28/current:
>>>> .  ..  0.537_head
>>>>
>>>> osd.28/osd.28/current/0.537_head:
>>>> .  ..
>>>> log30 /mnt/bc # ls -lhd osd.28/osd.28/current/0.537_head
>>>> drwxr-xr-x 1 root root 119M Dec 14 19:22 osd.28/osd.28/current/0.537_head
>>>> log30 /mnt/bc #
>>>> log30 /mnt/bc # rm -rf osd.28/
>>>> rm: cannot remove ‘osd.28/osd.28/current/0.537_head’: Directory not empty
>>>> log30 /mnt/bc # rm -rf osd.28/osd.28/current/0.537_head
>>>> rm: cannot remove ‘osd.28/osd.28/current/0.537_head’: Directory not empty
>>>>
>>>> The cluster seems health:
>>>> log3 ~ # ceph -s
>>>>      health HEALTH_OK
>>>>      monmap e1: 3 mons at
>>>>
>>>> {log21=10.205.118.21:6789/0,log3=10.205.119.2:6789/0,squid86-log12=150.164.100.218:6789/0},
>>>> election epoch 640, quorum 0,1,2 log21,log3,squid86-log12
>>>>      osdmap e1864: 45 osds: 45 up, 45 in
>>>>       pgmap v163907: 9224 pgs: 9224 active+clean; 3168 GB data, 9565 GB
>>>> used, 111 TB / 120 TB avail
>>>>      mdsmap e134: 1/1/1 up {0=log14=up:active}, 1 up:standby
>>>>
>>> After mds restart, I got this error message:
>>> 2012-12-19 09:16:24.837045 mds.0 [ERR] unmatched fragstat size on
>>> single dirfrag 100000006c7, inode has f(v6 m2012-11-24 23:18:34.947266
>>> 1773=1773+0), dirfrag has f(v6 m2012-12-17 12:43:52.203358
>>> 2038=2038+0)
>>>
>>> How can I fix this?
>>>
>> Is it a btrfs filesystem? If so will have sub volumes hiding in there you
>> need to remove 1st.
> Thanks for reply, osds all lives on xfs filesystem.

Ah, right - might be worth showing us output of 'ls -la' in the dir 
concerned. In particular the link counts might be wrong (indicating fs 
corruption, probably fixable with xfs_repair).

Cheers

Mark
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-12-19  3:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16  2:04 Empty directory size greater than zero and can't remove Drunkard Zhang
2012-12-19  1:44 ` Drunkard Zhang
2012-12-19  2:13   ` Mark Kirkwood
2012-12-19  2:56     ` Drunkard Zhang
2012-12-19  3:48       ` Mark Kirkwood [this message]
2012-12-19  3:51         ` Sage Weil
2012-12-19 16:31           ` Drunkard Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50D138FD.3090502@catalyst.net.nz \
    --to=mark.kirkwood@catalyst.net.nz \
    --cc=ceph-devel@vger.kernel.org \
    --cc=gongfan193@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.