RH AS 4U2 - LVM extend

Chiu, PCM (Peter) P.C.M.Chiu at rl.ac.uk
Mon Jan 16 08:54:48 UTC 2006


Hi,

I recall in the past that I was able to extend a lvm file system
without the need of reformatting and restoring the contents, but
I don't seem to be able to do under RH AS 4U2.

Below are the steps that I take.  vgdisplay shows the volume group
capacity is extended, but lvdisplay shows the logical volume is not.
Have I missed something here?

Thanks.

fdisk /dev/had to make new partitions 7 and 8 with type 8e

pvcreate /dev/hda7
vgcreate peter-vg /dev/hda7
lvcreate -L 2G /dev/peter-vg -n peter-lv
mke2fs -j /dev/peter-vg/peter-lv
mount /dev/peter-vg/peter-lv /data
- A 2GB /data is mounted and works ok.

umount /data
pvcreate /dev/hda8
vgextend peter-vg /dev/hda8
lvextend -L 4G /dev/peter-vg/peter-lv 

The last command is accepted but no action is taken.
The /dev/peter-vg/peter-lv is still mounted as a 2GB file system.
Tried reboot, vgscan and vgchange -ay, no luck.




More information about the redhat-list mailing list