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

    Xenserver 7: RAID array monitoring

    IT Discussion
    xenserver md raid xenserver 7 raid
    3
    13
    3.6k
    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.
    • M
      mazterjedi
      last edited by scottalanmiller

      I have asked this question before, but I guess now I am asking it a different way...

      From what I have read, it seems XS itself can not monitor a RAID array on a hardware controller. I have a new XS with a fresh RAID 10 array created in XS. RAID is disabled in the BIOS, so it should not be an issue. I created the array across four disks, formatted it, mounted it, and can see it in XC. I was successfully able to create a VM and copy a VM to the array with no issues. Now, how to I keep an eye on it? How do I get alerts? I see you can able alerts, but I dont see anything about RAID or HDD status, just thoughput.

      1 Reply Last reply Reply Quote 2
      • wirestyle22W
        wirestyle22
        last edited by wirestyle22

        So you were using FakeRAID on the motherboard and now you are using software raid?

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

          @mazterjedi if you're using MDADM you can monitor the array with

          watch cat /proc/mdstat
          
          M 1 Reply Last reply Reply Quote 1
          • M
            mazterjedi @DustinB3403
            last edited by

            @DustinB3403 said in Xenserver 7: RAID array monitoring:

            watch cat /proc/mdstat

            Yep, everything looks good...How do i know when something goes south without constantly watching it, though?

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

              @mazterjedi said in Xenserver 7: RAID array monitoring:

              @DustinB3403 said in Xenserver 7: RAID array monitoring:

              watch cat /proc/mdstat

              Yep, everything looks good...How do i know when something goes south without constantly watching it, though?

              Where it says 4/4 and [UUUU] you might have 4/3 and [UU_U]

              Also you can set email alerts for if a drive does go bad so that you are emailed about it.

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

                This website is what I followed for my system.

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

                  @DustinB3403 said in Xenserver 7: RAID array monitoring:

                  @mazterjedi said in Xenserver 7: RAID array monitoring:

                  @DustinB3403 said in Xenserver 7: RAID array monitoring:

                  watch cat /proc/mdstat

                  Yep, everything looks good...How do i know when something goes south without constantly watching it, though?

                  Where it says 4/4 and [UUUU] you might have 4/3 and [UU_U]

                  Also you can set email alerts for if a drive does go bad so that you are emailed about it.

                  Which the email alert has worked, and told me that I had a bad drive in my array.

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

                    if you do need to replace a drive, you have to follow a specific sequence of steps.

                    This topic here outlines those steps.

                    https://mangolassi.it/topic/7772/replacing-a-failed-drive-in-md-raid-10

                    M 1 Reply Last reply Reply Quote 1
                    • M
                      mazterjedi @DustinB3403
                      last edited by

                      @DustinB3403
                      Personalities : [raid10]
                      md0 : active raid10 sdc1[1] sdd1[2] sdb1[0] sde1[3]
                      3906764800 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
                      bitmap: 0/30 pages [0KB], 65536KB chunk

                      unused devices: <none>

                      Ahh, I see. 4 U's is good lol.
                      So i checked out that website and looked at adding the email alert to the mdadm. But how? Im sorry, I am very new at XS/Linux/Cent and all this CLI is throwing me for a loop.

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

                        Follow the steps on the website.

                        sudo nano /etc/mdadm.conf
                        

                        add at the bottom

                        MAILADDR email@domain.com
                        

                        Test with

                        sudo mdadm --monitor --scan --test -1
                        
                        1 Reply Last reply Reply Quote 1
                        • DustinB3403D
                          DustinB3403
                          last edited by

                          Yours should look similar to mine.

                          0_1470764131886_XenCenterMain_2016-08-09_13-35-11.png

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

                            This is how the test email will appear.

                            0_1470764277344_OUTLOOK_2016-08-09_13-37-35.png

                            You'll have to setup an smtp email though (trying to remember where that was...) See Below.

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

                              Duh here is a guide I actually wrote...

                              https://mangolassi.it/topic/7785/how-to-configure-gmail-smtp-on-xenserver-6-5-to-monitor-and-alert-about-your-mdadm-array

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