Re: cephfs map command deprecated

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

 



On 4/22/15, 2:08 PM, "Gregory Farnum" <greg@xxxxxxxxxxx> wrote:

>On Wed, Apr 22, 2015 at 12:35 PM, Stillwell, Bryan
><bryan.stillwell@xxxxxxxxxxx> wrote:
>> I have a PG that is in the active+inconsistent state and found the
>> following objects to have differing md5sums:
>>
>> -fa8298048c1958de3c04c71b2f225987
>> ./DIR_5/DIR_0/DIR_D/DIR_9/10000008a75.0000017c__head_502F9D05__0
>> +b089c2dcd4f1d8b4419ba34fe468f784
>> ./DIR_5/DIR_0/DIR_D/DIR_9/10000008a75.0000017c__head_502F9D05__0
>> -d3e18fd503ee8ba42792fc41eadfc328
>> ./DIR_5/DIR_0/DIR_D/DIR_9/1000000aea5.00001535__head_3C0C9D05__0
>> -85a1cf9fae40333ce1145b88bbcf0278
>> ./DIR_5/DIR_0/DIR_D/DIR_9/1000000aeaa.00000c1e__head_BA1F9D05__0
>> -4da9b1c2e81a72e2aecbfd10dc0e217a
>> ./DIR_5/DIR_0/DIR_D/DIR_9/1000000aec4.00000014__head_736F9D05__0
>> +0a0c530b547996666988863c2364b077
>> ./DIR_5/DIR_0/DIR_D/DIR_9/1000000aea5.00001535__head_3C0C9D05__0
>> +86eea720d66d0792e8a1da8ea57e74f7
>> ./DIR_5/DIR_0/DIR_D/DIR_9/1000000aeaa.00000c1e__head_BA1F9D05__0
>> +75c9085ffb66879326a6f1021586e60f
>> ./DIR_5/DIR_0/DIR_D/DIR_9/1000000aec4.00000014__head_736F9D05__0
>>
>>
>>
>> I would like to know which files are associated with these objects, but
>> one of the commands I used to use doesn't appear to work any more:
>>
>> # cephfs MVI_2553.MOV map
>> WARNING: This tool is deprecated.  Use the layout.* xattrs to query and
>> modify layouts.
>>     FILE OFFSET                    OBJECT        OFFSET        LENGTH
>>OSD
>> Error getting location: (22) Invalid argument
>>
>>
>> I tried looking at the layout information on this page, but it doesn't
>> contain the name of the object from what I can tell:
>
>Hmm, yeah. The object names are just <inode number in hex>.<file
>part>. So you don't even need the layout info to know what objects to
>look at. :)

Thanks!  In case anyone else wants to know what the solution was in the
future, this worked well for me:

for inode in 10000008a75 1000000aea5 1000000aeaa 1000000aec4; do
    ls -li | grep $((0x${inode}))
done


Bryan


This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.
_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux