[Top] [All Lists]

Re: XFS Mount Recovery Failed on Root File System After Power Outage

To: Chin Gim Leong <CHIN_Gim_Leong@xxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: XFS Mount Recovery Failed on Root File System After Power Outage
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 31 Aug 2012 08:58:26 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <0e85aee5ff82e567e872230ef416766a.squirrel@xxxxxxxxxxxxxxxxxxxx>
References: <0e85aee5ff82e567e872230ef416766a.squirrel@xxxxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Aug 30, 2012 at 10:08:38PM +0800, Chin Gim Leong wrote:
> Hi
> I apologize first if this message appears a number of times, but my two
> yahoo email accounts do not seem to be able to deliver to the mailing list
> from afternoon till now and I have to use this account.
> I just had a power outage and my Acer notebook computer running openSUSE
> 11.4 x86_64 with kernel 2.6.37 stopped as a result.

What mount options? What is the output of /proc/mounts? What are the
messages in dmesg when you mount a partition?

> I then tried again to mount the root file system to /mnt.
> Aug 30 14:21:59 Rescue kernel: [  811.166914] XFS mounting filesystem sdb2
> Aug 30 14:21:59 Rescue kernel: [  811.212169] Starting XFS recovery on
> filesystem: sdb2 (logdev: internal)
> Aug 30 14:21:59 Rescue kernel: [  811.334157] XFS: Invalid block length
> (0xfffffffc) given for buffer

The log is definitely corrupted if it is asking for a length that

> Aug 30 14:21:59 Rescue kernel: [  811.334175] XFS: log mount/recovery
> failed: error 117

EUCLEAN: structure needs cleaning.

Yup, the log is considered corrupt.

> Aug 30 14:21:59 Rescue kernel: [  811.334230] XFS: log mount failed
> XFS Check will not run since log recovery mount has not been done.
> What is the cause of the recovery failure and what is the recommended
> course of action?
> I have tried the metadump and restore, then do a xfs_repair -L on the
> metadump image, with xfs_repair version 3.1.8.  The repair is successful
> and there are also some files copied to lost+found.

That's your only option for recovery.

> I would like to know the cause of this log recovery failure and if there

You've got an old, unsupported kernel that was going through
significant changes to the log code at the time, so it may not be
possible to work out what the problem was. It seems likely that the
power loss caused the disk not to write everything it should have to
the log - laptops are not supposed to just lose power because
they have a built in UPS (i.e. battery)....

> is another alternative to xfs_repair -L, since I do not really know what
> files I would lose with the inodes being changed, and also I do not know
> what the files in lost+found are.

The files in lost+found are numbered by their inode number. You need
to look at the contents of them to determine where they came from.


Dave Chinner

<Prev in Thread] Current Thread [Next in Thread>