enlarging ext3 problem with lvm
I am having a problem that can be reproduce very simply.
I create an ext3 filesystem of 100M, and (trying to ) enlarging by 100M. The first and second enlargement work well, but not on the third one I get the fsck error ? Below is the script and the screen output at the end CAN SOMEONE HELP SOLVE THIS PROBLEM ? I CAN UNDERSTAND HOW I BUG SO EVIDENT IS NOT REPORTED ? Linux lxmq1001 2.4.21-15.EL # rpm -qa | grep -i lvm lvm-1.0.3-15 The script is really simple and goes like this umount /coco lvremove -f /dev/datavg/cocolv lvcreate -L100M -n cocolv datavg mkfs.ext3 /dev/datavg/cocolv mkdir /coco mount -t ext3 /dev/datavg/cocolv /coco df -k /coco #echo "Press [ENTER] Create just done" ; read dummy umount /coco e2fsadm -L+100M /dev/datavg/cocolv if [ $? -ne 0 ] ; then echo "Error Detected" ; read ohno ; fi mount -t ext3 /dev/datavg/cocolv /coco df -k /coco #echo "Press [ENTER] First Extend done" ; read dummy umount /coco e2fsadm -L+100M /dev/datavg/cocolv if [ $? -ne 0 ] ; then echo "Error Detected" ; read ohno ; fi mount -t ext3 /dev/datavg/cocolv /coco df -k /coco #echo "Press [ENTER] to extend again" ; read dummy umount /coco e2fsadm -L+100M /dev/datavg/cocolv if [ $? -ne 0 ] ; then echo "Error Detected" ; read ohno ; fi mount -t ext3 /dev/datavg/cocolv /coco df -k /coco # ./ext3_test.sh lvremove -- doing automatic backup of volume group "datavg" lvremove -- logical volume "/dev/datavg/cocolv" successfully removed lvcreate -- doing automatic backup of "datavg" lvcreate -- logical volume "/dev/datavg/cocolv" successfully created mke2fs 1.32 (09-Nov-2002) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 25688 inodes, 102400 blocks 5120 blocks (5.00%) reserved for the super user First data block=1 13 block groups 8192 blocks per group, 8192 fragments per group 1976 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 29 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. mkdir: cannot create directory `/coco': File exists Filesystem 1K-blocks Used Available Use% Mounted on /dev/datavg/cocolv 99150 4127 89903 5% /coco e2fsck 1.32 (09-Nov-2002) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/datavg/cocolv: 11/25688 files (0.0% non-contiguous), 7377/102400 blocks lvextend -- extending logical volume "/dev/datavg/cocolv" to 200 MB lvextend -- doing automatic backup of volume group "datavg" lvextend -- logical volume "/dev/datavg/cocolv" successfully extended resize2fs 1.32 (09-Nov-2002) Begin pass 1 (max = 12) Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The filesystem on /dev/datavg/cocolv is now 204800 blocks long. e2fsadm -- ext2fs in logical volume /dev/datavg/cocolv successfully extended to 200 MB Filesystem 1K-blocks Used Available Use% Mounted on /dev/datavg/cocolv 198562 4127 184195 3% /coco e2fsck 1.32 (09-Nov-2002) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/datavg/cocolv: 11/49400 files (0.0% non-contiguous), 10365/204800 blocks lvextend -- extending logical volume "/dev/datavg/cocolv" to 300 MB lvextend -- doing automatic backup of volume group "datavg" lvextend -- logical volume "/dev/datavg/cocolv" successfully extended resize2fs 1.32 (09-Nov-2002) Begin pass 1 (max = 13) Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 2 (max = 1) Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 3 (max = 25) Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 5 (max = 19) Moving inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The filesystem on /dev/datavg/cocolv is now 307200 blocks long. e2fsadm -- ext2fs in logical volume /dev/datavg/cocolv successfully extended to 300 MB Filesystem 1K-blocks Used Available Use% Mounted on /dev/datavg/cocolv 297713 4165 278188 2% /coco e2fsck 1.32 (09-Nov-2002) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -(16386--16387) -(32770--32771) -(49154--49155) -(65538--65539) -(81922--81923) -(90114--90115) -(98306--98307) -(106498--106499) -(114690--114691) -(122882--122883) -(131074--131075) -(139266--139267) -(147458--147459) -(155650--155651) -(163842--163843) -(172034--172035) -(180226--180227) -(188418--188419) -(196610--196611) Fix<y>? |
How do you know this is a bonafied bug? Have you tried doing the above steps by hand?
|
I, yes same result when doing it by hand.
Bug summitted to bugzilla (number 144846). They acknowledge that it was a bug, and appears to be fix for next version of e2fsprog. Thank You |
All times are GMT -5. The time now is 02:44 AM. |