I apologize if this question was answered earlier but I can not find it in the mailing list. I have an object ID and I would like to find file that this object is part of. I tried to use lfs find but I can not seem to find right combination of options. Also is there a simple way to list all the files and their object IDs? Many thanks for your help Wojciech -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091021/67ccce48/attachment.html
Hi! On Wed, Oct 21, 2009 at 11:58:43AM +0100, Wojciech Turek wrote:> I apologize if this question was answered earlier but I can not find it in > the mailing list. > I have an object ID and I would like to find file that this object is part > of. I tried to use lfs find but I can not seem to find right combination of > options.On a Lustre client, I''m not aware of any better method than using a combination of lfs find and lfs getstripe to look for matching object IDs. On the servers, Andreas Dilger has described a more efficient way using debugfs in http://lists.lustre.org/pipermail/lustre-discuss/2009-July/011080.html> Also is there a simple way to list all the files and their object IDs?I''m not sure whether it counts as "simple", but this is what I''m using: lfs find . -type f -print0 | while IFS='''' read -d '''' i; do echo "$i"; lfs getstripe -q "$i"; done Regards, Daniel.
Many Thanks Daniel, these hints are very helpful. Wojciech 2009/10/21 Daniel Kobras <kobras at linux.de>> Hi! > > On Wed, Oct 21, 2009 at 11:58:43AM +0100, Wojciech Turek wrote: > > I apologize if this question was answered earlier but I can not find it > in > > the mailing list. > > I have an object ID and I would like to find file that this object is > part > > of. I tried to use lfs find but I can not seem to find right combination > of > > options. > > On a Lustre client, I''m not aware of any better method than using a > combination > of lfs find and lfs getstripe to look for matching object IDs. On the > servers, > Andreas Dilger has described a more efficient way using debugfs in > http://lists.lustre.org/pipermail/lustre-discuss/2009-July/011080.html > > > Also is there a simple way to list all the files and their object IDs? > > I''m not sure whether it counts as "simple", but this is what I''m using: > > lfs find . -type f -print0 | while IFS='''' read -d '''' i; do echo "$i"; lfs > getstripe -q "$i"; done > > Regards, > > Daniel. > > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss >-- -- Wojciech Turek Assistant System Manager High Performance Computing Service University of Cambridge Email: wjt27 at cam.ac.uk Tel: (+)44 1223 763517 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091021/fe918174/attachment-0001.html
On Wed, 2009-10-21 at 11:58 +0100, Wojciech Turek wrote:> I apologize if this question was answered earlier but I can not find > it in the mailing list.I''m pretty sure it''s been discussed here and even pointed to a bug I opened to get this documented in our manual. It might be there already in fact.> I have an object ID and I would like to find file that this object is > part of. I tried to use lfs find but I can not seem to find right > combination of options.As above, there is a bug in bugzilla, the ID of which I don''t recall offhand I''m afraid. The bug was to have the manual updated, complete with an entire working example. Shouldn''t be too hard to find.> Also is there a simple way to list all the files and their object > IDs?Keeping in mind of course that there may be many objects for a single file. [lfs] find and lfs getstripe ought to help. In fact I think there is a recursive option to lfs getstripe, the output of which you would simply need to reformat. b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091021/33662bc4/attachment.bin
Hi Brian, Thank you for your reply.I am currently on lustre 1.6 thus I am working with Lustre-1.6 manual. I found the bug you have mentioned (19753) and in fact there is a saction in the lustre manual titled "Identifying Which Lustre File an OST Object Belongs To". However this manual update only got into Lustre-1.8 manual. I guess it didn''t make it''s way to 1.6 manual because manual was not updated since May and the bug was resolved in July. Cheers Wojciech 2009/10/21 Brian J. Murrell <Brian.Murrell at sun.com>> On Wed, 2009-10-21 at 11:58 +0100, Wojciech Turek wrote: > > I apologize if this question was answered earlier but I can not find > > it in the mailing list. > > I''m pretty sure it''s been discussed here and even pointed to a bug I > opened to get this documented in our manual. It might be there already > in fact. > > > I have an object ID and I would like to find file that this object is > > part of. I tried to use lfs find but I can not seem to find right > > combination of options. > > As above, there is a bug in bugzilla, the ID of which I don''t recall > offhand I''m afraid. The bug was to have the manual updated, complete > with an entire working example. Shouldn''t be too hard to find. > > > Also is there a simple way to list all the files and their object > > IDs? > > Keeping in mind of course that there may be many objects for a single > file. [lfs] find and lfs getstripe ought to help. In fact I think > there is a recursive option to lfs getstripe, the output of which you > would simply need to reformat. > > b. > > > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss > >-- -- Wojciech Turek Assistant System Manager High Performance Computing Service University of Cambridge Email: wjt27 at cam.ac.uk Tel: (+)44 1223 763517 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091021/75220ab9/attachment.html
On Wed, 2009-10-21 at 16:05 +0100, Wojciech Turek wrote:> Hi Brian,Hi Wojciech,> Thank you for your reply.I am currently on lustre 1.6 thus I am > working with Lustre-1.6 manual. I found the bug you have mentioned > (19753) and in fact there is a saction in the lustre manual titled > "Identifying Which Lustre File an OST Object Belongs To".Indeed. I do recall inspecting that.> However this manual update only got into Lustre-1.8 manual.Right.> I guess it didn''t make it''s way to 1.6 manual because manual was not > updated since May and the bug was resolved in July.Yeah. We really just don''t have the manpower to keep two parallel versions of the manual up to date. For all intents and purposes, the 1.8 manual should be relevant for 1.6 as well so I tend to only look at the 1.8 manual even for 1.6 releases. b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091021/f4e7cc27/attachment.bin