Published using Google Docs
RAID, LVM, Encryption on an ubuntu LTS installation
Updated automatically every 5 minutes

TL;DR; This Document contains the necessary steps to setup RAID, ENCRYPTION and LVM before installing ubuntu.

OS: Ubuntu 14.04.1 LTS

Installation Date: 22. January 2015

Some additional links I used during the installation:

Create raid: http://archive.is/gij6M

Configuration: http://archive.is/UPDKc 

LVM: http://archive.is/xhDme 

Encryption: http://archive.is/ykimV 

Choose No when asked if you want to encrypt your homedirectory.

When asked about the partitioning method choose manual:

If there are any partitions, volume groups or raids just delete theem (I hope you know what you’re doing)

I just see two disk with 1.0 TB free space each

Partitioning

Select first harddrive and press enter. if you are asked whether you want to create a partition table: agree. Otherwise choose “Create a new partition”

Partition Settings:

Use as: “physical volume for RAID”

Bootable flag: on

Create second partition with the rest of the space.

Settings:

Use as: “physical volume for RAID”

Bootable flag: off

Do the exact same steps for the second harddisk.

You should now have two partitions per harddisk. Both partitions are primary and the first partition (the smaller one) has the bootable flag set to on.

RAID configuration

You should now be at the “Partition disks” screen. Below you see all partitions and on top there’s the menu.

LVM and boot partion

We are now back in the partitioning menu. you should now see something like this:

Boot partition

LVM

Configure LVM

we’re now back in the partition menu again. one raid device is now set to mount to /boot and the other one is set to “lvm”

Encryption

So far we’ve created the partitions, setup a RAID1 and create two LVM volumes. “swap” for the swap partition and “root” for the rootfs. As a last step well setup the encryption. rootfs will be encrypted with a password that you choose. swap will be encrypted with a random key at every boot (it’s overwritten anyway).

prepare swap volume for encryption

prepare the “root” volume for encryption

configure encryption

we’re again back in the partitioning menu. by now we should have two lines marked with “crypto” and “not active”.

set mountpoint for rootfs

enable swap

Verify the configurations

We are now back in the partitioner. By now you should have:

If everything looks find and all mountpoints are set choose “Finish partitioning and write changes to disk” at the bottom of the screen. Agree to write the changes to the disks.

continue with the installation