Operation:
sudo vgs:ubuntu-vg 1 1 0 wz--n- 462.69g 362.69gdf -T /:/dev/mapper/ubuntu--vg-ubuntu--lv ext4 102626232 24338224 73028744 25% /sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lvsudo resize2fs /dev/ubuntu-vg/ubuntu-lv
Never did this before on an encrypted drive. Is this the proper procedure? Obviously a complete image back up is in order, however, are there any gotchas, caveats, pitfalls that I should be aware of before proceeding?
You can’t resize the filesystem without first resizing the crypted volume.
You would expand this LV. Expand the crypted volume. The decrypt the volume and expand the underlying filesystem.
hmmmm…I thought that the command
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lvwould extend the encrypted volume, and this commandsudo resize2fs /dev/ubuntu-vg/ubuntu-lvwould extend the filesystem.I realize now i may have been confused as you didn’t specify everything.Is the LUKS volume created right on the disk on a raw partition?
Do a backup image of the partition first before you run these commands.
If you decide to use all free space: sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
Should suffice I’m pretty sure.
Edit: meant this to be a comment reply, not a post reply.



