I have already resized the file system and the logical volumes. Now I have free PEs in the VG. What are the next steps to reduce the volume group?
My setup is 1 HDD with 2 partitions:
sda1 (/boot)
sda2 (LVM inside crypto)
There is only 1 volume group (and it doesn’t span any partitions/HDDs - it simply holds 3 LVs).
Inside the VG are these logical volumes
/
/home
swap
These now take up on 16.92 GB.
I want to shrink the VG from 109.42 GB to 20 GB.
Then I want to shrink sda2 down from 109 GB to 20 GB – and keep the crypto and VG.
Here’s some relevant info:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xxxxx
Device Boot Start End Blocks Id System
/dev/sda1 * 1 309 2474010 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 310 14593 114736230 8e Linux LVM
vgdisplay
— Volume group —
VG Name VgOne
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 109.42 GB
PE Size 4.00 MB
Total PE 28011
Alloc PE / Size 4331 / 16.92 GB
Free PE / Size 23680 / 92.50 GB
VG UUID xxxxx
Basically, I want to use the free space to make a new partition, sda3 (outside this VG, of course). Thanks.