Resizing a physical partition used in LVM
A message that is not in the archive (sent off-list or not yet received): [email protected]
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
Quoted 2 lines · James Lamanna
1) Stop LVM.
2) Extend/dev/sda4to 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 / \