How can you re-allocate space from one Volume Group to another Volume Group in Linux? Both volume groups exist on the same physical drive and are split evenly, let say 50G each. I'd like to shrink one down to 20G and re-assign the 30G to the other VG, extending it to 80G.
Linux Partition – How to Re-allocate Space Between Volume Groups
disk-volumelinuxpartition
Best Answer
Volume Groups (VG) don't deal with raw space directly, they group Physical Volumes (PV), hence their names.
Depending on your actual VG configuration you have to do the following:
pvdisplay
resize2fs
,lvresize
,pvchange
,pvmove
(ie "compact" your first VG to a subset of PVs).vgreduce
.vgextend
.This is assuming that your first VG consists of multiple PVs and that you can reduce the size of the LVs so that you free up enough PEs.
All about LVM on one page is a good resource about LVM with description of similar use cases.