[Lustre-discuss] object to OST inode to MDS inode to filename

Jim Harm harm1 at llnl.gov
Fri Aug 8 14:23:56 PDT 2008


Sorry about subject on first try.

I am trying to track logged errors upstream from the error to the
file that may have been affected.

What is the easy(and not so dangerous) way to:

1. derive OST inode from OST object?
OST object modulo 32 for directory on OST
then run debug.ldiskfs(stat) the file(ost object),
after cd into O/0/d$modulo_number,
that displays inode of object on the OST

2. derive MDS inode from OST inode?
use a tool that is nice uses OST inode and gives me the mds inode or
decode using source code the extended attributes
that are in some hex string that is in the output
from the debugfs step above at "fid =" line.

3.derive filename from MDS inode?
run debug.ldiskfs(ncheck) the MDS inode
that displays the filename.

PS; debug.ldiskfs used with -c option to load faster.

-- 
}}}===============>>  LLNL
James E. Harm (Jim); jharm at llnl.gov
System Administrator, ICCD Clusters
(925) 422-4018 Page: 423-7705x57152



More information about the lustre-discuss mailing list