xfs
[Top] [All Lists]

Re: [xfs-masters] xfs corruption - structure need cleaning

To: Roy Zhang <royzhangzzl@xxxxxxxxx>
Subject: Re: [xfs-masters] xfs corruption - structure need cleaning
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 16 Oct 2013 07:43:46 +1100
Cc: xfs-masters <xfs-masters@xxxxxxxxxxx>, xfs <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAMg3XqqJgxnc2+ZkuMaK9RC1_Basfh9AzcqCpNdvmPpCXgNHZg@xxxxxxxxxxxxxx>
References: <CAMg3XqqJgxnc2+ZkuMaK9RC1_Basfh9AzcqCpNdvmPpCXgNHZg@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Oct 15, 2013 at 09:45:27PM +0800, Roy Zhang wrote:
> Hi,
> I met a problem that cannot mount xfs, log as below.
> I got know xfs_repair -L will fix this situation, I want to know how
> and why cause it, it's a bug in xfs or hdd? Is there any patch to fix
> it?
> 
> Thanks
> Roy
> 
> Oct  9 18:26:52 mcluster-alpha-node3 kernel: [11840.232985] XFS
> (dm-3): Mounting Filesystem
> Oct  9 18:26:52 mcluster-alpha-node3 kernel: [11840.327773] XFS
> (dm-3): Internal error xlog_clear_stale_blocks(2) at line 1353 of file
> fs/xfs/xfs_log_recover.c.  Caller 0xffffffffa01f894d

The head and tail of the log are confused - different cycle numbers
but the tail is behind the head. That implies that there are 3 cycle
numbers visible in the log, when here should only be 2, which would
mean that some log write did not make it to disk correctly.

You'll need to provide a copy of the log (xfs_logprint can get that
for you) and the information about your system described here:

http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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