Reducing size of PV (partition) in LVM
Does anyone know a way (or if it's even possible) to shrink an LVM partition?
I know how to shrink a filesystem within a partition, but I need to shrink the partition itself.
Parted doesn't understand LVM and won't touch it. I could delete and redefine the partition with fdisk, but the odds are WAY too high I'd lose the whole thing.
Anyone have any ideas?
Reducing a logical volume can cause data loss unless
you have properly reduced the ext filesystem inside it
u can use resize2fs (read them properly and be sure to use all the tools and resize it ! ... safely mount the partition after resize and check if things are working fine in the file system )
After all safety ... backup ... blah blah blah u can use
lvreduce - this will reduce the file size to the desired one
Thanks for the reply, but I don't want to reduce a logical volume (lv). I want to reduce a physical volume (pv) (in the x86 world, also known as a partition).
|All times are GMT -5. The time now is 05:17 PM.|