[CentOS] Best way to extend pv partition for LVM

Mon Apr 4 09:11:11 UTC 2011
John Hodrien <J.H.Hodrien at leeds.ac.uk>

On Sat, 2 Apr 2011, Jay Leafey wrote:

> You COULD use option #1, but it requires some additional resources and a
> LOT of shuffling.

Why do you need to shuffle?

fdisk /dev/sda
delete the PV partition
create a new PV partition starting at the same sector but ending at the end of
the now larger disk.
write it out and reboot.  I forget whether the reboot is still necessary, but
I think fdisk will warn you it is if you've got mounted filesystems on that
disk.
pvresize /dev/sda1

Done.

I see no problem with #2 though.

jh