Hey I have to make a file system with an encrypted partition with on ubuntu server. something like
Unencrypted:
/ - 10 GB
/home - 10GB
/var - 5GB
--------------
Encrypted:
/opt - 50GB
This I can figure out in the setup, just partition as normal, setup /opt as a encrypted volume with dm-crypt. However im not sure how to mirror this entire drive, so that if either failed i could still boot. and how will that affect the encrypted partition.
Any help would be appreciated.
The easiest way to do this is during the installation of the system.
Setup your two drives like this.
Setup two Software RAID1 volumes, One contain the first partition from both drives call that MD0, and the second containing the second partition and call that MD1.
Setup a filesystem on MD0 and the mount point for that will be /boot. Setup MD1 to be dm-crypt volume. Setup the dm-crypt volume for LVM volume group. Create any partitions you want in your LVM volume group. Everything in the LVM will be encrypted.