

You have to resize the partition the LVM PV is located on. Where is the desired size you want to shrink the LVM PV to and is the device the LVM PV is located on. With this information in hand, you can resize the LVM physical volume: pvresize -setphysicalvolumesize (Don't worry, pvresize won't let you shrink it too much. You might also want to take a look at the size of all your logical volumes, so you know what the minimum you can shrink it to is. Also take note of the size, so you know what to shrink it to. Look on the PV Name line, which should say something like /dev/sda2. Next, figure out the Unix device file and minimum size. To get started, activate LVM: lvm vgchange -a y (Technically, any Linux live media will do, but distributions other than Fedora typically don't provide LVM tools on their live media by default.) Then, fire up a terminal. You'll need to boot from a Fedora LiveCD or USB so you're not currently using the device you're working with. Be sure and have backups, just in case.Īll these commands require root access, so run su - first or prefix them with sudo. Remember kids, lots of things can go wrong when you're messing around with resizing partitions and such. You can't install BSD to a LVM2 volume, so you'll need to shrink the LVM2 physical volume partition and create a regular partition instead.
