Grow partition with growpart

During the upgrade of Fedora 38 to Fedora 39 (beta) on my main desktop, the first attempt failed due to insufficient free disk space on the root volume. After some manual intervention such as vacuuming the journald logs, I was able to perform the successful upgrade. Not that it matters, but I’m writing this blog post on the same desktop running Fedora 39 Beta. This post is to record how I increase the root volume on my desktop with the help of a few tools such as growpart, lsblk, resize2fs,…etc. Like always, if you stumble on this post and want to follow along, please do not just copy and pate the commands from here and run on your system. Try to understand what each command does, if you don’t, then you definitely must not copy and pate these commands! ...

October 6, 2023 · 4 min · 852 words · kenno

Resizing an LVM logical volume

One of the logical volumes on my desktop is running out of space. I want to add 200GB to that volume. Here is one way to achieve this task. First a bit of warning. Don’t, or never, just copy and paste what you see here if you want to apply it to your own system. You may accidentally destroy your precious data. # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert backup data -wi-ao---- 200.00g scratch data -wi-ao---- 1.00t home system -wi-ao---- 90.00g root system -wi-ao---- 100.00g swap system -wi-ao---- 16.00g tmp system -wi-a----- 4.00g var system -wi-ao---- 20.00g Let’s check the available disk space of volume groups we can use: ...

July 20, 2016 · 2 min · 253 words · kenno