Quote:
Originally Posted by Nemus
so I am trying to setup an encrypted lvm
I ran into the issue where I encrypted the file systems setup the LVM formatted the file system mounted just fine
rebooted to test it.
after the reboot I was able to open the encrypted file system but wasn't able to mount the lvm because /dev/lvm/volume didn't exist but lvscan did show the volume group and the volume.
So my question is which comes first the encryption of the lvm ?
should I setup a lvm then encrypt that or setup a encrypted volume then the lvm?
I am running Centos 5.5
|
You should be able to mount it by using /dev/mapper/luksname
e.g. I named my luks encrypted LV
lukslv (I know, I know, such boundless creativity should be channelled towards writing books or something).
I can mount it, to a directory called /lukstest, by typing
Code:
mount /dev/mapper/lukslv /lukstest
In /etc/crypttab, you need the following, in my case:
Code:
lukslv /dev/vol1/lv4 none
where /dev/vol1/lv4 is the original LV
If you have forgotten the name, you can get the name by using
blkid. Somewhat confusingly, you want to use the entry whose type is NOT crypto_LUKS
Code:
/dev/mapper/vol1-lv4: UUID="0714a501-ba01-4eb1-be77-690427c8eef8" TYPE="crypto_LUKS"
/dev/mapper/lukslv: UUID="b135d367-ece1-489c-b34f-a0bd6d874199" TYPE="ext4"
Hope this helps.