xfs
[Top] [All Lists]

Re: xfs_repair after reboot refuse repair my filesystem

To: "Vitaly V. Ch" <vitaly.v.ch@xxxxxxxxx>
Subject: Re: xfs_repair after reboot refuse repair my filesystem
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sat, 16 May 2009 13:17:09 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <6efe08af0905150135q317d3b7dy37907332c02510c2@xxxxxxxxxxxxxx>
References: <6efe08af0905130010g5e21f4d1w9efb4ed200b5b152@xxxxxxxxxxxxxx> <4A0B0A71.5010609@xxxxxxxxxxx> <6efe08af0905140150g623d5564i5f5a06b5bf8543a5@xxxxxxxxxxxxxx> <6efe08af0905150135q317d3b7dy37907332c02510c2@xxxxxxxxxxxxxx>
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
Vitaly V. Ch wrote:
> HI,
> 
> on my PC:
> 
> Fri 15 May 00:02:37|root@cvv:xfs# xfs_repair -V
> xfs_repair version 3.0.1
> Fri 15 May 00:03:26|root@cvv:xfs# xfs_mdrestore xfs.dump xfs.metaimg
> Fri 15 May 00:03:37|root@cvv:xfs# xfs_repair -v xfs.metaimg
> Phase 1 - find and verify superblock...
>         - block cache size set to 133976 entries
> Phase 2 - using internal log
>         - zero log...
> zero_log: head block 2 tail block 2
>         - scan filesystem freespace and inode maps...
>         - found root inode chunk
> Phase 3 - for each AG...
>         - scan and clear agi unlinked lists...
>         - process known inodes and perform inode discovery...
>         - agno = 0
> entry "" in shortform directory 128 references invalid inode 0
> zero length entry in shortform dir 128, junking 3 entries
> corrected entry count in directory 128, was 3, now 0
> corrected directory 128 size, was 69, now 6
> bogus .. inode number (0) in directory inode 128, clearing inode number
> xfs_repair: dir2.c:2115: process_dir2: Assertion `(ino !=
> mp->m_sb.sb_rootino && ino != *parent) || (ino == mp->m_sb.sb_rootino
> && (ino == *p
> arent || need_root_dotdot == 1))' failed.
> Aborted

Is that the first repair of the image?  When I repair it on my box it
finds many more errors, and does not trip the assert.  I tested 3.0.1 in
fedora rawhide on x86 this time ...

-Eric

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