xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 773] New: XFS_FSR corrupts filesystem during reorgan

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 773] New: XFS_FSR corrupts filesystem during reorganisation
From: bugzilla-daemon@xxxxxxxxxxx
Date: Sun, 13 Jan 2008 02:23:09 -0800
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=773

           Summary: XFS_FSR corrupts filesystem during reorganisation
           Product: Linux XFS
           Version: Current
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: xfsprogs
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: igor@xxxxxxxx


I've set up xfs_fsr to run daily at 3:00 AM, and it frequently causes XFS
filesystem to shut down..

1st occurence:
--------------------------------------------
Filesystem "sda": XFS internal error xfs_trans_cancel at line 1169 of file
fs/xfs/xfs_trans.c.  Caller 0xffffffff803b4f06

Call Trace:
 [<ffffffff803ac18d>] xfs_trans_cancel+0xf5/0x118
 [<ffffffff803b4f06>] xfs_mkdir+0x4ba/0x689
 [<ffffffff803bf7d8>] xfs_vn_mknod+0x341/0x36c
 [<ffffffff80280b5b>] vfs_mkdir+0xa9/0xe9
 [<ffffffff802835a7>] sys_mkdirat+0x9d/0xed
 [<ffffffff80284f60>] vfs_ioctl+0x5d/0x298
 [<ffffffff8020b7be>] system_call+0x7e/0x83

xfs_force_shutdown(sda,0x8) called from line 1170 of file fs/xfs/xfs_trans.c. 
Return address = 0xffffffff803ac1ab
Filesystem "sda": Corruption of in-memory data detected.  Shutting down
filesystem: sda
Please umount the filesystem, and rectify the problem(s)
xfs_force_shutdown(sda,0x1) called from line 423 of file fs/xfs/xfs_rw.c. 
Return address = 0xffffffff803b7a90
--------------------------------------------

resolved by remounting FS, log replayed, no errors found by xfs_check then.

2nd occurence:
--------------------------------------------
xfs_iunlink_remove: xfs_itobp()  returned an error 117 on sda.  Returning error.
xfs_inactive:   xfs_ifree() returned an error = 117 on sda
xfs_force_shutdown(sda,0x1) called from line 1819 of file fs/xfs/xfs_vnodeops.c.
 Return address = 0xffffffff803b69b4
Filesystem "sda": I/O Error Detected.  Shutting down filesystem: sda
Please umount the filesystem, and rectify the problem(s)
xfs_force_shutdown(sda,0x1) called from line 423 of file fs/xfs/xfs_rw.c. 
Return address = 0xffffffff803b7a90
--------------------------------------------

Now the corruption is more severe. FS won't mount, saying:
--------------------------------------------
XFS mounting filesystem sda
Starting XFS recovery on filesystem: sda (logdev: internal)
Filesystem "sda": xfs_inode_recover: Bad inode magic number, dino ptr =
0xffff810029007900, dino bp = 0xffff81005a584900, ino = 654314857
Filesystem "sda": XFS internal error xlog_recover_do_inode_trans(1) at line 2318
of file fs/xfs/xfs_log_recover.c.  Caller 0xffffffff803a6155

Call Trace:
 [<ffffffff803a5bcc>] xlog_recover_do_inode_trans+0x527/0x870
 [<ffffffff803bb7d7>] xfs_buf_iostart+0x29/0x90
 [<ffffffff803a6155>] xlog_recover_do_trans+0xbe/0x127
 [<ffffffff803a61fd>] xlog_recover_commit_trans+0x3f/0x5a
 [<ffffffff803a635a>] xlog_recover_process_data+0x142/0x19f
 [<ffffffff803a686c>] xlog_do_recovery_pass+0x4b5/0x685
 [<ffffffff803a6a91>] xlog_do_log_recovery+0x55/0x80
 [<ffffffff803a6ac8>] xlog_do_recover+0xc/0x10f
 [<ffffffff803a6c47>] xlog_recover+0x7c/0x95
 [<ffffffff803a07d2>] xfs_log_mount+0xcb/0xff
 [<ffffffff803a91ae>] xfs_mountfs+0x6a1/0xb33
 [<ffffffff803f6362>] generic_unplug_device+0x0/0x28
 [<ffffffff803a9859>] xfs_mru_cache_create+0x12d/0x148
 [<ffffffff803b092a>] xfs_mount+0x630/0x655
 [<ffffffff803c1eb5>] xfs_fs_fill_super+0x7e/0x1bf
 [<ffffffff805fa024>] __down_write_nested+0x12/0xab
 [<ffffffff8027597b>] kmem_cache_alloc+0x89/0x8b
 [<ffffffff80401423>] strlcpy+0x35/0x48
 [<ffffffff8027a617>] sget+0x36b/0x3f2
 [<ffffffff8027a020>] set_bdev_super+0x0/0xf
 [<ffffffff8027b197>] get_sb_bdev+0x127/0x15d
 [<ffffffff803c1e37>] xfs_fs_fill_super+0x0/0x1bf
 [<ffffffff8027aad7>] vfs_kern_mount+0xac/0x14e
 [<ffffffff8027abc4>] do_kern_mount+0x3f/0xe3
 [<ffffffff8028fb83>] do_mount+0x1b0/0x76a
 [<ffffffff80262862>] handle_mm_fault+0x63b/0x81c
 [<ffffffff8028eb0e>] mntput_no_expire+0x1f/0x94
 [<ffffffff80400bd2>] __up_read+0x13/0x8d
 [<ffffffff8021c0ef>] do_page_fault+0x1ae/0x8bf
 [<ffffffff8028eb0e>] mntput_no_expire+0x1f/0x94
 [<ffffffff80282de1>] do_path_lookup+0x87/0x1dd
 [<ffffffff802816f9>] getname+0xc9/0x1e5
 [<ffffffff80259b5e>] __get_free_pages+0x87/0x96
 [<ffffffff802901c6>] sys_mount+0x89/0xe6
 [<ffffffff8020b7be>] system_call+0x7e/0x83

XFS: log mount/recovery failed: error 117
XFS: log mount failed
--------------------------------------------

Resolved by 'xfs_repair -L /dev/sda' two times (as the first one didn't repaired
one error) and the it checked & mounted OK.

OS: Gentoo Linux x86_64
Kernel: 2.6.23-gentoo-r3 (equivalent to ~2.6.23.12 + some other patches by
gentoo community)
XFS-Progs: 2.9.4
XFS-Dump: 2.2.46

Hardware seems OK, physical backend is RAID5 3.5Tb (one full-size XFS filesystem
without partitioning) on Adaptec 8-port PCI-X controller. Memory was checked 
too.

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 773] New: XFS_FSR corrupts filesystem during reorganisation, bugzilla-daemon <=