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

    Fixing Software RAID on XenServer

    Scheduled Pinned Locked Moved IT Discussion
    xenserverlinuxraidmdadm
    13 Posts 6 Posters 2.5k Views
    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.
    • DashrenderD
      Dashrender
      last edited by

      You're running a MDADM RAID 10, yes?

      KellyK scottalanmillerS 2 Replies Last reply Reply Quote 0
      • KellyK
        Kelly @Dashrender
        last edited by

        @Dashrender Yes

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

          This is why you replicate your Boot devices to a backup.

          Something I plan on doing this weekend (to avoid this very same issue)

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

            As for trying to recover, can you not mount the array in XenServer without it wiping the array?

            KellyK 1 Reply Last reply Reply Quote 0
            • KellyK
              Kelly @DustinB3403
              last edited by

              @DustinB3403 said:

              As for trying to recover, can you not mount the array in XenServer without it wiping the array?

              I can't access the array in dom0 right now.

              I tried doing mdadm --assemble /dev/md0 /dev/sd[bcef]. It says that md0 already exists. When I run cat /proc/mdstat it shows md0 as inactive with only sdb as a member.

              1 Reply Last reply Reply Quote 0
              • coliverC
                coliver
                last edited by

                This link has lots of good info on MD RAID recovery.

                https://raid.wiki.kernel.org/index.php/RAID_Recovery

                1 Reply Last reply Reply Quote 2
                • KellyK
                  Kelly
                  last edited by

                  So the RAID is rebuilding. I ended up having to run this to get the drives reconnected to each other and dom0:

                  mdadm --create /dev/md0 /dev/sd[bcef]
                  

                  It is still resyncing, so I'm not sure if it worked or not, but md0 appears to be happy.

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

                    @Kelly said:

                    So the RAID is rebuilding. I ended up having to run this to get the drives reconnected to each other and dom0:

                    mdadm --create /dev/md0 /dev/sd[bcef]
                    

                    It is still resyncing, so I'm not sure if it worked or not, but md0 appears to be happy.

                    It should be fine. Just assuming that none of the drives got mounted and written too, and even if 1 did, the RAID should recover from a single corrupt drive.

                    1 Reply Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller @Dashrender
                      last edited by

                      @Dashrender said:

                      You're running a MDADM RAID 10, yes?

                      MD RAID. MDADM is the administration utility for MD RAID. There is no such thing as MDADM RAID.

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        Did it rebuild successfully?

                        KellyK 1 Reply Last reply Reply Quote 0
                        • KellyK
                          Kelly @scottalanmiller
                          last edited by

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

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Kelly
                            last edited by

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

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