Script started on Sat 29 Mar 2008 10:16:53 AM CET # jfs_fsck -v /dev/sda7 jfs_fsck version 1.1.11, 05-Jun-2006 processing started: 3/29/2008 10.17.6 Using default parameter: -p The current device is: /dev/sda7 Open(...READ/WRITE EXCLUSIVE...) returned rc = 0 Primary superblock is valid. The type of file system for the device is JFS. Block size in bytes: 4096 Filesystem size in blocks: 7417084 **Phase 0 - Replay Journal Log LOGREDO: Log already redone! logredo returned rc = 0 Filesystem is clean. All observed inconsistencies have been repaired. Filesystem has been marked clean. **** Filesystem was modified. **** processing terminated: 3/29/2008 10:17:06 with return code: 0 exit code: 0. # mount /data # du -sh /data/projects/bwbar* 570M /data/projects/bwbar 24K /data/projects/bwbar.new # umount /data # jfs_fsck -fv /dev/sda7 jfs_fsck version 1.1.11, 05-Jun-2006 processing started: 3/29/2008 10.17.48 The current device is: /dev/sda7 Open(...READ/WRITE EXCLUSIVE...) returned rc = 0 Primary superblock is valid. The type of file system for the device is JFS. Block size in bytes: 4096 Filesystem size in blocks: 7417084 **Phase 0 - Replay Journal Log LOGREDO: Log already redone! logredo returned rc = 0 **Phase 1 - Check Blocks, Files/Directories, and Directory Entries .... .....|... ......|.. .......|. ........| .......|. ......|.. .....|... ....|.... ...|..... **Phase 2 - Count links **Phase 3 - Duplicate Block Rescan and Directory Connectedness **Phase 4 - Report Problems **Phase 5 - Check Connectivity **Phase 6 - Perform Approved Corrections **Phase 7 - Rebuild File/Directory Allocation Maps **Phase 8 - Rebuild Disk Allocation Maps Filesystem Summary: Blocks in use for inodes: 14460 Inode count: 115680 File count: 63807 Directory count: 4638 Block count: 7417084 Free block count: 2268457 29668336 kilobytes total disk space. 601599 kilobytes in 4638 directories. 19916431 kilobytes in 63807 user files. 14324 kilobytes in extended attributes 0 kilobytes in access control lists 1265352 kilobytes reserved for system use. 9073828 kilobytes are available for use. Filesystem is clean. All observed inconsistencies have been repaired. Filesystem has been marked clean. **** Filesystem was modified. **** processing terminated: 3/29/2008 10:18:35 with return code: 0 exit code: 0. # jfs_tune -l /dev/sda7 jfs_tune version 1.1.11, 05-Jun-2006 JFS filesystem superblock: JFS magic number: 'JFS1' JFS version: 1 JFS state: clean JFS flags: JFS_LINUX JFS_COMMIT JFS_GROUPCOMMIT JFS_INLINELOG Aggregate block size: 4096 bytes Aggregate size: 59268912 blocks Physical block size: 512 bytes Allocation group size: 65536 aggregate blocks Log device number: 0x807 Filesystem creation: Sat Apr 23 15:53:33 2005 Volume label: '' # mount /data # du -sh /data/projects/bwbar* 570M /data/projects/bwbar 24K /data/projects/bwbar.new # ls -lia /data/projects/bwbar total 583528 503872 drwxrwxr-x 2 www-data www-data 595132416 2008-03-29 09:59 . 389024 drwxr-xr-x 26 evil users 4096 2008-03-29 10:02 .. 582838 -rw-r--r-- 1 evil users 420 2006-02-15 16:35 index.php 582836 -rw-r--r-- 1 evil users 2407 2001-09-22 00:33 README 582837 -rw-r--r-- 1 root root 465 2007-02-15 04:07 ubar.php 598033 -rw-r--r-- 1 www-data www-data 116 2008-03-29 09:59 ubar.png 503874 -rw-r--r-- 1 www-data www-data 42 2008-03-29 09:59 ubar.txt # umount /data # jfs_debugfs /dev/sda7 jfs_debugfs version 1.1.11, 05-Jun-2006 Aggregate Block Size: 4096 > dir 503872 <----- /data/projects/bwbar idotdot = 389024 582836 README 582838 index.php 582837 ubar.php 598033 ubar.png 503874 ubar.txt > > dir 389024 <---- /data/projects/bwbar/.. idotdot = 388288 582817 .htaccess.external 582816 .htaccess.internal 819233 CitrixICA 330870 FAH 69639 ab 573806 atlant 495646 atlant-svn 499715 blinken 122960 bofh 503872 bwbar 598027 bwbar.new 389025 chatbots 389600 ciscopwd 393312 dailystrips 389632 deep.throat 749568 dilbert 729130 doc 503812 exim 94312 jagan 407264 johnboy 389086 phpca 405760 pyca 233504 randconfig 406495 spamusement 389088 test 484813 trac 483501 trac-svn 352832 whax > dm Block allocation map control page at block 16 [1] dn_mapsize: 0x00000710be6 [9] dn_agheigth: 1 [2] dn_nfree: 0x00000229d29 [10] dn_agwidth: 2 [3] dn_l2nbperpage: 0 [11] dn_agstart: 85 [4] dn_numag: 114 [12] dn_agl2size: 16 [5] dn_maxlevel: 0 [13] dn_agfree: type 'f' [6] dn_maxag: 113 [14] dn_agsize: 65536 [7] dn_agpref: 66 [15] pad: Not Displayed [8] dn_aglevel: 0 display_dbmap: [m]odify, [f]ree count, [t]ree, e[x]it > x > > dt 503872 <--- /data/projects/bwbar Root D-Tree Node of inode 503872 [1] DASDlimit 0 [2] DASDused 0 [3] thresh (%) 0 [4] delta (%) 0 [5] flag 0x85 BT_ROOT BT_INTERNAL [6] nextindex 1 [7] freecnt 7 [8] freelist 2 [9] idotdot 389024 [10] stbl {1,1,3,2,4,0,0,0} dtree: Hit enter to see entries, [m]odify, or e[x]it: x > dt 503872 Root D-Tree Node of inode 503872 [1] DASDlimit 0 [2] DASDused 0 [3] thresh (%) 0 [4] delta (%) 0 [5] flag 0x85 BT_ROOT BT_INTERNAL [6] nextindex 1 [7] freecnt 7 [8] freelist 2 [9] idotdot 389024 [10] stbl {1,1,3,2,4,0,0,0} dtree: Hit enter to see entries, [m]odify, or e[x]it: stbl[0] = 1 [1] xd.len 0x000001 [4] next -1 [2] xd.addr1 0x00 [5] namlen 0 [3] xd.addr2 0x001e3520 xd.addr 1979680 [6] name addressPXD(xd) 1979680 dtree: press enter for next or [u]p, [d]own or e[x]it > > i 503872 Inode 503872 at block 6791116, offset 0x0: [1] di_inostamp: 0x426a535d [19] di_mtime.tv_nsec: 0x287072c2 [2] di_fileset: 16 [20] di_otime.tv_sec: 0x426a6803 [3] di_number: 503872 [21] di_otime.tv_nsec: 0x00000000 [4] di_gen: 138595 [22] di_acl.flag: 0x00 [5] di_ixpxd.len: 4 [23] di_acl.rsrvd: Not Displayed [6] di_ixpxd.addr1: 0x00 [24] di_acl.size: 0x00000000 [7] di_ixpxd.addr2: 0x00679fcc [25] di_acl.len: 0 di_ixpxd.address: 6791116 [26] di_acl.addr1: 0x00 [8] di_size: 0x0000000023790000 [27] di_acl.addr2: 0x00000000 [9] di_nblocks: 0x00000000000239d2 di_acl.address: 0 [10] di_nlink: 2 [28] di_ea.flag: 0x20 [11] di_uid: 33 [29] di_ea.rsrvd: Not Displayed [12] di_gid: 33 [30] di_ea.size: 0x0000003c [13] di_mode: 0x200041fd [31] di_ea.len: 1 0040775 drwx [32] di_ea.addr1: 0x00 [14] di_atime.tv_sec: 0x3d4db6a5 [33] di_ea.addr2: 0x00679fd2 [15] di_atime.tv_nsec: 0x00000000 di_ea.address: 6791122 [16] di_ctime.tv_sec: 0x47ee050b [34] di_next_index: 74391347 [17] di_ctime.tv_nsec: 0x287072c2 [35] di_acltype: 0x00000000 [18] di_mtime.tv_sec: 0x47ee050b change_inode: [m]odify or e[x]it > x > xt 503872 Root X-Tree Node of inode 503872 [1] flag 0x85 BT_ROOT BT_INTERNAL [2] nextindex 5 [5] self.addr1 0x00 [3] maxentry 6 [6] self.addr2 0xffffffff [4] self.len 0x000000 self.addr 4294967295 xtree: Hit enter to see entries, [m]odify, or e[x]it: XAD # = 2 [1] xad.flag 0 [4] xad.len 0x000001 [2] xad.off1 0x00 [5] xad.addr1 0x00 [3] xad.off2 0x00000000 [6] xad.addr2 0x00488eff xad.off 0 xad.addr 4755199 xtree: press enter for next or [u]p, [d]own or e[x]it > XAD # = 3 [1] xad.flag 0 [4] xad.len 0x000001 [2] xad.off1 0x00 [5] xad.addr1 0x00 [3] xad.off2 0x0000fc04 [6] xad.addr2 0x0051a9e5 xad.off 64516 xad.addr 5351909 xtree: press enter for next or [u]p, [d]own or e[x]it > XAD # = 4 [1] xad.flag 0 [4] xad.len 0x000001 [2] xad.off1 0x00 [5] xad.addr1 0x00 [3] xad.off2 0x0001f808 [6] xad.addr2 0x004007f1 xad.off 129032 xad.addr 4196337 xtree: press enter for next or [u]p, [d]own or e[x]it > > # exit Script done on Sat 29 Mar 2008 10:25:10 AM CET