-   Fedora (
-   -   How do I resize LVM volume group? (

rconan 10-22-2005 05:08 PM

How do I resize LVM volume group?
I have an 80 GB hard drive on /dev/hdb with the following partitions:

/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9964 79931407+ 8e Linux LVM

The Linux LVM is split as follows with 5.72GB free space at the end of the Volume Group.

ACTIVE '/dev/VolGroup/LogVol_Root' [70.00 GB] inherit
ACTIVE '/dev/VolGroup/LogVol_Swap' [512.00 MB] inherit

I want to remove the free space from the volume group and turn it into a separate physical primary partition.

How do I do this?

WhatsHisName 10-23-2005 12:22 AM

You would need pvresize to change the underlying physical volume/partition size(s), but pvresize has not been implemented as an lvm command (yet). Stay Tuned!

But today, you could move everything to another drive and reformat the existing drive as you wish. It's a truly good reason to own a huge USB drive.

SilentDeath 11-30-2006 10:18 AM

How do I resize LVM volume group?
I also wanted to resize an LVM partition, most sites said it was impossible, this is what I did:

Resized the logical volume with pvresize as WhatsHisName said. But the partition itself remained unaffected and parted didn't want to resize it.

So what I did was use WinHEX, which is an excellent program, to directly modify the partition table.

I changed “Sectors in partition” by dividing the number of bytes I wanted by 512 which gives sectors, this could be different for other users. I ignored other values.

As safeties I left a buffer zone between partitions. I then used gparted to create the 2 extra partitions I needed.

I'll report later how this works out. For the moment is seems to be working splendidly.

Lsatenstein 12-02-2006 09:22 AM

What lvm allows you to do is resize a file system that is part of a lvm. So, you can shrink one system and expand another, or add or remove other physical volume groups.

mike-g2 07-28-2007 12:54 PM

try evmsgui
For future reference, I was able to resize a lvm (or so it seems... haven't rebooted yet) using EVMS's gui.


cyber.scientist 04-22-2009 07:45 PM

Did it work?
i need to do a similar thing.

All times are GMT -5. The time now is 05:28 AM.