- Create the partition using GParted for example and take note of the partition path (/dev/sd*).
- Use the command
sudo cryptsetup luksFormat <device path>to create the encrypted partition.
- Using GParted, for example, "Open" the encrypted partition.
- Using the command
lsblk, you should see the encrypted partition with a name ending with_crypt, take note of it. - Create the LVM Physical volume using the command
sudo pvcreate /dev/mapper/<encrypted partition name>.
- List the existing LVM volume groups with the command
sudo vgs. - List the existing LVM physical volume with the command
sudo pvs. - Add the physical volume to the volume group with the command
vgextend <volume group name> /dev/mapper/<physical volume name>.
- Use the command
sudo lvextend <volume group>/<logical volume> /dev/mapper/<physical volume name>. - Use the command
sudo resize2fs /dev/<volume group>/<logical volume>.
Use the command sudo lvdisplay -m.