Script started on Mon 25 Aug 2008 04:04:13 PM CEST # file -s /dev/mapper/md3 /dev/mapper/md3: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) # xfs_check /dev/mapper/md3 agi unlinked bucket 26 is 20208090 in ag 0 (inode=20208090) link count mismatch for inode 128 (name ?), nlink 335, counted 336 link count mismatch for inode 20208090 (name ?), nlink 0, counted 1 # xfs_repair -n /dev/mapper/md3 Phase 1 - find and verify superblock... Phase 2 - using internal log - scan filesystem freespace and inode maps... - found root inode chunk Phase 3 - for each AG... - scan (but don't clear) agi unlinked lists... - process known inodes and perform inode discovery... - agno = 0 b68aab90: Badness in key lookup (length) bp=(bno 10104032, len 16384 bytes) key=(bno 10104032, len 8192 bytes) - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - check for inodes claiming duplicate blocks... - agno = 0 - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 No modify flag set, skipping phase 5 Phase 6 - check inode connectivity... - traversing filesystem ... - traversal finished ... - moving disconnected inodes to lost+found ... disconnected dir inode 20208090, would move to lost+found Phase 7 - verify link counts... would have reset inode 20208090 nlinks from 0 to 2 No modify flag set, skipping filesystem flush and exiting. # xfs_repair /dev/mapper/md3 Phase 1 - find and verify superblock... Phase 2 - using internal log - zero log... - 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 b68f6b90: Badness in key lookup (length) bp=(bno 10104032, len 16384 bytes) key=(bno 10104032, len 8192 bytes) - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - check for inodes claiming duplicate blocks... - agno = 0 - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 Phase 5 - rebuild AG headers and trees... - reset superblock... Phase 6 - check inode connectivity... - resetting contents of realtime bitmap and summary inodes - traversing filesystem ... - traversal finished ... - moving disconnected inodes to lost+found ... disconnected dir inode 20208090, moving to lost+found Phase 7 - verify and correct link counts... resetting inode 20208090 nlinks from 0 to 2 done # xfs_check /dev/mapper/md3 link count mismatch for inode 1178066 (name ?), nlink 2, counted 3 # mount /dev/mapper/md3 /mnt/disk # dmesg | tail -5 [931089.620004] XFS mounting filesystem dm-3 [931090.050010] Ending clean XFS mount for filesystem: dm-3 [943416.580004] Filesystem "dm-3": Disabling barriers, trial barrier write failed [943416.610009] XFS mounting filesystem dm-3 [943417.000004] Ending clean XFS mount for filesystem: dm-3 # find /mnt/disk -inum 1178066 /mnt/disk/lost+found # ls -l /mnt/disk/lost+found total 0 drwxr-xr-x 2 root root 6 2008-04-22 03:16 20208090 # ls -l /mnt/disk/lost+found/20208090/ total 0 # ls -Ril /mnt/disk/lost+found/ /mnt/disk/lost+found: total 0 20208090 drwxr-xr-x 2 root root 6 2008-04-22 03:16 20208090 /mnt/disk/lost+found/20208090: total 0 # ls -idl /mnt/disk/lost+found 1178066 drwxr-xr-x 2 root root 21 2008-08-25 16:07 /mnt/disk/lost+found # umount /mnt/disk # dmesg | tail -3 [943416.580004] Filesystem "dm-3": Disabling barriers, trial barrier write failed [943416.610009] XFS mounting filesystem dm-3 [943417.000004] Ending clean XFS mount for filesystem: dm-3 # grep md3 /proc/mounts # xfs_check /dev/mapper/md3 link count mismatch for inode 1178066 (name ?), nlink 2, counted 3 # xfs_repair /dev/mapper/md3 Phase 1 - find and verify superblock... Phase 2 - using internal log - zero log... - 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 - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - check for inodes claiming duplicate blocks... - agno = 0 - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 Phase 5 - rebuild AG headers and trees... - reset superblock... Phase 6 - check inode connectivity... - resetting contents of realtime bitmap and summary inodes - traversing filesystem ... - traversal finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify and correct link counts... resetting inode 1178066 nlinks from 2 to 3 done # xfs_check /dev/mapper/md3 # echo $? 0 # mount /dev/mapper/md3 /mnt/disk # dmesg | tail -5 [943416.610009] XFS mounting filesystem dm-3 [943417.000004] Ending clean XFS mount for filesystem: dm-3 [944037.130006] Filesystem "dm-3": Disabling barriers, trial barrier write failed [944037.140006] XFS mounting filesystem dm-3 [944037.540010] Ending clean XFS mount for filesystem: dm-3 # ls -l /mnt/disk/lost+found/ total 0 drwxr-xr-x 2 root root 6 2008-04-22 03:16 20208090 # ls -l /mnt/disk/lost+found/20208090/ total 0 # umount /mnt/disk # xfs_check /dev/mapper/md3 # echo $? 0 # exit