Dave Kleikamp skrev:
> On Wed, 2007-01-24 at 20:54 +0100, Simon Lundell wrote:
>
>
>> I cannot remember whether the resizing gave me an error or not.
>>
>
> Looking at jfs_fsck, it's supposed to recognize when this happens and
> recover gracefully. I can tell you it's been a long time since anyone
> verified that that code path actually works.
>
>
>> So, i
>> don't think it did. If there are any information you need, don't
>> hesitate to contact me. However, I am planning to wipe that volume tonight.
>> Would it be possible to correct the super block? I have backed
>> everything up, so i can afford to do some risky tests!
>>
>
> Possibly. I want to see what the recovery code in jfs_fsck will try to
> do. Can you set the FM_EXTENDFS flag as follows:
>
> jfs_debugfs /dev/vgmedia/media
>
>> sup
>> m 11 0xa
>> x
>> q
>>
>
> (jfs_debugfs doesn't know about the flag and will show "unknown state".)
>
> then run "fsck -dvf /dev/vgmedia/media" as you did before and send me
> the output?
>
> Thanks,
> Shaggy
>
>
Ok, here's the output:
simons ~ # jfs_debugfs /dev/vgmedia/media
jfs_debugfs version 1.1.11, 05-Jun-2006
Aggregate Block Size: 4096
> sup
[1] s_magic: 'JFS1' [15] s_ait2.addr1: 0x00
[2] s_version: 1 [16] s_ait2.addr2: 0x000030c9
[3] s_size: 0x0000000030a53d18 s_ait2.address: 12489
[4] s_bsize: 4096 [17] s_logdev: 0x0000fd00
[5] s_l2bsize: 12 [18] s_logserial: 0x0000001d
[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: 0x0614b400
[9] pad: Not Displayed s_logpxd.address: 102020096
[10] s_agsize: 0x00100000 [22] s_fsckpxd.len: 3165
[11] s_flag: 0x10200900 [23] s_fsckpxd.addr1: 0x00
JFS_LINUX [24] s_fsckpxd.addr2: 0x0614a7a3
JFS_COMMIT JFS_GROUPCOMMIT s_fsckpxd.address: 102016931
JFS_INLINELOG [25] s_time.tv_sec: 0x455cba10
[26] s_time.tv_nsec: 0x00000000
[27] s_fpack: ''
[12] s_state: 0x00000002
FM_DIRTY
[13] s_compress: 0
[14] s_ait2.len: 4
display_super: [m]odify or e[x]it: m 11 0xa
[1] s_magic: 'JFS1' [15] s_ait2.addr1: 0x00
[2] s_version: 1 [16] s_ait2.addr2: 0x000030c9
[3] s_size: 0x0000000030a53d18 s_ait2.address: 12489
[4] s_bsize: 4096 [17] s_logdev: 0x0000fd00
[5] s_l2bsize: 12 [18] s_logserial: 0x0000001d
[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: 0x0614b400
[9] pad: Not Displayed s_logpxd.address: 102020096
[10] s_agsize: 0x00100000 [22] s_fsckpxd.len: 3165
[11] s_flag: 0x0000000a [23] s_fsckpxd.addr1: 0x00
[24] s_fsckpxd.addr2: 0x0614a7a3
s_fsckpxd.address: 102016931
[25] s_time.tv_sec: 0x455cba10
[26] s_time.tv_nsec: 0x00000000
[27] s_fpack: ''
[12] s_state: 0x00000002
FM_DIRTY
[13] s_compress: 0
[14] s_ait2.len: 4
display_super: [m]odify or e[x]it: x
> q
simons ~ # fsck -dvf /dev/vgmedia/media
fsck 1.39 (29-May-2006)
fsck.jfs version 1.1.11, 05-Jun-2006
processing started: 1/24/2007 22.10.19
The current device is: /dev/vgmedia/media [xchkdsk.c:1520]
Open(...READ/WRITE EXCLUSIVE...) returned rc = 0 [fsckpfs.c:3233]
Invalid data (6) detected in the superblock (P). [fsckmeta.c:2013]
Invalid data (6) detected in the superblock (P). [fsckmeta.c:2018]
Secondary superblock is valid. [fsckmeta.c:1553]
The type of file system for the device is JFS. [xchkdsk.c:1537]
Block size in bytes: 4096 [xchkdsk.c:1850]
Filesystem size in blocks: 102028288 [xchkdsk.c:1857]
**Phase 0 - Replay Journal Log [xchkdsk.c:1864]
LOGREDO: Log superblock contains invalid magic number. [logredo.c:529]
logredo failed (rc=-268). fsck continuing. [xchkdsk.c:1894]
**Phase 1 - Check Blocks, Files/Directories, and Directory Entries
[xchkdsk.c:1989]
Primary metadata inode A2 is corrupt. [fsckmeta.c:3170]
Duplicate reference to 12471 block(s) beginning at offset 16 found in
file system object MA2. [fsckwsp.c:452]
Inode A2 has references to cross linked blocks. [fsckwsp.c:1772]
Errors detected in the Primary File/Directory Allocation Table.
[fsckmeta.c:1890]
Errors detected in the Secondary File/Directory Allocation Table.
[fsckmeta.c:1895]
CANNOT CONTINUE. [fsckmeta.c:1902]
**** Filesystem was modified. **** [xchkdsk.c:459]
processing terminated: 1/24/2007 22:10:20 with return code: -10049
exit code: 4. [xchkdsk.c:468]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion