How do I resize a LVM partition using system-config-lvm
? As per this Ask Ubuntu answer
I clicked on the partition and tried to resize, but got a pop-up error from system-config-lvm
.
Logical volume is not mounted but is in use. Please close all applications using this device (eg iscsi).
What's the problem and how can I fix it?
See also this Ask Ubuntu answer.
Increasing the size of a logical volume that's being used is indeed possible. That's one of the major advantages of using LVM in the first place.
It's just these gui tools ... meh ... forget about 'em.
(optional) Check how much space you've got left on your Volume Group with
sudo vgdisplay
Find the name of your Logical Volume with
sudo lvdisplay
Extend the volume by 5GB:
sudo lvextend -L+5GB /dev/ssd/sysLV
Increase the filesystem size to match the LV:
sudo resize2fs /dev/ssd/sysLV
(ext4 only, see this link for other filesystems)df -h
should now report the correct size. Be happy, praise the command line!As I can see Thunderbird running, you obviously missed an important step:
What you're trying to do would be the real life equivalent of asking a surgeon to operate on himself, at home... ;-)
So prepare the operating room (boot the live CD so that the volume is not locked) and start operating, doctor! (follow the instructions in https://askubuntu.com/a/489909/45156)
You can try another GUI tool - KVPM. It helped in my case. I successfully extended a logical volume that was mounted as
/home
on the fly.This seems to be a bug in the
system-config-lvm
tool.Instead you can use the command lines:
This works even if the partition is the live
/