RAID1 and drive encryption

1 post / 0 new
#1 Thu, 2017-10-26 02:22
inf3rno
  • inf3rno's picture
  • Offline
  • Last seen: 1 month 3 weeks ago
  • Joined: 2017-09-19

I'd like to use btrfs raid1 https://btrfs.wiki.kernel.org/index.php/UseCases#How_do_I_create_a_RAID1_mirror_in_Btrfs.3F and dm-crypt/LUKS encryption https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system

I found this in the wiki:

Quote:
Your /boot partition should either not be on RAID, or else be on a RAID1 array, with no further layers of encryption or LVM. (Alpine's default bootloader extlinux can't handle either. Grub2 can handle /boot being on LVM.)

https://wiki.alpinelinux.org/wiki/Setting_up_a_software_RAID_array

Google drops me only alpine+btrfs+raid1 and alpine+dmcrypt, but no both. So I guess there is no tutorial, or it is not possible to do this with some kind of workaround, probably with GRUB? I am just curious whether somebody managed to do it, or whether in theory it is possible?