I installed Ubuntu 21.10 with LVM to use full encryption on my disk. It works great, the only problem is that it chose a 1gb swap partition size, while I have 16gb or ram...
me@me:~$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
vgubuntu 1 2 0 wz--n- <475,71g 0
me@me:~$ sudo lvdisplay
--- Logical volume ---
LV Path /dev/vgubuntu/root
LV Name root
VG Name vgubuntu
LV UUID ky0PoX-T89V-D2IG-zmfk-gofT-dD0o-A4gC4g
LV Write Access read/write
LV Creation host, time ubuntu, 2021-11-07 22:06:47 +0100
LV Status available
# open 1
LV Size 474,75 GiB
Current LE 121536
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/vgubuntu/swap_1
LV Name swap_1
VG Name vgubuntu
LV UUID cLXRIh-3Tjp-fzUn-mKwe-akK0-4hPr-9I7l3c
LV Write Access read/write
LV Creation host, time ubuntu, 2021-11-07 22:06:47 +0100
LV Status available
# open 2
LV Size 980,00 MiB
Current LE 245
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
But when I try to extend I get this
me@me:~$ sudo lvextend -L+16GB /dev/vgubuntu/swap_1
Insufficient free space: 4096 extents needed, but only 0 available
What is the safest way to increase the swap?