Re: "stray" objects in empty cephfs data pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 12, 2015 at 12:50 AM, Burkhard Linke
<Burkhard.Linke@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> On 10/08/2015 09:14 PM, John Spray wrote:
>>
>> On Thu, Oct 8, 2015 at 7:23 PM, Gregory Farnum <gfarnum@xxxxxxxxxx> wrote:
>>>
>>> On Thu, Oct 8, 2015 at 6:29 AM, Burkhard Linke
>>> <Burkhard.Linke@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>>>
>>>> Hammer 0.94.3 does not support a 'dump cache' mds command.
>>>> 'dump_ops_in_flight' does not list any pending operations. Is there any
>>>> other way to access the cache?
>>>
>>> "dumpcache", it looks like. You can get all the supported commands
>>> with "help" and look for things of interest or alternative phrasings.
>>> :)
>>
>> To head off any confusion for someone trying to just replace dump
>> cache with dumpcache: "dump cache" is the new (post hammer,
>> apparently) admin socket command, dumpcache is the old tell command.
>> So it's "ceph mds tell <mds.whoever> dumpcache <filename>".
>
> Thanks, that did the trick. I was able to locate the host blocking the file
> handles and remove the objects from the EC pool.
>
> Well, all except one:
>
> # ceph df
>   ...
>     ec_ssd_cache             18      4216k         0 2500G          129
>     cephfs_ec_data           19      4096k         0 31574G            1
>
> # rados -p ec_ssd_cache ls
> 10000ef540f.00000386
> # rados -p cephfs_ec_data ls
> 10000ef540f.00000386
> # ceph mds tell cb-dell-pe620r dumpcache cache.file
> # grep 10000ef540f /cache.file
> #
>
> It does not show up in the dumped cache file, but keeps being promoted to
> the cache tier after MDS restarts. I've restarted most of the cephfs clients
> by unmounting cephfs and restarting ceph-fuse, but the object remains
> active.

You can enable MDS debug logging and see if the inode shows up in the
log during replay. It's possible it's getting read in (from journal
operations) but then getting evicted from cache if nobody's accessing
it any more.
You can also look at the xattrs on the object to see what the
backtrace is and if that file is in cephfs.
-Greg

>
>
> Regards,
> Burkhard
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux