5

How to mount encrypted multi-device BTRFS-volumes using systemd?

view full story
linux-howto

https://bbs.archlinux.org – I recently switched to systemd and have some issues with a multi-device (raid1) btrfs volume.My fstab contains this line for the volume:/dev/mapper/archive1 /mnt/archive btrfs device=/dev/mapper/archive1,device=/dev/mapper/archive2,device=/dev/mapper/archive3,device=/dev/mapper/archive4,defaults,noatime,nodiratime 0 0As you can see, the volume consits of four LUKS mapper devices, which must all be present for the volume to be mounted.The problem now is that systemd doesn't recognize the dependency for my volume to all four crypto mappers. It tries to mount the volume as soon as /dev/mappe (HowTos)