<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: trebuchet ms,sans-serif; font-size: 10pt; color: #000000'><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2">robinhood supplies this list, if you are using lustre 2.0 it directly queries the mdt.</font></div><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2"><br></font></div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2">http://sourceforge.net/apps/trac/robinhood</font><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2">On this subject does anyone know of a tool/app that tracks folder sizes?</font></div><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif" size="2">mark<br></font><br><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: 'trebuchet ms', sans-serif; font-size: 10pt; "><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt; "><b>From: </b>"Andreas Dilger" <adilger@whamcloud.com><br><b>To: </b>"Emyr James" <emyrjames1@gmail.com><br><b>Cc: </b>lustre-discuss@lists.lustre.org<br><b>Sent: </b>Friday, 18 November, 2011 3:30:02 AM<br><b>Subject: </b>Re: [Lustre-discuss] python lustre os.stat(path)<br><br>On 2011-11-17, at 4:39, Emyr James <emyrjames1@gmail.com> wrote:<br>> I've written a python script to walk the lustre filesystem, get the <br>> os.stat details for each file to get the file owner id and then <br>> generates a report of the total file size used by each user. I'm doing <br>> it this way as users own files sprinkled throughout the filesystem as <br>> opposed to all being filed away in neat subdirectories for each user.<br><br>Why not simply enable quotas in accounting mode (without quota enforcement)?  Then you can get this info without any scanning at all. <br><br>> As this is just using the standard posix stuff it's slow as it goes to the <br>> OSS's to get the file info from there. Presumably it should be possible <br>> to get this info from the MDS ? If so, what lustre specific commands <br>> would be useful ? Is there a python module out there that links into the <br>> lustre client libraries to access info direct from the MDS ?<br>> Regards,<br>> Emyr<br>> _______________________________________________<br>> Lustre-discuss mailing list<br>> Lustre-discuss@lists.lustre.org<br>> http://lists.lustre.org/mailman/listinfo/lustre-discuss<br>_______________________________________________<br>Lustre-discuss mailing list<br>Lustre-discuss@lists.lustre.org<br>http://lists.lustre.org/mailman/listinfo/lustre-discuss<br></div><br></div></div></body></html>