Hello,
For some time now I’ve been really struggling to get a server setup properly with RAID 1. This is an NVR system for cameras, I want to use XFS with this system. I would love if someone could help me or link me to a guide, I cannot find one. Encryption is preferred. A step by step, guide would be great, drop an XMR address and I will send you a tip for your help!
Thank you! :)
Partitioning in the Debian installer being half-broken is something nobody talks about but IME still a thing.
What do is step through the installer to the point where you’re at, ctrl+F* to get a shell, set it up manually using fdisk/mdadm/lvm/cryptsetup/mkfs, and then back again to rescan and just assign the mounts and filesystems
I think I still have a half-written guide for just this in drafts somewhere actually. If you get stuck you can DM and maybe I dig something up
If nothing helps, create a normal setup, then boot from a live stick and move things over (don’t forget to configure things).
/dev/md127is probably a raid 1 from a previous installation. Assuming you don’t need the data on it, you can either delete or ignore it.I’m not familiar with this exact installer, but I have installed Debian a bunch before. Judging by what I’m seeing here, you probably need to do a bit of manual labor. I’m guessing you first create partition tables (usually gpt), then raid partitions, then combine them into a raid, and maybe then put lvm on top of that again, and finally a filesystem. If you’re planning to go the lvm route you probably want to create a smaller raid on the start of the disk for
/boot(250-500MB should suffice) separate from the lvm, because last I checked you can’t boot from an lvm volume.Will be curious what solution you come up with. I tried to do this with my current Debian installation but never quite got it to boot off the RAID-1 array. In the end just went without RAID on the drive with Debian installed, maybe will re-attempt next time I do an OS install. I do have mdadm RAID-1 working normally for my data drives, just not the boot drive… you technically could just do that if you want to have your RAID-1 data drives separate from your OS boot drive.
Can’t comment on the Calameres installer but the regular Debian installer does detect RAID configurations from other mdadm setups. So you could either create your RAID-1 configuration in the shell during the Debian install or even create it in another Linux boot shell before jumping into the Debian installer. e.g. booting any live Linux with mdadm in it, configure the RAID-1 there, then boot into the Debian installer - the Debian installer will know there’s a prior RAID-1 on those disks and allow you to proceed with installing on the array if you wanted.
What tripped me up afterwards was trying to get it to boot off that RAID-1 afterwards, that part is not so straightforward. The link in the other comment does go into that so maybe it’ll helpful.
https://std.rocks/gnulinux_mdadm_uefi.html
There’s the general idea. I have no idea if calamares can do this though. In general I’ve found anything more than basic partitioning you’ll have to do it manually on the command line on a live cd then go install it normally using the installer and selecting the disks you created.

