Cheat Sheet: Expand LVM volume on linux

,
1–2 minutes

Originally from

Found, then improved from

Found, then improved

Repost

packetpushers.net

the raven pulling a stack of disk platters wider like an accordion while the wolf watches a gauge go from full to roomy

Source: https://packetpushers.net/ubuntu-extend-your-default-lvm-space/

I didn’t have to follow all that’s in there so to keep it short, use these commands.

Run this first:

Plaintext
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv

Now, run this second command:

Plaintext
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Done! Refresh your Cloudron dashboard and check stats page. No reboot needed.