ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Blind swap / automatic rebuild on software RAID

    IT Discussion
    raid raid rebuild mdadm
    5
    11
    1.5k
    Loading More Posts
    • 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.
    • 1
      1337
      last edited by 1337

      I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
      A lot of people assume that software raid can't do that. But that's incorrect.

      Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

      It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
      The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

      I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

      travisdh1T 1 Reply Last reply Reply Quote 0
      • 1
        1337
        last edited by

        https://www.man7.org/linux/man-pages/man5/mdadm.conf.5.html

        1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce
          last edited by

          Storage Spaces on Windows Server did it automatically as well. I actually verified it in a PoC.

          1 Reply Last reply Reply Quote 1
          • travisdh1T
            travisdh1 @1337
            last edited by

            @Pete-S said in Blind swap / automatic rebuild on linux:

            I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
            A lot of people assume that software raid can't do that. But that's incorrect.

            Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

            It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
            The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

            I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

            I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

            The only example of not having that available, that I can think of, is https://www.45drives.com/

            1 1 Reply Last reply Reply Quote 2
            • 1
              1337 @travisdh1
              last edited by

              @travisdh1 said in Blind swap / automatic rebuild on linux:

              @Pete-S said in Blind swap / automatic rebuild on linux:

              I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
              A lot of people assume that software raid can't do that. But that's incorrect.

              Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

              It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
              The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

              I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

              I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

              The only example of not having that available, that I can think of, is https://www.45drives.com/

              I don't know man.
              A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

              If it was someone who knows what they're doing then a red light or not doesn't make much of a difference. Any drive that gets kicked out of an array doesn't have any activity. So it's always the one that doesn't blink.

              BTW, Supermicro has better toploading servers than 45drives. You still have drive activity LEDs on those and you can hotplug any drive while it's running.

              Storage server porn:
              Youtube Video

              travisdh1T DashrenderD 2 Replies Last reply Reply Quote 1
              • travisdh1T
                travisdh1 @1337
                last edited by

                @Pete-S said in Blind swap / automatic rebuild on linux:

                @travisdh1 said in Blind swap / automatic rebuild on linux:

                @Pete-S said in Blind swap / automatic rebuild on linux:

                I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
                A lot of people assume that software raid can't do that. But that's incorrect.

                Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

                It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
                The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

                I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

                I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

                The only example of not having that available, that I can think of, is https://www.45drives.com/

                I don't know man.
                A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

                While probably true, that doesn't really have anything to do with blind swap.

                Those SuperMicro chasis look nice, I'll have to check those out!

                1 1 Reply Last reply Reply Quote 1
                • DashrenderD
                  Dashrender @1337
                  last edited by

                  @Pete-S said in Blind swap / automatic rebuild on linux:

                  A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

                  Boy this is no lie. I visited a potential new client once, they had their servers on a table against a wall out in the open for anyone/everyone to access. There was a failed drive on it - I was kind and mentioned it to them before I left.

                  1 Reply Last reply Reply Quote 2
                  • 1
                    1337 @travisdh1
                    last edited by

                    @travisdh1 said in Blind swap / automatic rebuild on linux:

                    @Pete-S said in Blind swap / automatic rebuild on linux:

                    @travisdh1 said in Blind swap / automatic rebuild on linux:

                    @Pete-S said in Blind swap / automatic rebuild on linux:

                    I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
                    A lot of people assume that software raid can't do that. But that's incorrect.

                    Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

                    It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
                    The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

                    I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

                    I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

                    The only example of not having that available, that I can think of, is https://www.45drives.com/

                    I don't know man.
                    A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

                    While probably true, that doesn't really have anything to do with blind swap.

                    I'm just saying those that have their server park under control doesn't really need any LEDs. And those that really needs it, doesn't look at it.

                    But it would actually be a small thing to make a script that would indicate faulty drives. You look at /proc/mdstat and any drive showing a _ instead of U is lit up on the drive bay. It's controlled by SGPIO or SES. That's how the raid controller does it.

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @1337
                      last edited by

                      @Pete-S said in Blind swap / automatic rebuild on linux:

                      @travisdh1 said in Blind swap / automatic rebuild on linux:

                      @Pete-S said in Blind swap / automatic rebuild on linux:

                      @travisdh1 said in Blind swap / automatic rebuild on linux:

                      @Pete-S said in Blind swap / automatic rebuild on linux:

                      I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
                      A lot of people assume that software raid can't do that. But that's incorrect.

                      Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

                      It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
                      The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

                      I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

                      I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

                      The only example of not having that available, that I can think of, is https://www.45drives.com/

                      I don't know man.
                      A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

                      While probably true, that doesn't really have anything to do with blind swap.

                      I'm just saying those that have their server park under control doesn't really need any LEDs. And those that really needs it, doesn't look at it.

                      But it would actually be a small thing to make a script that would indicate faulty drives. You look at /proc/mdstat and any drive showing a _ instead of U is lit up on the drive bay. It's controlled by SGPIO or SES. That's how the raid controller does it.

                      I thought MD was already capable of performing this. . .

                      1 1 Reply Last reply Reply Quote 1
                      • 1
                        1337 @DustinB3403
                        last edited by 1337

                        @DustinB3403 said in Blind swap / automatic rebuild on linux:

                        @Pete-S said in Blind swap / automatic rebuild on linux:

                        @travisdh1 said in Blind swap / automatic rebuild on linux:

                        @Pete-S said in Blind swap / automatic rebuild on linux:

                        @travisdh1 said in Blind swap / automatic rebuild on linux:

                        @Pete-S said in Blind swap / automatic rebuild on linux:

                        I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
                        A lot of people assume that software raid can't do that. But that's incorrect.

                        Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

                        It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
                        The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

                        I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

                        I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

                        The only example of not having that available, that I can think of, is https://www.45drives.com/

                        I don't know man.
                        A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

                        While probably true, that doesn't really have anything to do with blind swap.

                        I'm just saying those that have their server park under control doesn't really need any LEDs. And those that really needs it, doesn't look at it.

                        But it would actually be a small thing to make a script that would indicate faulty drives. You look at /proc/mdstat and any drive showing a _ instead of U is lit up on the drive bay. It's controlled by SGPIO or SES. That's how the raid controller does it.

                        I thought MD was already capable of performing this. . .

                        I don't think so but I could be wrong.

                        I mean you could run raid 1 on a pair of sd cards. Since that md works on any type of block device or partition there is no guarantee that there are any drive bay lights or anything of that nature. But it's possible that there is an option for it.

                        1 1 Reply Last reply Reply Quote 0
                        • 1
                          1337 @1337
                          last edited by 1337

                          @Pete-S said in Blind swap / automatic rebuild on linux:

                          @DustinB3403 said in Blind swap / automatic rebuild on linux:

                          @Pete-S said in Blind swap / automatic rebuild on linux:

                          @travisdh1 said in Blind swap / automatic rebuild on linux:

                          @Pete-S said in Blind swap / automatic rebuild on linux:

                          @travisdh1 said in Blind swap / automatic rebuild on linux:

                          @Pete-S said in Blind swap / automatic rebuild on linux:

                          I often see that the argument for using hardware raid is to be able to initiate an automatic rebuild by just swapping a faulty drive for a new one.
                          A lot of people assume that software raid can't do that. But that's incorrect.

                          Software raid on linux (as in md managed by mdadm) can do the exact the same thing.

                          It's under policy and partition policy in mdadm.conf. You'll find on the man mdadm.conf page.
                          The spare-same-slot option would be the one that works the same way as hardware controllers usually do.

                          I haven't used it myself since I prefer to initiate the rebuild myself. But I wonder if you guys have used it?

                          I don't think blind swap is about automatic rebuild, that's a given no matter what software/hardware RAID is running. It's more about seeing the light is red instead of green on drive 6, so you know that is the one to replace.

                          The only example of not having that available, that I can think of, is https://www.45drives.com/

                          I don't know man.
                          A typical SMB would have no monitoring and any server would be stuck in a closet somewhere. Nobody would notice any red lights until several months later or until something breaks and then they'd have no clue what to do about it, wouldn't know who to call and wouldn't have any idea if the server even has warranty (it never has). A spare drive wouldn't be available unless it was an old discarded drive left on the shelf from the last time something was replaced.

                          While probably true, that doesn't really have anything to do with blind swap.

                          I'm just saying those that have their server park under control doesn't really need any LEDs. And those that really needs it, doesn't look at it.

                          But it would actually be a small thing to make a script that would indicate faulty drives. You look at /proc/mdstat and any drive showing a _ instead of U is lit up on the drive bay. It's controlled by SGPIO or SES. That's how the raid controller does it.

                          I thought MD was already capable of performing this. . .

                          I don't think so but I could be wrong.

                          I mean you could run raid 1 on a pair of sd cards. Since that md works on any type of block device or partition there is no guarantee that there are any drive bay lights or anything of that nature. But it's possible that there is an option for it.

                          Has a quick look and it looks like the ledmon package monitors md arrays and set LEDs accordingly.
                          So yes, software raid can indicate what drive has an error directly on the chassis with some additional software.

                          1 Reply Last reply Reply Quote 1
                          • 1 / 1
                          • First post
                            Last post