I want to shrink a Linux LVM partition from 200GB to 150GB. A test is carried out with the following steps:
- Shrink a file system in a logical volume with
- Shrink the logical volume with
- Delete the 200GB LVM partition with
- Recreate the same LVM partition, but with size a reduced of 150GB
I am able to access a test file using the above method. But,
vgs both reported the old size of 200GB. I think I might have missed out a
vgreduce step after shrinking the logical volume. But, from the man page, it seems to say that
vgreduce can only be performed on an empty physical volume. In my situation above, the whole volume group resides in one physical volume.
What is the correct way to shrink this LVM partition?