Question on freeing space using lvm
Setup: FC9 installed on 500G harddisk. LVM is used.
There is one default volume group VolGroup and one logical volume LogVol00 that use almost all of disk space.
I need to host another OS on that PC with that disk. To do that I want to free some space on the disk and create new partisons on it for new OS - another Linux distro.
What I did so far:
I have reduced the size of ext3 filesystem within LogVol00 using following:
# lvm vgchange -a y
# resize2fs -f /dev/VolGroup00/LogVol00 100G
# lvm lvreduce -L100G /dev/VolGroup00/LogVol00
Everything is OK. No data loss, can boot, can work.
# lvm lvscan
ACTIVE '/dev//dev/VolGroup00/LogVol00' [100.00GB] inherit
ACTIVE '/dev//dev/VolGroup00/LogVol01' [1.94 GB] inherit
Then, if I run gparted to create new partitions, it reports that still, almost 500G is used by lvm and refuses new partition creation.
If I run:
#lvm pvresize --setphysicalvolumesize 106G /dev/sda2
it fails saying:
/dev/sda2: cannot resize to 3391 extents as later ones are allocated
Please advise on the next steps.
Last edited by kalbi; 16th June 2009 at 03:25 AM.