Full_Disk_Encryption_Howto_2019 - Community Help Wiki

$ sudo fdisk /dev/sdb
$ sudo cryptsetup luksFormat /dev/sdb1
$ sudo cryptsetup open /dev/sdb1 sdb1_crypt

/dev/mapper/sdb1_cryptにマウントされる.

$ sudo pvcreate /dev/mapper/sdb1_crypt
$ sudo vgcreate [Volume Group Name] /dev/mapper/sdb1_crypt

[Volume Group Name]は任意の文字列.

$ sudo lvcreate -l 100%FREE -n [partation name] [Volume Group Name]
$ sudo mkfs.ext4 /dev/mapper/[created-partation]