Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. 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.

Scheduled Pinned Locked Moved Uncategorized
10 Posts 5 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jpmens@mastodon.socialJ This user is from outside of this forum
    jpmens@mastodon.socialJ This user is from outside of this forum
    jpmens@mastodon.social
    wrote last edited by
    #1

    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@mastodon.socialJ unixtippse@mastodon.onlineU kevin@mastodon.km6g.usK 3 Replies Last reply
    0
    • jpmens@mastodon.socialJ jpmens@mastodon.social

      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@mastodon.socialJ This user is from outside of this forum
      jpmens@mastodon.socialJ This user is from outside of this forum
      jpmens@mastodon.social
      wrote last edited by
      #2

      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.

      giggls@karlsruhe-social.deG 1 Reply Last reply
      0
      • jpmens@mastodon.socialJ jpmens@mastodon.social

        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.

        unixtippse@mastodon.onlineU This user is from outside of this forum
        unixtippse@mastodon.onlineU This user is from outside of this forum
        unixtippse@mastodon.online
        wrote last edited by
        #3

        @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.

        Link Preview Image
        Dotfiles/Scripts/sbin/efirepl at master · mschmitt/Dotfiles

        Contribute to mschmitt/Dotfiles development by creating an account on GitHub.

        favicon

        GitHub (github.com)

        giggls@karlsruhe-social.deG 1 Reply Last reply
        0
        • jpmens@mastodon.socialJ jpmens@mastodon.social

          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.

          giggls@karlsruhe-social.deG This user is from outside of this forum
          giggls@karlsruhe-social.deG This user is from outside of this forum
          giggls@karlsruhe-social.de
          wrote last edited by
          #4

          @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

          1 Reply Last reply
          0
          • unixtippse@mastodon.onlineU unixtippse@mastodon.online

            @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.

            Link Preview Image
            Dotfiles/Scripts/sbin/efirepl at master · mschmitt/Dotfiles

            Contribute to mschmitt/Dotfiles development by creating an account on GitHub.

            favicon

            GitHub (github.com)

            giggls@karlsruhe-social.deG This user is from outside of this forum
            giggls@karlsruhe-social.deG This user is from outside of this forum
            giggls@karlsruhe-social.de
            wrote last edited by
            #5

            @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 -e

            if mountpoint -q /boot/efi && mountpoint -q /boot/efi2 ; then
            rsync -t --recursive --delete /boot/efi/ /boot/efi2/
            fi
            exit 0

            unixtippse@mastodon.onlineU 1 Reply Last reply
            0
            • giggls@karlsruhe-social.deG giggls@karlsruhe-social.de

              @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 -e

              if mountpoint -q /boot/efi && mountpoint -q /boot/efi2 ; then
              rsync -t --recursive --delete /boot/efi/ /boot/efi2/
              fi
              exit 0

              unixtippse@mastodon.onlineU This user is from outside of this forum
              unixtippse@mastodon.onlineU This user is from outside of this forum
              unixtippse@mastodon.online
              wrote last edited by
              #6

              @giggls @jpmens I started my script on a 4 drive RAID-6 with more drives to be added later, hence the dynamic ESP support.

              giggls@karlsruhe-social.deG 1 Reply Last reply
              0
              • unixtippse@mastodon.onlineU unixtippse@mastodon.online

                @giggls @jpmens I started my script on a 4 drive RAID-6 with more drives to be added later, hence the dynamic ESP support.

                giggls@karlsruhe-social.deG This user is from outside of this forum
                giggls@karlsruhe-social.deG This user is from outside of this forum
                giggls@karlsruhe-social.de
                wrote last edited by
                #7

                @unixtippse @jpmens Ah, what I did is for RAID1 only

                1 Reply Last reply
                0
                • jpmens@mastodon.socialJ jpmens@mastodon.social

                  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.

                  kevin@mastodon.km6g.usK This user is from outside of this forum
                  kevin@mastodon.km6g.usK This user is from outside of this forum
                  kevin@mastodon.km6g.us
                  wrote last edited by
                  #8

                  @jpmens I use this for keeping the content of the ESPs in sync: https://github.com/gregory-lee-bartholomew/bootsync

                  zhenech@chaos.socialZ 1 Reply Last reply
                  0
                  • kevin@mastodon.km6g.usK kevin@mastodon.km6g.us

                    @jpmens I use this for keeping the content of the ESPs in sync: https://github.com/gregory-lee-bartholomew/bootsync

                    zhenech@chaos.socialZ This user is from outside of this forum
                    zhenech@chaos.socialZ This user is from outside of this forum
                    zhenech@chaos.social
                    wrote last edited by
                    #9

                    @kevin @jpmens I think @youam was saying the other day, you can just do a "real" RAID with metadata format 1.0 so it puts the stuff at the *end* of the partition and UEFI is not confused.

                    kevin@mastodon.km6g.usK 1 Reply Last reply
                    0
                    • zhenech@chaos.socialZ zhenech@chaos.social

                      @kevin @jpmens I think @youam was saying the other day, you can just do a "real" RAID with metadata format 1.0 so it puts the stuff at the *end* of the partition and UEFI is not confused.

                      kevin@mastodon.km6g.usK This user is from outside of this forum
                      kevin@mastodon.km6g.usK This user is from outside of this forum
                      kevin@mastodon.km6g.us
                      wrote last edited by
                      #10

                      @zhenech @jpmens @youam That's an interesting idea!

                      1 Reply Last reply
                      1
                      0
                      • R relay@relay.infosec.exchange shared this topic
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups