[Lustre-discuss] finding files belonging to dead/offline ost

Andreas Dilger adilger at sun.com
Mon Mar 30 14:39:04 PDT 2009


On Mar 23, 2009  13:19 -0500, Hendelman, Rob wrote:
> We recently had an OST become badly corrupted (850G or so in
> lost+found).  I deactivated this OST on the MDT server & the clients.
> The OST is not mounted on the OSS (not possible).

You can likely recover many of these files by running the
ll_recover_lost_and_found program that comes with newer Lustre
installations.

> On one of the clients, I tried the following:
> 
> "lfs find -O fs01-OST00005-osc-fff810800335400 /mnt/lustre/fs01" does
> not return anything.

Note that you have one too many 0s in your UUID above (only OST0005).

> "lfs getstripe -O fs01-OST0005-osc-ffff810800335400" returns "error:
> setup_obd_uuid: unknown obduuid: fs01-OST0005-osc-ffff810800335400"

Use the UUIDs as listed at the start of "lfs getstripe" or "lfs find".

This is a pet peeve of mine that the UUID specification should be more
forgiving.  I have a patch I've been meaning to polish up for this so
that just specifying "fs01-OST0005" would be enough, and filing a bug
on the user tools would get this underway.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.




More information about the lustre-discuss mailing list