Ask Your Question

LVM volume size won't decrease

asked 2014-06-15 10:08:59 -0500

r00t gravatar image

I've installed Fedora's root (/), boot and swap folders on my SSD (sdb). Now I want to decrease root's size and change swap to my HDD (sda), but system-config-lvm won't let me do it. Why? What am I doing wrong? Also, how do I change swap to my HDD?

This is how it looks like.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-15 11:52:37 -0500

hedayat gravatar image

To decrease size of a partition, you need that partition to be unmounted. Therefore, to decrease the size of / partition you need to boot your system with either a live media or installation disk (using system-config-lvm needs a live media). Also, I don't remember if system-config-lvm will also resize file-systems (in addition to logical partitions). If not, you MUST shrink your / filesystem before resizing / logical partition.

edit flag offensive delete link more


Resizing a filesystem is potentially destructive, make sure you have good backups. Creating backups is also something you should do before updating to a newer release of Fedora - since system-config-lvm isn't available in the latest Fedora, I'm guessing that's something @r00t should do too.

randomuser gravatar imagerandomuser ( 2014-06-15 12:08:50 -0500 )edit

If system-config-lvm was not available, or if using installation disk to do the resize (which doesn't include system-config-lvm), @r00t should use lvreduce from command line. It is answered somewhere else in Ask Fedora with some details about resizing filesystem and LVM logical disk separately using command line.

hedayat gravatar imagehedayat ( 2014-06-15 23:29:26 -0500 )edit

What if we create live usb bootable with gparted? Will it decrease LVM partition there?

Faisal Aslam gravatar imageFaisal Aslam ( 2014-06-16 02:04:14 -0500 )edit

No, AFAIK gparted doesn't work with LVM partitions. However, if the live usb has lvm2 packages installed, you can use command line (lvreduce) to reduce the size of LVM logical partition.

hedayat gravatar imagehedayat ( 2014-06-16 05:00:36 -0500 )edit

Made it with system-config-lvm. Got it from here. Thanks guys.

r00t gravatar imager00t ( 2014-06-16 16:34:57 -0500 )edit

Question Tools



Asked: 2014-06-15 10:08:59 -0500

Seen: 438 times

Last updated: Jun 15 '14