Re: resize an LVM physical volume

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

 



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.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux