Script started on Sun Jul 30 20:10:01 2006 root@sheep:~# /usr/local/opt/xfsprogs/sbin/xfs_repair -V xfs_repair version 2.8.8 root@sheep:~# cat /proc/mdstat Personalities : [raid0] [raid1] md1 : active raid0 sdb2[0] sdc2[1] 4102016 blocks 64k chunks md0 : active raid1 sdb1[0] sdc1[1] 15332224 blocks [2/2] [UU] unused devices: root@sheep:~# root@sheep:~# uname -a Linux sheep 2.6.18-rc2 #1 Tue Jul 25 22:53:34 BST 2006 i686 GNU/Linux root@sheep:~# root@sheep:~# mount | grep md0 /dev/md0 on /data/Scratch type xfs (ro,nosuid,nodev,noatime) root@sheep:~# root@sheep:~# cat /proc/fs/xfs/stat extent_alloc 0 0 0 0 abt 0 0 0 0 blk_map 1024970 0 0 0 0 1024970 0 bmbt 0 0 0 0 dir 488762 0 0 54106 trans 0 0 0 ig 488695 4105 0 484590 0 484590 0 log 0 0 0 5 0 push_ail 0 0 0 0 0 0 0 0 0 0 xstrat 0 0 rw 0 26642 attr 32 0 0 0 icluster 1 0 0 vnodes 0 484590 0 33 484590 484590 484590 0 buf 1520183 1516457 3741 3741 6786 0 0 2001032 28660 xpc 0 0 74754548 debug 0 root@sheep:~# root@sheep:~# /usr/local/opt/xfsprogs/bin/xfs_info /data/Scratch meta-data=/dev/md0 isize=256 agcount=16, agsize=239566 blks = sectsz=512 attr=0 data = bsize=4096 blocks=3833056, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 root@sheep:~# root@sheep:~# umount /data/Scratch/ root@sheep:~# root@sheep:~# /usr/local/opt/xfsprogs/bin/xfs_check /dev/md0 missing free index for data block 0 in dir ino 24472381 missing free index for data block 2 in dir ino 24472381 missing free index for data block 3 in dir ino 24472381 missing free index for data block 4 in dir ino 24472381 missing free index for data block 5 in dir ino 24472381 missing free index for data block 6 in dir ino 24472381 missing free index for data block 7 in dir ino 24472381 missing free index for data block 8 in dir ino 24472381 missing free index for data block 9 in dir ino 24472381 missing free index for data block 10 in dir ino 24472381 missing free index for data block 11 in dir ino 24472381 missing free index for data block 12 in dir ino 24472381 missing free index for data block 13 in dir ino 24472381 missing free index for data block 14 in dir ino 24472381 missing free index for data block 15 in dir ino 24472381 missing free index for data block 16 in dir ino 24472381 missing free index for data block 17 in dir ino 24472381 missing free index for data block 18 in dir ino 24472381 missing free index for data block 19 in dir ino 24472381 missing free index for data block 20 in dir ino 24472381 missing free index for data block 0 in dir ino 49653161 missing free index for data block 2 in dir ino 49653161 missing free index for data block 3 in dir ino 49653161 missing free index for data block 4 in dir ino 49653161 missing free index for data block 5 in dir ino 49653161 missing free index for data block 6 in dir ino 49653161 missing free index for data block 7 in dir ino 49653161 missing free index for data block 8 in dir ino 49653161 missing free index for data block 9 in dir ino 49653161 missing free index for data block 10 in dir ino 49653161 missing free index for data block 11 in dir ino 49653161 missing free index for data block 12 in dir ino 49653161 missing free index for data block 13 in dir ino 49653161 missing free index for data block 14 in dir ino 49653161 missing free index for data block 15 in dir ino 49653161 missing free index for data block 16 in dir ino 49653161 missing free index for data block 17 in dir ino 49653161 missing free index for data block 18 in dir ino 49653161 missing free index for data block 19 in dir ino 49653161 missing free index for data block 20 in dir ino 49653161 bad free block nused 0 should be 13 for dir ino 61480965 block 16777216 root@sheep:~# root@sheep:~# root@sheep:~# /usr/local/opt/xfsprogs/sbin/xfs_repair /dev/md0 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... - clear lost+found (if it exists) ... - clearing existing "lost+found" inode - deleting existing "lost+found" entry - 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 - ensuring existence of lost+found directory - traversing filesystem starting at / ... free block 16777216 for directory inode 61480965 bad nused rebuilding directory inode 61480965 can't read freespace block 16777216 for directory inode 24472381 rebuilding directory inode 24472381 can't read freespace block 16777216 for directory inode 49653161 rebuilding directory inode 49653161 - traversal finished ... - traversing all unattached subtrees ... - traversals finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify and correct link counts... cache_purge: shake on cache 0x80dd060 left 3 nodes!? cache_purge: shake on cache 0x80dd060 left 3 nodes!? cache_purge: shake on cache 0x80dd060 left 3 nodes!? done root@sheep:~# echo $? 0 root@sheep:~# root@sheep:~# mount /data/Scratch/ root@sheep:~# dmesg | tail md: using 128k window, over a total of 15332224 blocks. md: md0: sync done. RAID1 conf printout: --- wd:2 rd:2 disk 0, wo:0, o:1, dev:sdb1 disk 1, wo:0, o:1, dev:sdc1 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 root@sheep:~# ls -la /data/Scratch/lost+found/ total 0 drwxr-xr-x 2 root root 6 Jul 30 20:15 . drwxr-xr-x 6 root root 61 Jun 21 02:11 .. root@sheep:~# df -h /data/Scratch Filesystem Size Used Avail Use% Mounted on /dev/md0 15G 13G 2.3G 85% /data/Scratch root@sheep:~# umount /data/Scratch root@sheep:~# root@sheep:~# /usr/local/opt/xfsprogs/bin/xfs_check /dev/md0 ; echo $? 0 root@sheep:~# /usr/local/opt/xfsprogs/sbin/xfs_repair /dev/md0 ; echo $? 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... - clear lost+found (if it exists) ... - clearing existing "lost+found" inode - deleting existing "lost+found" entry - 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 - ensuring existence of lost+found directory - traversing filesystem starting at / ... - traversal finished ... - traversing all unattached subtrees ... - traversals finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify and correct link counts... done 0 root@sheep:~# dmesg | tail md: using 128k window, over a total of 15332224 blocks. md: md0: sync done. RAID1 conf printout: --- wd:2 rd:2 disk 0, wo:0, o:1, dev:sdb1 disk 1, wo:0, o:1, dev:sdc1 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 root@sheep:~# root@sheep:~# mount /data/Scratch/ root@sheep:~# dmesg | tail RAID1 conf printout: --- wd:2 rd:2 disk 0, wo:0, o:1, dev:sdb1 disk 1, wo:0, o:1, dev:sdc1 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 root@sheep:~# root@sheep:~# sync root@sheep:~# mount | grep md0 /dev/md0 on /data/Scratch type xfs (ro,nosuid,nodev,noatime) root@sheep:~# root@sheep:~# umount /data/Scratch root@sheep:~# mount | grep md0 /dev/md0 on /data/Scratch type xfs (rw,nosuid,nodev,noatime) root@sheep:~# dmesg | tail disk 1, wo:0, o:1, dev:sdc1 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 Filesystem "md0": Disabling barriers, not supported by the underlying device XFS mounting filesystem md0 Ending clean XFS mount for filesystem: md0 root@sheep:~# root@sheep:~# df -h /data/Scratch/ Filesystem Size Used Avail Use% Mounted on /dev/md0 15G 13G 2.3G 85% /data/Scratch root@sheep:~# ls -la /data/Scratch/lost+found/ total 0 drwxr-xr-x 2 root root 6 Jul 30 20:22 . drwxr-xr-x 6 root root 61 Jun 21 02:11 .. root@sheep:~# sync root@sheep:~# exit Script done on Sun Jul 30 20:24:36 2006