<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hello Justin,<br>
    <br>
    thanks for the quick answer.<br>
    <br>
    I tried to use your disk_config. And I get a a raid as expected.<br>
    But the script for settign up grup [ config/scipts/GRUP_EFI/10-setup
    ] fails.<br>
    Hence I end up with a system tha can not boot.<br>
    <br>
    What I find in [ scripts.log ]:<br>
    -------------------------------<br>
    <font face="monospace">=====   shell: GRUB_EFI/10-setup   =====<br>
      ...<br>
      + echo Install grub on /dev/sda<br>
      + unshare --pid --fork --kill-child <br>
         --mount-proc chroot /target grub-install <br>
         --no-floppy --force-extra-removable /dev/sda<br>
      Installing for x86_64-efi platform.<br>
      grub-install: error: disk `md0' not found.<br>
      ++ error=1<br>
      ...<br>
      Install grub on /dev/sdb<br>
      + unshare --pid --fork --kill-child <br>
        --mount-proc chroot /target grub-install <br>
        --no-floppy --force-extra-removable /dev/sdb<br>
      Installing for x86_64-efi platform.<br>
      grub-install: error: disk `md0' not found.<br>
      ++ error=1<br>
      ...<br>
      done<br>
      + exit 1<br>
      GRUB_EFI/10-setup    FAILED with exit code 1.</font><br>
    -------------------------------<br>
    <br>
    So my question is: Have you twaked [ GRUP_EFI/10-setup ] ?<br>
    How can I fix this error? <br>
    Why is the script telling me it uses [sda] for installation bun then
    trying [md0]?<br>
    <br>
    Perhaps some of the envirenment-variables might help, so I list a
    few:<br>
    <font face="monospace">FAI_VERSION=6.0.5<br>
      disklist='sda sdb '</font><br>
    <br>
    Regards<br>
    Thomas Kloepfer<br>
    <br>
    <div class="moz-cite-prefix">On 20.09.23 09:21, Justin Cattle wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABj96CQyTHW-jD4CarwMuuN7Mh4uFZOim+E2Wn69EgQcXP4iQQ@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div><br>
        </div>
        <div>There's probably a few different ways to do this.  Here is
          a fairly generic disk_config example I created last time I was
          working on FAI.</div>
        <div>I haven't used the config n a while, but it's should be
          some inspiration even if it doesn't work for you as it is:<br
            clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div><br>
              </div>
              <div><font face="monospace">$ cat
                  disk_config/FAIBASE_EFI_RAID<br>
                  # default EFI raid disk config<br>
                  # <type> <mountpoint> <size>  
                  <fs type> <mount options> <misc
                  options><br>
                  disk_config disk1 disklabel:gpt fstabkey:uuid
                  align-at:1M<br>
                  primary         -         256M            -       -<br>
                  primary         -         256M-           -       -<br>
                  primary         -         RAM:20%         -       -<br>
                  <br>
                  disk_config disk2 sameas:disk1<br>
                  <br>
                  disk_config raid fstabkey:uuid<br>
                  raid1           /boot/efi disk1.1,disk2.1 vfat    rw
                  mdcreateopts="--metadata=1.0"<br>
                  raid1           /         disk1.2,disk2.2 ext4  
                   defaults,noatime,discard<br>
                  raid1           swap      disk1.3,disk2.3 swap    sw</font><br>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>You can also use LVM as well on top if you like. 
                Here is my example for htat [ again, from last time I
                looked at this stuff ]:</div>
              <div><br>
              </div>
              <div><font face="monospace">$ cat LVM_EFI_RAID<br>
                  # default LVM EFI raid disk config<br>
                  # <type> <mountpoint> <size>  
                  <fs type> <mount options> <misc
                  options><br>
                  disk_config disk1 disklabel:gpt fstabkey:uuid
                  align-at:1M<br>
                  primary         -         256M            -       -<br>
                  primary         -         1G              -       -<br>
                  primary         -         4G-             -       -<br>
                  <br>
                  disk_config disk2  sameas:disk1<br>
                  <br>
                  disk_config raid fstabkey:uuid<br>
                  raid1           /boot/efi disk1.1,disk2.1 vfat    rw
                  mdcreateopts="--metadata=1.0"<br>
                  raid1           /boot     disk1.2,disk2.2 ext4  
                   defaults,noatime,discard<br>
                  raid1           -         disk1.3,disk2.3 -       -<br>
                  <br>
                  disk_config lvm fstabkey:uuid<br>
                  <br>
                  vg vg md2<br>
                  vg-root         /         256M-           ext4  
                   defaults,noatime,discard<br>
                  vg-swap         swap      RAM:20%         swap    sw<br>
                </font></div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Hope that helps.</div>
              <div><br>
              </div>
              Cheers,
              <div>Just</div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, 20 Sept 2023 at 08:14,
          Thomas Kloepfer <<a
            href="mailto:thomas.kloepfer@iwr.uni-heidelberg.de"
            moz-do-not-send="true" class="moz-txt-link-freetext">thomas.kloepfer@iwr.uni-heidelberg.de</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
          <br>
          I am rather new to FAI. But I am impresst by this great tool.<br>
          Especially by the documentation that commes with it.<br>
          <br>
          But I am suprised I do not find any working example on how to
          set up a <br>
          simple RAID 1 with UEFI boot.<br>
          <br>
          I read all the discussions in this mailinglist (found two
          threads <br>
          dealing with the problem).<br>
          <br>
          I am aware that RAID and UEFI do not get together well due to
          the fact <br>
          that the RAID information is not available at boot-time and
          [grup] has <br>
          to deal with a device [sda] rather than with a partition
          [md0]. Futher <br>
          more [grup] needs a partition with partition type [vfat].<br>
          <br>
          I can imaging a solution with FAI that needs special one-time
          treatment <br>
          done manualy after FAI hast terminated, but this kills the aim
          of FAI : <br>
          A=fully, A=automated .<br>
          <br>
          so my question is:<br>
          - Can any one supply a solution that manages RAID 1 with UEFI
          at the <br>
          same time?<br>
             (I would be sadisfied with a solution where the Partition
          used by <br>
          UEFI-boot is *not* on a RAID.)<br>
          <br>
             or<br>
          <br>
          - Is it realy just not so easy to get RAID and UEFI to work
          together <br>
          because FAI was established at a time where there was no UEFI
          boot. <br>
          Hence the stucture of FAI is not intended to solve this in the
          first <br>
          pace. Attemts to solve this will result in rather ugly
          workarounds?<br>
          <br>
          I'd appreciate any helpfull reply.<br>
          And thanks again for this great tool.<br>
          <br>
          Thomas Kloepfer<br>
        </blockquote>
      </div>
      <br>
      <p style="margin:0px;background-color:rgb(255,255,255)"><font
          face="Calibri, sans-serif" color="#aeaaaa"><span
            style="font-size:14.6667px">Notice: <br>
            This email is confidential and may contain copyright
            material of members of the Ocado Group. Opinions and views
            expressed in this message may not necessarily reflect the
            opinions and views of the members of the Ocado Group.<br>
            <br>
            If you are not the intended recipient, please notify us
            immediately and delete all copies of this message. Please
            note that it is your responsibility to scan this message for
            viruses.<br>
            <br>
            References to the "Ocado Group" are to Ocado Group plc
            (registered in England and Wales with number 7098618) and
            its subsidiary undertakings (as that expression is defined
            in the Companies Act 2006) from time to time. The registered
            office of Ocado Group plc is Buildings One & Two,
            Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10
            9UL.</span></font></p>
    </blockquote>
    <br>
  </body>
</html>