The way I resize(d) LVM partition is following:
Boot from Installation media, let it find and mount partitions (or avoid searching for them and use above post until mounting segment).
then
Code:
lvm vgdisplay VolGroup00
to see LVM related data.
Now unmount LVM partitions like this:
Code:
umount /mnt/sysimage/boot
and
Code:
umount /mnt/sysimage
,
order LVM do deactivate partitions from that volume group:
Code:
lvm lvchange -a n /dev/VolGroup00/LogVol00 /dev/VolGroup00/LogVol00
(add more at the end if you have more inside that volume group), then resize phisical volume is necesary. I used following syntax for single drive (on the RAID):
Code:
lvm pvresize -v -d /dev/md3
, you use your correct disk instead of "/dev/md3".
Then activate volume groups again:
and activate LV's with
Then read volume group to see the Free PE size:
Code:
lvm vgdisplay VolGroup00
, and resize the LV you want (in this case for another 3GB):
Code:
lvm lvresize -L +3GB /dev/VolGroup00/LogVol00
OR to use number of entities use
Code:
lvm lvresize -l +<number> /dev/VolGroup00/LogVol00
this last syntax I have not tested!.
Now see what you have done with
Code:
lvm lvdisplay /dev/VolGroup00/LogVol00
and
, then fix partition with
Code:
umount /dev/VolGroup00/LogVol00
Code:
resize2fs -p /dev/VolGroup00/LogVol00
THIS MAY BE REDUNANT:
Code:
e2fsck -f /dev/VolGroup00/LogVol00
That should be it.