Hi,

Le 30/09/2024, Boyan Penkov <boyan.pen...@gmail.com> a écrit:

> -- If I have multiple drives, do I modify the script to have multiple
> efi2, efi3, ..., efiX ?

I think yes.

> -- it seems that the script above privileges /boot/efi over /boot/efi2
> -- in this case, if /boot/efi becomes corrupted, won't this just copy
> the errors to /boot/efi2 and thus destroy it as well, on the next run?

My understanding of how the script was designed is the following:
  - if the disk containing /boot/efi is fine, no problem using it as the
    “master copy”;
  - if it has a silent corruption problem, we're screwed and the
    corruption may be copied to other disks, but that's already the case
    with other partitions in a raid (nowadays there are consistency
    checks...);
  - if it has a problem that is visible enough for the md layer to
    remove the disk from the array, then /boot/efi won't be a mount
    point anymore, so the script will do nothing from this point on.
    Thus, you can boot from another disk until you have a replacement
    drive; during this time (and unless you changed /etc/fstab), the
    script won't sync anything.

HTH, regards

-- 
Florent

Reply via email to