xfs
[Top] [All Lists]

Re: Is my partition repairable?

To: James Klaas <jklaas@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Is my partition repairable?
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sat, 19 Apr 2008 23:38:25 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <18b102300804090813u24423515k4c478635494534dc@mail.gmail.com>
References: <18b102300804090813u24423515k4c478635494534dc@mail.gmail.com>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)
James Klaas wrote:
> I've been struggling to recover/repair an XFS partition that is on a
> Linux software raid.  This is on Ubuntu Feisty (7.04) with xfsprogs
> v2.8.18.
> 
> When I try to mount the system, it attempts a recovery:
> 
> [127094.470809] Filesystem "md0": Disabling barriers, not supported by
> the underlying device
> [127094.471954] XFS mounting filesystem md0
> [127094.613551] Starting XFS recovery on filesystem: md0 (logdev: internal)
> [127094.858897] Filesystem "md0": XFS internal error
> xfs_btree_check_sblock at line 334 of file fs/xfs/xfs_btree.c.  Caller
> 0xf8eda9fb

The simplest approach, though perhaps not the least prone to data loss,
is to run xfs_repair with the -L option to zero out the log before
proceeding.

You could also mount -o ro,norecovery first to back up as much critical
data as possible, beforehand.

-Eric


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