[linux-lvm] LVM on hardware RAID

David Robinson zxvdr.au at gmail.com
Tue Jul 31 22:47:07 UTC 2007

Doug Eubanks wrote:
> Quick question....
> I've got three drives in on a hardware SCSI raid.  Within the next
> week, I will be adding two drives to the array and using the
> controller's expand function to increase the size of my array.
> Will the pv and vg sizes automatically be increased after a parted a
> reboot?

No. You would need to run pvresize first (you would need to resize the 
underlying partition first if one is used) - after pvresize has been run 
you will see that the size of the VG the PV is in has increased.

   I was also considering just adding a second LVM partition to
> once the expand has completed and adding that pv to the vg.
> Does anyone have any advice or pointers or best practices?

I prefer to enlarging the underlying partition (if possible) then do a 
pvresize rather than adding an additional partition and doing pvcreate 
and vgextend. The only reason is to avoid adding partitions necessarily, 
but obviously this isn't always possible and there is the increased risk 
that you could break things if your not careful (make sure the 
partition's start block is the same).


More information about the linux-lvm mailing list