How to mount a LUKS RAID volume after a server reboot
Mounting a RAID assembly after a reboot requires three steps:
- Activate (run) the assembly
- Unlock the LUKS partition
- Mount the LUKS target to a directory
sudo mdadm --run /dev/md0
sudo cryptsetup open /dev/md0 lukstarget --type luks
# LUKS will prompt for a password and/or keyfile
sudo mount /dev/mapper/lukstarget /mnt/raid
This assumes you already have a RAID assembly created.