I've got a broken jfs file system on a Apple Xserve RAID attached
to PC with Fedora Core 3. A replacement drive was installed,
the RAID apparently hiccuped, and the jfs kernel module became
very unhappy. We had to reboot to get the RAID to rebuild, and
now the file system won't mount. fsck.jfs craps out during Phase
1, and exits with exit code eight. Details follow.
Interestingly enough, fsck.jfs -n reports some extra info...
Secondary file/directory allocation structure (2) is not a
correct redundant copy of primary structure. [fsckimap.c:909]
Also of interest: the superblock looks identical to the superblocks
on other identically configured machines.
Is there any hope of fixing it? Or should I call it dead?
steve
- - -
systems & network manager
high energy physics
university of wisconsin
- - -
s5n06.hep(rader): cat /etc/redhat-release
Fedora Core release 3 (Heidelberg)
s5n06.hep(rader): uname -a
Linux s5n06.hep.wisc.edu 2.6.11-1.27_FC3smp #1 SMP Tue May 17 20:43:11 EDT 2005
i686 i686 i386 GNU/Linux
s5n06.hep(rader): sudo egrep "diRead|dtSearch" /var/log/messages | head
Jun 16 12:49:18 s5n06 kernel: ERROR: (device sda1): diRead: i_ino != di_number
Jun 16 12:50:37 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 16 12:50:41 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 16 12:50:49 s5n06 kernel: ERROR: (device sda1): diRead: i_ino != di_number
Jun 16 12:51:27 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 16 12:51:28 s5n06 kernel: ERROR: (device sda1): diRead: i_ino != di_number
Jun 16 12:52:45 s5n06 kernel: ERROR: (device sda1): diRead: i_ino != di_number
Jun 16 12:55:09 s5n06 kernel: ERROR: (device sda1): diRead: i_ino != di_number
Jun 16 12:55:27 s5n06 kernel: ERROR: (device sda1): diRead: i_ino != di_number
Jun 16 12:56:25 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
s5n06.hep(rader): sudo egrep "diRead|dtSearch" /var/log/messages | tail
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
Jun 17 11:28:45 s5n06 kernel: ERROR: (device sda1): stack overrun in dtSearch!
s5n06.hep(rader): sudo parted /dev/sda print
Disk geometry for /dev/sda: 0.000-2289288.000 megabytes
Disk label type: gpt
Minor Start End Filesystem Name Flags
1 0.017 192135.000 jfs
Information: Don't forget to update /etc/fstab, if necessary.
5n06.hep(rader): sudo fsck.jfs -d -f /dev/sda1
fsck.jfs version 1.1.7, 22-Jul-2004
processing started: 6/17/2005 14.52.25
The current device is: /dev/sda1 [xchkdsk.c:1558]
Open(...READ/WRITE EXCLUSIVE...) returned rc = 0 [fsckpfs.c:3273]
Primary superblock is valid. [fsckmeta.c:1570]
The type of file system for the device is JFS. [xchkdsk.c:1575]
Block size in bytes: 4096 [xchkdsk.c:1902]
Filesystem size in blocks: 586057467 [xchkdsk.c:1909]
**Phase 0 - Replay Journal Log [xchkdsk.c:1916]
LOGREDO: Log already redone! [logredo.c:563]
logredo returned rc = 0 [xchkdsk.c:1948]
**Phase 1 - Check Blocks, Files/Directories, and Directory Entries
[xchkdsk.c:2041]
Filesystem is clean. [fsckmeta.c:130]
All observed inconsistencies have been repaired. [fsckmeta.c:140]
Filesystem has been marked clean. [fsckmeta.c:144]
**** Filesystem was modified. **** [xchkdsk.c:463]
processing terminated: 6/17/2005 14:52:26 with return code: 0 exit code: 8.
[xchkdsk.c:472]
s5n06.hep(rader): sudo mount -t jfs /dev/sda1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
s5n06.hep(rader): sudo jfs_debugfs /dev/sda1
jfs_debugfs version 1.1.7, 22-Jul-2004
Aggregate Block Size: 4096
> superblock
[1] s_magic: 'JFS1' [15] s_ait2.addr1: 0x00
[2] s_version: 1 [16] s_ait2.addr2: 0x000117ce
[3] s_size: 0x0000000117710758 s_ait2.address: 71630
[4] s_bsize: 4096 [17] s_logdev: 0x00000801
[5] s_l2bsize: 12 [18] s_logserial: 0x00000004
[6] s_l2bfactor: 3 [19] s_logpxd.len: 8192
[7] s_pbsize: 512 [20] s_logpxd.addr1: 0x00
[8] s_l2pbsize: 9 [21] s_logpxd.addr2: 0x22ee66fb
[9] pad: Not Displayed s_logpxd.address: 586049275
[10] s_agsize: 0x00800000 [22] s_fsckpxd.len: 17936
[11] s_flag: 0x10200900 [23] s_fsckpxd.addr1: 0x00
JFS_LINUX [24] s_fsckpxd.addr2: 0x22ee20eb
JFS_COMMIT JFS_GROUPCOMMIT s_fsckpxd.address: 586031339
JFS_INLINELOG [25] s_time.tv_sec: 0x421dd286
[26] s_time.tv_nsec: 0x00000000
[27] s_fpack: ''
[12] s_state: 0x00000000
FM_CLEAN
[13] s_compress: 0
[14] s_ait2.len: 4
display_super: [m]odify or e[x]it: x
> s2perblock
[1] s_magic: 'JFS1' [16] s_aim2.len: 2
[2] s_version: 1 [17] s_aim2.addr1: 0x00
[3] s_size: 0x0000000117710758 [18] s_aim2.addr2: 0x000117cc
[4] s_bsize: 4096 s_aim2.address: 71628
[5] s_l2bsize: 12 [19] s_logdev: 0x00000801
[6] s_l2bfactor: 3 [20] s_logserial: 0x00000004
[7] s_pbsize: 512 [21] s_logpxd.len: 8192
[8] s_l2pbsize: 9 [22] s_logpxd.addr1: 0x00
[9] s_agsize: 0x00800000 [23] s_logpxd.addr2: 0x22ee66fb
[10] s_flag: 0x10200900 s_logpxd.address: 586049275
LINUX [24] s_fsckpxd.len: 17936
GROUPCOMMIT [25] s_fsckpxd.addr1: 0x00
INLINELOG [26] s_fsckpxd.addr2: 0x22ee20eb
s_fsckpxd.address: 586031339
[11] s_state: 0x00000000 [27] s_fsckloglen: 50
CLEAN [28] s_fscklog: 2
[12] s_compress: 0 [29] s_fpack: ' '
[13] s_ait2.len: 4
[14] s_ait2.addr1: 0x00
[15] s_ait2.addr2: 0x000117ce
s_ait2.address: 71630
display_super2: [m]odify or e[x]it: x
> quit
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion