Skip to contentSkip to conversation

Resizing a physical partition used in LVM

linux-lvm James Lamanna 2 participants 2 messages Jan 7, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Lets say I have the following scenario:
I have 4 paritions on a RAID 5 (h/w RAID with 3ware escalade). 1 partition (/dev/sda4) is managed by LVM.
Currently I have 4 disks in the RAID 5.
If, in the future, I want to add disks to the RAID (the controller has 8 ports), is resizing /dev/sda4 in fdisk to accomodate the extra space problematic?
In other words would the following work:
1) Stop LVM.
2) Extend /dev/sda4 to the end of the RAID with fdisk
3) Start LVM
4) lvextend a logical partition to the end of the physical volume.

Or do I have to create a new partition on the disk for this extra space?

Thanks.

-- James

#2 lore raw
Quoted 2 lines · James Lamanna

1) Stop LVM.
2) Extend /dev/sda4 to the end of the RAID with fdisk

....
vgcfgbackup, edit the backup file by hand, vgcfgrestore
....

Quoted 4 lines

3) Start LVM
4) lvextend a logical partition to the end of the physical volume.

Or do I have to create a new partition on the disk for this extra space?

The latter is easier to achieve.
L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \