On 11 Nov 2024, at 01:38, Jon LaBadie <jonfu@jgcomp.com> wrote:
1) reallocate LV swap extents to LV root:
- create an 8GB file on /home and use it a swap
- stop using the LV swap as swap and return its extents
to the VG pool
- lvresize (or lvextend) the LV root and resize the root fs
On modern Fedora using a disk swap file is no longer the normal setup.
You can use the zram swap instead.
Once you have the zram swap setup then you can delete the swap LV and add its
space to your root.
You may already have zram setup.
What do these report:
sudo swapon
sudo zramctl
For example this is what I see:
$ sudo swapon
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
$ sudo zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle 8G 4K 80B 12K 20 [SWAP]
On an older system I see both disk and ram swap:
$ sudo swapon
NAME TYPE SIZE USED PRIO
/dev/dm-3 partition 7.8G 0B -2
/dev/zram0 partition 8G 256K 100
First you would need to remove swap from your /etc/fstab and reboot.
Then you should be able to delete the swap partition and grow your root
partition.
Barry