Re: how to resize a partition of a disk define as a physical volume

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



On Wed, Feb 22, 2017 at 07:44:33AM -0500, Bernard Fay wrote:
> Hello,
> 
> I have a CentOS VM with only one disk on a Xenserver.
> 
> The disk has 2 partitions:
> 
> /dev/xvda1 -> /boot
> /dev/xvda2 -> a physical volume for LVM
> 
> 
> I added 5GB to this disk via Xencenter to extend /dev/xvda2.  Usually I
> just have to do "pvresize /dev/xvda" to have the additional space added to
> the disk. But for some reason it does not work for this disk.
> 
> [root ~]# pvresize /dev/xvda
>   Failed to find physical volume "/dev/xvda".
>   0 physical volume(s) resized / 0 physical volume(s) not resized
> 
> [root ~]# pvresize /dev/xvda2
>   Physical volume "/dev/xvda2" changed
>   1 physical volume(s) resized / 0 physical volume(s) not resized
> 
> 
> Does someone have seen this problem before or could have an idea of the
> problem?

Looks like xvda2 was resized.  You should now have an added
5GB worth of unallocated extents in the vg

-- 
Jon H. LaBadie                 jon@xxxxxxxxxx
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (703) 935-6720 (C)
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://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