[linux-lvm] resize an LVM physical volume
Phillip Susi
psusi at cfl.rr.com
Tue Apr 20 14:23:09 UTC 2010
On 4/20/2010 9:19 AM, behzad r wrote:
> umount /partition that must be increased
> pvdisplay /dev/sde2 | grep VG
> vgchange -a n myvg
> fdisk /dev/sde
> delete the partition and recreate a new one with same start cylinder and
> increase the number of cylinder
> pvresize /dev/sde1
> vgchange -a y myvg
> reiserfsck /dev/myvg/mylv
If you use the full disk as the physical volume instead of partitioning
it, then you would not need to take it offline to extend it.
> but on bladeframe when I use the fdisk to increase the partition the
> system destroy everything the physical volume reject the partion
> /dev/sde1 (when I run pvdisplay it's not on the list anymore)and all the
> data is destroyed I got a feeling that fdisk remove the /dev/sda1 and
> re-create a new one
> here is the kernel information concerning the bladeframe
It sounds like fdisk did not recreate the partition with exactly the
same start location. It is best to put fdisk into sector mode when
doing things like this so that it will not round cylinder numbers and
possibly hide minor changes from you.
More information about the linux-lvm
mailing list