ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. mdadm
    Log in to post
    • All categories
    • Pete.S

      Blind swap / automatic rebuild on software RAID
      IT Discussion • raid raid rebuild mdadm • • Pete.S

      11
      0
      Votes
      11
      Posts
      284
      Views

      Pete.S

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

    • FATeknollogee

      mdadm in 2018 ??
      IT Discussion • mdadm software raid linux storage • • FATeknollogee

      28
      0
      Votes
      28
      Posts
      1244
      Views

      scottalanmiller

      Here is a good example of why this is complex even for blind swap hardware RAID... it's not always clear what it is supposed to do.

      https://mangolassi.it/topic/17314/replaced-drive-in-pe-t410-not-adding-to-virtual-disk/

    • scottalanmiller

      Linux: The Role of MD Software RAID
      IT Discussion • linux raid software raid sam linux administration storage md raid mdadm • • scottalanmiller

      2
      2
      Votes
      2
      Posts
      1111
      Views

      scottalanmiller

      Of interesting side note, the Linux md RAID system also implements Intel Matrix RAID and DDF (Disk Data Format) software RAID formats commonly used by consumer FakeRAID systems. Because of this, Linux md can sometimes convert FakeRAID into enterprise md RAID if you really know what you are doing 🙂

    • Kelly

      Fixing Software RAID on XenServer
      IT Discussion • xenserver linux raid mdadm • • Kelly

      13
      1
      Votes
      13
      Posts
      1822
      Views

      scottalanmiller

      @Kelly said:

      @scottalanmiller said:

      Did it rebuild successfully?

      I don't know. I ended up setting up the necessary VMs on other hosts and started rebuilding this one since it has been having stability issues in the last few weeks.

      Ah okay, probably best but it is nice when you can figure out what happened, just to know what it was 😞

    • DustinB3403

      How to configure GMail SMTP on XenServer 6.5 to monitor and alert about your MDADM Array
      IT Discussion • how to alerts mdadm smtp md raid xenserver xenserver 6.5 • • DustinB3403

      21
      4
      Votes
      21
      Posts
      5617
      Views

      T

      Just a guess..

      For 6.5

      sudo yum --enablerepo=base --disablerepo=citrix install postfix
      http://xmodulo.com/how-to-install-additional-packages-in.html

      For 7
      http://discussions.citrix.com/topic/378880-xenserver-70-repositories/ post #5