Many Thanks Daniel, these hints are very helpful.<br><br>Wojciech<br><br><div class="gmail_quote">2009/10/21 Daniel Kobras <span dir="ltr"><<a href="mailto:kobras@linux.de">kobras@linux.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br>
<div class="im"><br>
On Wed, Oct 21, 2009 at 11:58:43AM +0100, Wojciech Turek wrote:<br>
> I apologize if this question was answered earlier but I can not find it in<br>
> the mailing list.<br>
> I have an object ID and I would like to find file that this object is part<br>
> of. I tried to use lfs find but I can not seem to find right combination of<br>
> options.<br>
<br>
</div>On a Lustre client, I'm not aware of any better method than using a combination<br>
of lfs find and lfs getstripe to look for matching object IDs.  On the servers,<br>
Andreas Dilger has described a more efficient way using debugfs in<br>
<a href="http://lists.lustre.org/pipermail/lustre-discuss/2009-July/011080.html" target="_blank">http://lists.lustre.org/pipermail/lustre-discuss/2009-July/011080.html</a><br>
<div class="im"><br>
> Also is there a simple way to list all the files and their object IDs?<br>
<br>
</div>I'm not sure whether it counts as "simple", but this is what I'm using:<br>
<br>
lfs find . -type f -print0 | while IFS='' read -d '' i; do echo "$i"; lfs getstripe -q "$i"; done<br>
<br>
Regards,<br>
<br>
Daniel.<br>
<br>
_______________________________________________<br>
Lustre-discuss mailing list<br>
<a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/mailman/listinfo/lustre-discuss" target="_blank">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>--<br>Wojciech Turek<br><br>Assistant System Manager<br><br>High Performance Computing Service<br>University of Cambridge<br>Email: <a href="mailto:wjt27@cam.ac.uk">wjt27@cam.ac.uk</a><br>
Tel: (+)44 1223 763517 <br>