2043,2058c2043,2047< if (param->ls) {< if (param->have_fileinfo == 0) {< /*if (st->st_size == 0 ) {*/< /* Here I would like to pull< * back the size guess back from< * the MDS but I need a hint :) */< stat(path,st);< }< llapi_printf(LLAPI_MSG_NORMAL, "%d %d %d %d %d %d %03o %s",st->st_size,st->st_atime,st->st_mtime,st->st_ctime,st->st_uid,st->st_gid,st->st_mode, path);< }< else< llapi_printf(LLAPI_MSG_NORMAL, "%s", path);< if (param->zeroend)< llapi_printf(LLAPI_MSG_NORMAL, "%c", '\0');< else< llapi_printf(LLAPI_MSG_NORMAL, "\n");---> llapi_printf(LLAPI_MSG_NORMAL, "%s", path);> if (param->zeroend)> llapi_printf(LLAPI_MSG_NORMAL, "%c", '\0');> else> llapi_printf(LLAPI_MSG_NORMAL, "\n");
" [--maxdepth|-D N] [[!] --name|-n <pattern>] [--print0|-P]\n"452d451
Depending on how often you need the information updated, and how
perfectly accurate it has to be, you may find that just using normal
"find" on a snapshot of the MDT is more efficient. (IIRC that
size-on-mds is relatively close these days.) If you have your MDT on
LVM for making backups (for example), you could also periodically run
your find on the same snapshot.
With your "lfs find" approach, I think you will have to decide if you
want to trust the size-on-mds anyway or query the OSTs which will slow
things down a lot. There is more than one way to do it.
-Nathan
PS: I love the color-coded bar graph approach... very informative in a
compact display!
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-...@lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss
--
Nathan Dauchy
NOAA R&D HPCS, Senior Systems Engineer
325 Broadway, MS R-GSD2, Boulder, CO 80305
303-497-4675 office, 303-482-7377 mobile
nathan...@noaa.gov
_______________________________________________
Lustre-discuss mailing list
Lustre-...@lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-discuss
> James,
>
> Depending on how often you need the information updated, and how
> perfectly accurate it has to be, you may find that just using normal
> "find" on a snapshot of the MDT is more efficient. (IIRC that
> size-on-mds is relatively close these days.) If you have your MDT on
> LVM for making backups (for example), you could also periodically run
> your find on the same snapshot.
We generally do have the mdt on LVM however I am adverse to taking snapshots of it as the performance hit while you have a snapshot is pretty severe. And we don't back any of our lustre systems up.
> With your "lfs find" approach, I think you will have to decide if you
> want to trust the size-on-mds anyway or query the OSTs which will slow
> things down a lot. There is more than one way to do it.
Given that we run the scan about once a month, If the size-on-mds was relatively up to date then I would love to use it. On our general purpose filesystems running a scan using real stats is not feasible. However I don't have a clue how to get at the size on mdt, If anyone would point me at some documentation then that would be grand.
>
> -Nathan
>
> PS: I love the color-coded bar graph approach... very informative in a
> compact display!
Just in case it wasn't clear agedu is written by Simon Tatham who is also know for PuTTY, I have sent him a few emails and he responds very quickly and he seems a very bright fellow.