Re: xfs_repair on a 1.5 TiB image has been hanging for about an hour, now

Nicolas Stransky
2010-02-12T22:26:36Z

On 2/12/10 3:48 PM, Eric Sandeen wrote:
> Nicolas Stransky wrote:
>> The -P option allowed me to complete xfs_repair successfully, but it
>> also deleted almost everything on the filesystem... A directory that I
>> could mount -o ro,norecovery before, with tens of GB of data in it, is
>> now empty... That is really too bad.
>
> Any idea what happened to the fs - what prompted the repair?

Yes, it's a RAID 5 array that failed pretty bad due to multiple reboots
of the machine. Some disks failed and at some point, the RAID card did
stopped to detect some of the disks, or failed to assemble the RAID
array correctly. 3ware (LSI) issued a fix that allowed to start the
array in degraded mode, but the xfs filesystem seemed in a pretty bad
shape at that point. xfs_repair was failing right at the beginning and I
had to xfs_repair -L. Then xfs_repair was hanging forever. It's only
today, by using -P, that I got it to complete.

> Did you save the logs, or a preliminary metadump?

No I did not.

> I wonder what it found. The files aren't in lost+found/ ?

There are tons of gigs of files in lost+found but I can't really sort
them and figure out which one is which at this point...

Thanks,
--
Nico