LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 01-05-2005, 03:21 PM   #1
jadupl2
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
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>?
 
Old 01-09-2005, 12:56 PM   #2
hkb33
Member
 
Registered: Sep 2004
Location: Raleigh NC
Distribution: Fedora / RHEL
Posts: 171

Rep: Reputation: 30
How do you know this is a bonafied bug? Have you tried doing the above steps by hand?
 
Old 01-10-2005, 03:42 PM   #3
jadupl2
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ext2 ext3 lvm restore Shade00 Linux - Hardware 0 10-20-2005 02:58 PM
Resizing an ext3 LVM Partition PenguinPwrdBox Linux - Software 1 09-04-2005 02:34 AM
LVM v1 kernel EXT3-fs error scott.anderson Linux - Software 0 08-04-2005 10:07 AM
RH Enterprise 4 + LVM + ext3 super_paws Red Hat 3 04-30-2005 04:23 AM
extending ext3 lvm Kroenecker Linux - Newbie 2 12-31-2003 06:51 PM


All times are GMT -5. The time now is 12:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration