xfs
[Top] [All Lists]

failed to read root inode

To: xfs@xxxxxxxxxxx
Subject: failed to read root inode
From: Christian Affolter <christian.affolter@xxxxxxxxxxxxx>
Date: Sat, 08 May 2010 14:34:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100420 Thunderbird/3.0.4
Hi

After a disk crash within a hardware RAID-6 controller and kernel
freeze, I'm unable to mount an XFS filesystem on top of an EVMS volume:

Filesystem "dm-13": Disabling barriers, not supported by the underlying
device
XFS mounting filesystem dm-13
Starting XFS recovery on filesystem: dm-13 (logdev: internal)
XFS internal error XFS_WANT_CORRUPTED_GOTO at line 1599 of file
fs/xfs/xfs_alloc.c.  Caller 0xffffffff8035c58d
Pid: 13473, comm: mount Not tainted 2.6.26-gentoo #1

Call Trace:
 [<ffffffff8035c58d>] xfs_free_extent+0xcd/0x110
 [<ffffffff8035aa03>] xfs_free_ag_extent+0x4e3/0x740
 [<ffffffff8035c58d>] xfs_free_extent+0xcd/0x110
 [<ffffffff80395e9d>] xlog_recover_process_efi+0x18d/0x1d0
 [<ffffffff80397400>] xlog_recover_process_efis+0x60/0xa0
 [<ffffffff80397463>] xlog_recover_finish+0x23/0xf0
 [<ffffffff8039d36a>] xfs_mountfs+0x4da/0x680
 [<ffffffff803a9ba8>] kmem_alloc+0x58/0x100
 [<ffffffff803a9cfb>] kmem_zalloc+0x2b/0x40
 [<ffffffff803a3dbd>] xfs_mount+0x36d/0x3a0
 [<ffffffff803b4bad>] xfs_fs_fill_super+0xbd/0x220
 [<ffffffff8028b551>] get_sb_bdev+0x141/0x180
 [<ffffffff803b4af0>] xfs_fs_fill_super+0x0/0x220
 [<ffffffff8028aeb6>] vfs_kern_mount+0x56/0xc0
 [<ffffffff8028af83>] do_kern_mount+0x53/0x110
 [<ffffffff802a343b>] do_new_mount+0x9b/0xe0
 [<ffffffff802a3666>] do_mount+0x1e6/0x220
 [<ffffffff802670f5>] __get_free_pages+0x15/0x60
 [<ffffffff802a373b>] sys_mount+0x9b/0x100
 [<ffffffff8020b49b>] system_call_after_swapgs+0x7b/0x80

Filesystem "dm-13": XFS internal error xfs_trans_cancel at line 1163 of
file fs/xfs/xfs_trans.c.  Caller 0xffffffff80395eb1
Pid: 13473, comm: mount Not tainted 2.6.26-gentoo #1

Call Trace:
 [<ffffffff80395eb1>] xlog_recover_process_efi+0x1a1/0x1d0
 [<ffffffff8039fd16>] xfs_trans_cancel+0x126/0x150
 [<ffffffff80395eb1>] xlog_recover_process_efi+0x1a1/0x1d0
 [<ffffffff80397400>] xlog_recover_process_efis+0x60/0xa0
 [<ffffffff80397463>] xlog_recover_finish+0x23/0xf0
 [<ffffffff8039d36a>] xfs_mountfs+0x4da/0x680
 [<ffffffff803a9ba8>] kmem_alloc+0x58/0x100
 [<ffffffff803a9cfb>] kmem_zalloc+0x2b/0x40
 [<ffffffff803a3dbd>] xfs_mount+0x36d/0x3a0
 [<ffffffff803b4bad>] xfs_fs_fill_super+0xbd/0x220
 [<ffffffff8028b551>] get_sb_bdev+0x141/0x180
 [<ffffffff803b4af0>] xfs_fs_fill_super+0x0/0x220
 [<ffffffff8028aeb6>] vfs_kern_mount+0x56/0xc0
 [<ffffffff8028af83>] do_kern_mount+0x53/0x110
 [<ffffffff802a343b>] do_new_mount+0x9b/0xe0
 [<ffffffff802a3666>] do_mount+0x1e6/0x220
 [<ffffffff802670f5>] __get_free_pages+0x15/0x60
 [<ffffffff802a373b>] sys_mount+0x9b/0x100
 [<ffffffff8020b49b>] system_call_after_swapgs+0x7b/0x80

xfs_force_shutdown(dm-13,0x8) called from line 1164 of file
fs/xfs/xfs_trans.c.  Return address = 0xffffffff8039fd2f
Filesystem "dm-13": Corruption of in-memory data detected.  Shutting
down filesystem: dm-13
Please umount the filesystem, and rectify the problem(s)
Failed to recover EFIs on filesystem: dm-13
XFS: log mount finish failed


I tried to repair the filesystem with the help of xfs_repair many times,
without any luck:
Filesystem "dm-13": Disabling barriers, not supported by the underlying
device
XFS mounting filesystem dm-13
XFS: failed to read root inode

xfs_check output:
cache_node_purge: refcount was 1, not zero (node=0x820010)
xfs_check: cannot read root inode (117)
cache_node_purge: refcount was 1, not zero (node=0x8226b0)
xfs_check: cannot read realtime bitmap inode (117)
block 0/8 expected type unknown got log
block 0/9 expected type unknown got log
block 0/10 expected type unknown got log
block 0/11 expected type unknown got log
bad magic number 0xfeed for inode 128
[...]

Are there any other ways to fix the unreadable root inode or to restore
the remaining data?


Environment informations:
Linux Kernel: 2.6.26-gentoo (x86_64)
xfsprogs:     3.0.3

Attached you'll find the xfs_repair and xfs_check output.


Thanks in advance and kind regards
Christian

Attachment: xfs_repair.log
Description: Text document

Attachment: xfs_check.log
Description: Text document

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