Re: Resizing a PV that belongs within a Volume Group?

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



----- Original Message ----

> From: Eric B. <ebenze@xxxxxxxxxxx>
> To: centos@xxxxxxxxxx
> Cc: linux-lvm@xxxxxxxxxx
> Sent: Thu, February 18, 2010 6:11:26 PM
> Subject:  Resizing a PV that belongs within a Volume Group?
> 
> Hi,
> 
> I was wondering if there was a way to extend (ie: grow) a PV that is part of
> a Volume Group?  I currently have a partition on my HD that is being used as
> a PV for my Volume Group, but would like to make it larger.  I have the
> space on my drive to extend my partition, but using standard tools (ex:
> gparted, Partition Magic, etc) would likely end up corrupting the data on in
> the Logical Volumes that are housed within the VG.
> 
> I realize that I could just create a new partition on my HD and just add it
> to my Volume Group and extend my Volume Group, however, given that it would
> be two contiguous partitions on the HD, I was just wondering if there was a
> way of resizing the original partition within the VG without causing any
> problems.
> 
> I tried looking at tools like pvresize but I can't seem to understand the 
> right arguments to use it as whatever I try never seems to resize the 
> original partition itself.  I also looked at system-config-lvm GUI tool, but 
> that doesn't seem to allow me to make the PV any larger.
> 
> Does anyone have any suggestions?


First extend the physical media (resize the partition, LUN, whatever), then just pvresize the new partition

Use with care, test it a few times in a test box or VM, then try it in production, if you screw up you'll lose your data. 


      
_______________________________________________
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