- dd if=/dev/urandom of=/keys/xvdm.key bs=1024 count=4
- dd if=/dev/urandom of=/keys/xvdn.key bs=1024 count=4
- cryptsetup --verbose -y luksFormat /dev/xvdm /keys/xvdm.key
- cryptsetup --verbose -y luksFormat /dev/xvdn /keys/xvdn.key
- cryptsetup luksOpen /dev/xvdm cryptm --key-file /etc/xvdm.key
- cryptsetup luksOpen /dev/xvdn cryptn --key-file /etc/xvdn.key
- pvcreate /dev/mapper/cryptm /dev/mapper/cryptn
- Add entries to /etc/crypttab for reboots and test somehow
- cryptm /dev/xvdm /etc/xvdm.key luks
- cryptn /dev/xvdn /etc/xvdn.key luks
Complete LVM setup and add entries to /etc/fstab.
Hint: don't make one, single typo...ever.
Very informative! Thanks for providing your information. Keep Share and update with us AWS Online Training Bangalore
ReplyDelete