xfs
[Top] [All Lists]

Re: new fs, xfs_admin new label, metadata corruption detected

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: new fs, xfs_admin new label, metadata corruption detected
From: Chris Murphy <lists@xxxxxxxxxxxxxxxxx>
Date: Thu, 17 Mar 2016 17:21:51 -0600
Cc: Chris Murphy <lists@xxxxxxxxxxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colorremedies-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=JYBlMTlTDzukfGLfjZJdbRrPvRWQQOSAdxSUKHAfAV4=; b=RBcoHtrHOBSrPqNbpiW1+yQRloY3t7k6BgB9H+3daWglFt14rYekc0tDXwhYhVbrsq HnKOHJJ2lo84B4+aW5Xbgw8MJ9A7LnQ/NK4ETxhkHgzgSkxDR8uPFDTYfj4ttozOCvY4 bf91YUWE9bMSTmVTWeTynlr5jRAJDNP/DCKyoeQGbvbderoL+6HWQ4vi8AJKGCQzDaJc r4xqudPUnDZC3pW6KZlLnlTa0MOM/H6EVrBRKrkeHrx5STck7qNwN5RC4EzQhf5WiFKZ 1giRrg5IqNFP18Pr5qh2RxxC9ko3JLf/4EZexC6c38lG4RJGy/4W9fKBqu7oQnz248sW vCFQ==
In-reply-to: <20160317205729.GL30721@dastard>
References: <CAJCQCtR4tq8+BXRX+Y4rkqn6ZrFLw-9SX=gXKkF3QS1b2c8Ksg@xxxxxxxxxxxxxx> <56E8AA22.7080301@xxxxxxxxxxx> <CAJCQCtQYMitUvPN1ORyEHvDhddJ09Hp_xK_CBc0e1Cu972S3_w@xxxxxxxxxxxxxx> <CAJCQCtQJ_1ARXYuN3j2VyVN8FBtG0myqmPnOgco1v-tQxqmyBg@xxxxxxxxxxxxxx> <20160317205729.GL30721@dastard>
Sender: chris@xxxxxxxxxxxxxxxxx
On Thu, Mar 17, 2016 at 2:57 PM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> On Wed, Mar 16, 2016 at 08:39:21PM -0600, Chris Murphy wrote:
>> OK I can consistently reproduce this on the CLI. I end up with totally 
>> different
>>
>> # lvcreate -L 40g VG -n testxfs
>>   Logical volume "testxfs" created.
> ....
> [grow]
> ....
>> # xfs_repair -n /dev/VG/testxfs
>> Phase 1 - find and verify superblock...
>> Phase 2 - using internal log
>>         - zero log...
>>         - scan filesystem freespace and inode maps...
>> Metadata corruption detected at xfs_agf block 0x8c00008/0x1000
>> fllast 1014 in agf 7 too large (max = 1014)
>> Metadata corruption detected at xfs_agf block 0x6400008/0x1000
>> fllast 1014 in agf 5 too large (max = 1014)
>> Metadata corruption detected at xfs_agf block 0x5000008/0x1000
>> fllast 1014 in agf 4 too large (max = 1014)
>> Metadata corruption detected at xfs_agf block 0x7800008/0x1000
>> fllast 1014 in agf 6 too large (max = 1014)
>>         - found root inode chunk
>
> That's caused by commit 96f859d ("libxfs: pack the agfl header
> structure so XFS_AGFL_SIZE is correct") and growfs setting the
> last free list entry to something that a userspace without the
> commit  9fccb9f ("libxfs: pack the agfl header structure so
> XFS_AGFL_SIZE is correct") fails to validate correctly.
>
> i.e. update userspace to 4.5.0, and the repair noise will go away.

Yep. The problem is not reproducible with xfsprogs 4.5.0.


-- 
Chris Murphy

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