xfs
[Top] [All Lists]

Re: help xfs filesystem crash

To: 符永涛 <yongtaofu@xxxxxxxxx>
Subject: Re: help xfs filesystem crash
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 7 Jan 2013 06:53:53 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <CADFMGuK=1kMjFszwCC4zAftvaYXgj6R5DsWA89td5NpSeG7RGw@xxxxxxxxxxxxxx>
References: <CADFMGuL2GtcXs_BZ-xhoqczs8B=orWqZSOMGLmpRCokdtcY8ww@xxxxxxxxxxxxxx> <20130106001840.GN3120@dastard> <CADFMGuK=1kMjFszwCC4zAftvaYXgj6R5DsWA89td5NpSeG7RGw@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Sun, Jan 06, 2013 at 11:37:23AM +0800, 符永涛 wrote:
> Hi david,
> Thank you for your help.
> One of our machine is still online so I can only run xfs_repair on one 
> machine.
> Bellow is the output:
> xfs_repair -n /dev/sdb |tee xfs_repair.logPhase 1 - find and verify 
> superblock…
> 
> Phase 2 - using internal log
> 
>         - scan filesystem freespace and inode maps…
> 
> agi unlinked bucket 1 is 4293569 in ag 0 (inode=4293569)
> agi unlinked bucket 3 is 4455043 in ag 0 (inode=4455043)
> agi unlinked bucket 22 is 3949334 in ag 0 (inode=3949334)
> agi unlinked bucket 24 is 3960984 in ag 0 (inode=3960984)
> agi unlinked bucket 28 is 4193564 in ag 0 (inode=4193564)
> agi unlinked bucket 38 is 4722982 in ag 0 (inode=4722982)

OK, so there are inodes on the unlinked list, though the lists don't
appear to be corrupt...

>         - found root in ode chunk
> Phase 3 - for each AG…
>         - scan (but don't clear) agi unlinked lists…
>         - process known inodes and perform inode discovery…
>         - agno = 0
> 7f2631b97700: Badness in key lookup (length)
> bp=(bno 1974656, len 16384 bytes) key=(bno 1974656, len 8192 bytes)
> 7f2631b97700: Badness in key lookup (length)
> bp=(bno 1980464, len 16384 bytes) key=(bno 1980464, len 8192 bytes)
> 7f2631b97700: Badness in key lookup (length)
> bp=(bno 2096752, len 16384 bytes) key=(bno 2096752, len 8192 bytes)
> 7f2631b97700: Badness in key lookup (length)
> bp=(bno 2146768, len 16384 bytes) key=(bno 2146768, len 8192 bytes)
> 7f2631b97700: Badness in key lookup (length)
> bp=(bno 2227504, len 16384 bytes) key=(bno 2227504, len 8192 bytes)
> 7f2631b97700: Badness in key lookup (length)
> bp=(bno 2361472, len 16384 bytes) key=(bno 2361472, len 8192 bytes)

But it looks like the inodes (and their index records) might have
already been freed. Can you provide the rest of the information that
Eric asked for? i.e:

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

that will help me calculate the inode number/block number
relationship to determine is this is the case or not.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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