From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id BEEFA7CA0 for ; Thu, 17 Mar 2016 21:23:26 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 27008AC002 for ; Thu, 17 Mar 2016 19:23:22 -0700 (PDT) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by cuda.sgi.com with ESMTP id uK8fNJpDuOE7rZFm for ; Thu, 17 Mar 2016 19:23:20 -0700 (PDT) Date: Fri, 18 Mar 2016 13:22:53 +1100 From: Dave Chinner Subject: Re: new fs, xfs_admin new label, metadata corruption detected Message-ID: <20160318022253.GN30721@dastard> References: <56E8AA22.7080301@sandeen.net> <20160317205729.GL30721@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Chris Murphy Cc: Eric Sandeen , "xfs@oss.sgi.com" On Thu, Mar 17, 2016 at 05:21:51PM -0600, Chris Murphy wrote: > On Thu, Mar 17, 2016 at 2:57 PM, Dave Chinner 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. Thanks for confirming that, Chris. Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs