Configuring a RAID1 array on Linux is widely (and I think sometimes even correctly) described on the internets, as is how to mark a drive as faulty.
-
Configuring a RAID1 array on Linux is widely (and I think sometimes even correctly) described on the internets, as is how to mark a drive as faulty.
What nobody discusses is whether and how to mirror the EPS partition, how to detect / be alerted when a disk becomes faulty, or how to actually boot from the other drive if all one has are two drives in a simple configuration.
On to the other hand, and to be fair, internet search has become so shit it's pathetic.
-
Configuring a RAID1 array on Linux is widely (and I think sometimes even correctly) described on the internets, as is how to mark a drive as faulty.
What nobody discusses is whether and how to mirror the EPS partition, how to detect / be alerted when a disk becomes faulty, or how to actually boot from the other drive if all one has are two drives in a simple configuration.
On to the other hand, and to be fair, internet search has become so shit it's pathetic.
I've been helping the young one build a small NAS, and these are tasks I've not done in what amounts to 25y.
Debian text install has a decent menu for setting up software RAID which I found very practical, but no specific guidance that I can see on the two points I mentioned.
-
Configuring a RAID1 array on Linux is widely (and I think sometimes even correctly) described on the internets, as is how to mark a drive as faulty.
What nobody discusses is whether and how to mirror the EPS partition, how to detect / be alerted when a disk becomes faulty, or how to actually boot from the other drive if all one has are two drives in a simple configuration.
On to the other hand, and to be fair, internet search has become so shit it's pathetic.
@jpmens I've been on "my own standardized" EFI system partiton mirroring procedure for many years. Right now out at $cust but can later write up a little blogpost if anyone's interested.
Edit to add: Wait a sec, the script is in my dotfiles repository, and the only out-of-band instruction would be to create a similar ESP on every disk in the raid.
https://github.com/mschmitt/Dotfiles/blob/master/Scripts/sbin/efirepl
-
I've been helping the young one build a small NAS, and these are tasks I've not done in what amounts to 25y.
Debian text install has a decent menu for setting up software RAID which I found very practical, but no specific guidance that I can see on the two points I mentioned.
@jpmens Installing a system with 2-EFI partitions using the Debian-installer (including preseed) will work. Debian will then only use one of the EFI-Partitions. To format and sync the second partition I have build an ansible role. I should probably upload this to github.
This is basically formatting the partition, mounting it to /boot/efi2 and adding a sync-script to /etc/grub.d -
@jpmens I've been on "my own standardized" EFI system partiton mirroring procedure for many years. Right now out at $cust but can later write up a little blogpost if anyone's interested.
Edit to add: Wait a sec, the script is in my dotfiles repository, and the only out-of-band instruction would be to create a similar ESP on every disk in the raid.
https://github.com/mschmitt/Dotfiles/blob/master/Scripts/sbin/efirepl
@unixtippse @jpmens The most complex part of this is automatically finding and mounting the partition. For the actual syncing I added the following in /etc/grub.d/90_copy_to_boot_efi2:
#!/bin/sh
set -eif mountpoint -q /boot/efi && mountpoint -q /boot/efi2 ; then
rsync -t --recursive --delete /boot/efi/ /boot/efi2/
fi
exit 0 -
@unixtippse @jpmens The most complex part of this is automatically finding and mounting the partition. For the actual syncing I added the following in /etc/grub.d/90_copy_to_boot_efi2:
#!/bin/sh
set -eif mountpoint -q /boot/efi && mountpoint -q /boot/efi2 ; then
rsync -t --recursive --delete /boot/efi/ /boot/efi2/
fi
exit 0 -
@unixtippse @jpmens Ah, what I did is for RAID1 only
-
Configuring a RAID1 array on Linux is widely (and I think sometimes even correctly) described on the internets, as is how to mark a drive as faulty.
What nobody discusses is whether and how to mirror the EPS partition, how to detect / be alerted when a disk becomes faulty, or how to actually boot from the other drive if all one has are two drives in a simple configuration.
On to the other hand, and to be fair, internet search has become so shit it's pathetic.
@jpmens I use this for keeping the content of the ESPs in sync: https://github.com/gregory-lee-bartholomew/bootsync
-
@jpmens I use this for keeping the content of the ESPs in sync: https://github.com/gregory-lee-bartholomew/bootsync
-
-
R relay@relay.infosec.exchange shared this topic