LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Reducing size of PV (partition) in LVM (https://www.linuxquestions.org/questions/linux-general-1/reducing-size-of-pv-partition-in-lvm-105298/)

clacour 10-17-2003 04:54 PM

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?

bhaslinux 10-22-2003 11:34 PM

Hi

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

clacour 10-24-2003 08:19 PM

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 01:34 PM.