I have read:
And others.
I'm trying to resize from 250 GB to 500 GB. Previously, the partition /dev/sda2, was 250 GB, I've now resized the partition to 500 GB.
However, what about the LUKS device, which resides at /dev/sda2? How do I resize that?
Well, the manual (for cryptsetup) provides us with "resize". However, when I check with cryptsetup status, my device is already 500 GB.
Furthermore, when I check in parted, it (the encrypted device /dev/dm-0 or /dev/mapper/cryptdevice which is a symlink) also shows up as 500 GB.
It appears my encrypted device is already the correct size!
Why then, when I actually mount the encrypted device (/dev/mapper/cryptdevice), does it show up as 250 GB?
Did I miss a step? What else do I need to do?
I've obviously rebooted many times between doing this. I've started from a bootable USB device, executed cryptsetup, rebooted, etc. It still shows up as 250 GB, when I would expect it to be 500 GB.
Note that I never actually resized anything beyond the partition itself. After resizing the partition, cryptsetup and parted started reporting the encrypted volume as also being resized -- but again, when I mount it, it is still only 250 GB.
I don't have LVM on top of this, I just have:
/dev/sda2, which contains a LUKS encrypted file system. I open this with cryptsetup luksOpen /dev/sda2 cryptdevice, etc.
cryptsetup resize
is for online resize, see unix.stackexchange.com/a/416356/30851 - you reopened it by "rebooted many times", hence "my encrypted device is already the correct size!"