I installed a Debian 6 with the "use LVM and encrypt" option. Now I would like to add a second disk and also encrypt it.
This is what I did so far:
- pvcreate /dev/sdb
- vgextend [vgname] /dev/sdb
- lvcreate -n [lvname] -l 100%FREE [vgname]
- luksformat -t ext3 /dev/[vgname]/[lvname]
- updated fstab
Unfortunately trying to mount /dev/mapper/[vgname]-[lvname] produces the following error under dmesg:
VFS: Can't find ext3 filesystem on dev dm-3
What am I doing wrong?
Update 1:
pvscan
PV /dev/dm-0 VG reactorblock01 lvm2 [49.76 GiB / 0 free]
PV /dev/dm-3 VG reactorblock01 lvm2 [100.00 GiB / 0 free]
Total: 2 [149.75 GiB] / in use: 2 [149.75 GiB] / in no VG: 0 [0 ]
lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
backup reactorblock01 -wi-a- 100.00g
root reactorblock01 -wi-ao 48.80g
swap_1 reactorblock01 -wi-ao 984.00m
ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 59 Jul 7 23:34 control
lrwxrwxrwx 1 root root 7 Jul 8 01:52 reactorblock01-backup -> ../dm-4
lrwxrwxrwx 1 root root 7 Jul 7 23:34 reactorblock01-root -> ../dm-1
lrwxrwxrwx 1 root root 7 Jul 7 23:34 reactorblock01-swap_1 -> ../dm-2
lrwxrwxrwx 1 root root 7 Jul 7 23:34 sda5_crypt -> ../dm-0
lrwxrwxrwx 1 root root 7 Jul 8 01:44 sdb1_crypt -> ../dm-3
cat /etc/crypttab
sda5_crypt UUID=d09c908f-0f3b-4f3e-b86b-87ef817732db none luks
Update 2:
Easy as pie with this guide: https://wiki.archlinux.org/index.php/System_Encryption_with_LUKS and some manpages