I recently installed Fedora 29 Workstation on my main machine and cannot get the RAID to automatically mount at access.
The complete stack is like this:
- md raid 5
- 4 * 1 TB sata disks
I first added a keyslot using a file and checked if I can open it using
cryptsetup --key-file /etc/raid.key open ... which worked fine.
I then added an entry to /etc/crypttab:
luks-d2674f88-b48d-4ed4-9eb8-e37a3a4bf438 UUID=d2674f88-b48d-4ed4-9eb8-e37a3a4bf438 /etc/raid.key noauto,luks
The UUID is the correct one:
blkid|grep d2674f88-b48d-4ed4-9eb8-e37a3a4bf438 /dev/md0: UUID="d2674f88-b48d-4ed4-9eb8-e37a3a4bf438" TYPE="crypto_LUKS"
cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sdb1 sde1 sdd1 sda1 2929582080 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU] bitmap: 0/8 pages [0KB], 65536KB chunk unused devices: <none>
Then I added an entry to fstab using the LV:
grep raid /etc/fstab /dev/raid-vg/raid /raid ext4 noauto,x-systemd.automount 0 2
Unfortunately this does not unlock the volume when accessing it.
Instead the program hangs while trying to do I/O.
Everything is working correctly if I manually execute cryptsetup open.
Any ideas why this is not working?
The only pointer that I found in the journal log is:
Mar 31 21:49:47 hyperion systemd: Timed out waiting for device dev-raid\x2dvg-raid.device.
It also seems like systemd-cryptsetup-generator does not generate the unit for the entry.