[LU-1162] debugfs 1.41.90.wc3 not printing path on mdt Created: 01/Mar/12  Updated: 09/Jul/12  Resolved: 09/Jul/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mahmoud Hanafi Assignee: Cliff White (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Lustre 2.1 and e2fsprogs-1.41.90.wc3


Severity: 3
Rank (Obsolete): 6439

 Description   

I am trying to use debugfs to get the fullpath for a ost object.

running on OST
service151 ~/e2fsprogs-1.41.90.wc3/e2scan # debugfs -R "stat /O/0/d0/65504" /dev/mapper/ddn5a-nbp5-ost16
debugfs 1.41.90.wc3 (28-May-2011)
Inode: 7995447 Type: regular Mode: 0666 Flags: 0x80000
Generation: 2244192670 Version: 0x00000000:006fd7ad
User: 4806 Group: 1128 Size: 14680064
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 28672
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x4f1df040:00000000 – Mon Jan 23 15:41:52 2012
atime: 0x80015180:00000003 – Tue Jan 19 19:14:08 2038
mtime: 0x4f1df040:00000000 – Mon Jan 23 15:41:52 2012
crtime: 0x4f1dc599:1f4238f8 – Mon Jan 23 12:39:53 2012
Size of extra inode fields: 28
Extended attributes stored in inode body:
fid = "6f 1d 00 eb 0e 00 00 02 00 00 00 00 1f 00 00 00 e0 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " (32)
fid: objid=65504 seq=0 parent=[0x200000eeb001d6f:0x0:0x0] stripe=31
EXTENTS:
(0-2047):9906176-9908223, (2048-3583):9914368-9915903

Now Run on MDT to get full path

service150 ~ # debugfs -V
debugfs 1.41.90.wc3 (28-May-2011)
Using EXT2FS Library version 1.41.90.wc3
service150 ~ # debugfs R 'ncheck 0x200000eeb001d6f' /dev/mapper/nbp5-vg-mdt5
debugfs 1.41.90.wc3 (28-May-2011)
Inode Pathname



 Comments   
Comment by Peter Jones [ 02/Mar/12 ]

Bobi

Could you please comment on this one?

Thanks

Peter

Comment by Andreas Dilger [ 02/Mar/12 ]

For the second step, where you are looking up the FID on the MDS, you should instead be using "lfs fid2path

{FID}

" on any client to resolve the pathname. That is considerably faster than the debugfs mechanism (which doesn't work on 2.x files).

Comment by Mahmoud Hanafi [ 02/Mar/12 ]

Got it thanks. Should update the lustre2.x docs. You can close this.


Mahmoud Hanafi
NASA Ames Research Center
Mail Stop 258-6
Bldg. 258
P.O. Box 1
Moffett Field, CA 94035-0001

Office: 650-604-1454
Cell: 510-386-0615

Comment by Peter Jones [ 01/Jun/12 ]

Cliff another doc issue

Comment by Cliff White (Inactive) [ 09/Jul/12 ]

LUDOC-64 opened to track the documentation update. Closing this bug.

Generated at Sat Feb 10 01:14:06 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.