Here's my setup
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part /boot/efi
├─nvme0n1p2 259:2 0 250M 0 part /boot
└─nvme0n1p3 259:3 0 238.1G 0 part
└─Be-Water-My-Friend 254:0 0 238.1G 0 crypt
├─Arch-swap 254:1 0 2G 0 lvm [SWAP]
└─Arch-root 254:2 0 236.1G 0 lvm /
I have one main LUKS2-encrypted partition (nvme0n1p3
), with one LVM volume group (Be-Water-My-Friend
) containing two logical volumes Arch-swap
and Arch-root
.
The Arch-root
is a btrfs.
When I set that up, I only chose 2GB of swap which turns out to be insufficient for my needs. I would like to increase that to 24GB of swap.
For that, I think I need to
- boot on a USB live key
- decrypt the LUKS2 partition
- mount the
Arch-root
volume - shrink the
Arch-root
file system withbtrfs filesystem resize -22g
- remove the
Arch-swap
logical volume - recreate the
Arch-swap
logical volume taking all available space in theBe-Water-My-Friend
volume group.
Is there anything I'm missing? I really don't want to screw that up!
mkswap
with the correct UUID option to update things. The nonlinear nature of the resultant LV might be a (small) performance issue on rotational media, but it just won’t matter on an SSD.