Using the 1.1.7 utils on Red Hat ES3 I get:

[EMAIL PROTECTED] root]# uname -a
Linux vefur 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 
GNU/Linux
[EMAIL PROTECTED] root]# dmesg | grep -i jfs
JFS development version: $Name: v1_1_7 $

[EMAIL PROTECTED] mkfs]# ./jfs_mkfs /dev/vg00/lvol7 
./jfs_mkfs version 1.1.7, 22-Jul-2004
Warning!  All data on device /dev/vg00/lvol7 will be lost!

Continue? (Y/N) Y
The specified disk did not finish formatting.
Internal error3: Format failed rc=ffffffff

That error message (Internal error3) was changed by me because the code 
had the same identical error message in several places.

The code breaks here (From line 1053 of mkfs.c):
                logloc = number_of_blocks - logsize;
                number_of_blocks -= logsize;
                l2absize = log2shift(aggr_block_size);
                rc = jfs_logform(dev_handle, aggr_block_size, l2absize,
                                 type_jfs | type_commit, logloc, logsize, NULL,
                                 NULL);
                if (rc != 0) {
                        message_user(MSG_OSO_FORMAT_FAILED, NULL, 0, OSO_MSG);
                        DBG_ERROR(("Internal error3: Format failed rc=%x\n", rc))
                            close(dev_handle);
                        return (rc);
                }

Apparently jfs_logform doesnt like my disk.

[EMAIL PROTECTED] root]# lvdisplay /dev/vg00/lvol7
--- Logical volume ---
LV Name                /dev/vg00/lvol7
VG Name                vg00
LV Write Access        read/write
LV Status              available
LV #                   7
# open                 0
LV Size                106.75 GB
Current LE             27327
Allocated LE           27327
Allocation             next free
Read ahead sectors     1024
Block device           58:6


And just to prove the lvol is OK:

[EMAIL PROTECTED] root]# mke2fs -j /dev/vg00/lvol7
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
13991936 inodes, 27982848 blocks
1399142 blocks (5.00%) reserved for the super user
First data block=0
854 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


Any hints on whats wrong ?

-- 
Rikki.         --  RHCE, RHCX, HP-UX Certified Administrator.
               --  Solaris 7 Certified Systems and Network Administrator.
Bell Labs Unix --  Reach out and grep someone.
Those who do not understand Unix are condemned to reinvent it, poorly.
_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to