extending vg on a resized pv

Chris Adams cmadams at hiwaay.net
Sat May 21 15:27:47 UTC 2011


Once upon a time, Maurizio Marini <maumar at datalogica.com> said:
> sofar no prob.
> # vgs
>   VG         #PV #LV #SN Attr   VSize  VFree
>   VolGroup00   1   2   0 wz--n-  7,88G    0 
>   vgopt        1   1   0 wz--n- 25,00G 5,00G
> 
> vgopt is 20G large, how can i extend it to use extra space?

No, vgopt is now 25G (as your above output shows).  When you resize a PV
in a VG, the VG automatically changes to match.

The next step would be to add the space to LV(s) in the VG with
lvresize, and then to resize the filesystem(s) with resize2fs (assuming
ext2/3/4).

-- 
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


More information about the users mailing list