Re: Best way to extend pv partition for LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux