resize LVM partition

Aldo Foot lunixer at gmail.com
Mon Oct 27 05:49:23 UTC 2008


On Sun, Oct 26, 2008 at 4:33 AM, Gilboa Davara <gilboad at gmail.com> wrote:
> On Sat, 2008-10-25 at 20:37 +0200, David Hláčik wrote:
>> Hello guys,
>>
>> i have removed sda1 partition with Windows , now i have free space on
>> disk
>>
>> There is
>>
>> sda1 - now free space
>> sda2 - /boot
>> sda3 - LVM
>>
>> Now i want to resize sda3 to take free space over sda1. Is this
>> possible? as there is sda2 in way before ...
>> Is the best solution to just create sda1 with LVM and then resize my
>> volume group to sda1 also?
>>
>> Thanks !
>>
>> David
>
> AFAIK you cannot re-size the LVM (can you?) but you can add a second
> (sda1) physical volume (partition in this case) to an existing LVM.
>
> E.g.
>
> $ vgextend VolGroupName /dev/sda1

You're correct LVs cannot be resized, but Volume Groups do by adding
or removing partitions as you describe. The lvextend command must be used
in addition to vgextend.
At any rate, the OP had the right approach, which is to use sda1 to extend
his logical volume.

~af.




More information about the fedora-list mailing list