Monitoring software RAID in Debian GNU/Linux

Daniel Guillermo Bareiro daniel-listas at gmx.net
Fri May 2 19:05:22 CEST 2008


> Daniel,

Hi Hari

>    Could you pls try with the latest version 0.7 on nagiosexchange and 
> let us know if you still have any problem with it?

I don't remember to have seen this version 0.7. It seems the last 
update was May 1 in Nagiosexchange. A new version in the International 
day of workers. extraordinary!! :-D

With the new version I got the same problem :-(

############## Initial state

xenhost7:/usr/local/nagios/libexec/non-std# mdadm --detail /dev/md{0..2}
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:04 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
    Device Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 11:42:28 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 956ff562:7ba15903:6068b800:4a673998
         Events : 0.2

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:15 2008
     Raid Level : raid1
     Array Size : 19534976 (18.63 GiB 20.00 GB)
    Device Size : 19534976 (18.63 GiB 20.00 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  2 13:50:45 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 119bcdde:0ac351b2:d05e4382:e6def213
         Events : 0.9746

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
/dev/md2:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
     Raid Level : raid1
     Array Size : 292053568 (278.52 GiB 299.06 GB)
    Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 18:31:36 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3

xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl.1 -vvv
finding all MD arrays via: /sbin/mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
Now testing raid device "/dev/md0"
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:04 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
    Device Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 11:42:28 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 956ff562:7ba15903:6068b800:4a673998
         Events : 0.2

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
Now testing raid device "/dev/md1"
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:15 2008
     Raid Level : raid1
     Array Size : 19534976 (18.63 GiB 20.00 GB)
    Device Size : 19534976 (18.63 GiB 20.00 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  2 13:51:30 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 119bcdde:0ac351b2:d05e4382:e6def213
         Events : 0.9746

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
Now testing raid device "/dev/md2"
/dev/md2:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
     Raid Level : raid1
     Array Size : 292053568 (278.52 GiB 299.06 GB)
    Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 18:31:36 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3
RAID OK: All arrays OK [3 arrays checked]

############## Removing /dev/sdb2 from /dev/md1

xenhost7:/usr/local/nagios/libexec/non-std# mdadm --manage /dev/md1 --fail /dev/sdb2
mdadm: set /dev/sdb2 faulty in /dev/md1
xenhost7:/usr/local/nagios/libexec/non-std# mdadm --manage /dev/md1 --remove /dev/sdb2
mdadm: hot removed /dev/sdb2

xenhost7:/usr/local/nagios/libexec/non-std# mdadm --detail /dev/md{0..2}
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:04 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
    Device Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 11:42:28 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 956ff562:7ba15903:6068b800:4a673998
         Events : 0.2

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:15 2008
     Raid Level : raid1
     Array Size : 19534976 (18.63 GiB 20.00 GB)
    Device Size : 19534976 (18.63 GiB 20.00 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  2 13:54:44 2008
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 119bcdde:0ac351b2:d05e4382:e6def213
         Events : 0.9764

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       0        0        1      removed
/dev/md2:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
     Raid Level : raid1
     Array Size : 292053568 (278.52 GiB 299.06 GB)
    Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 18:31:36 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3

xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl.1 -vvv
finding all MD arrays via: /sbin/mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
Now testing raid device "/dev/md0"
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:04 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
    Device Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 11:42:28 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 956ff562:7ba15903:6068b800:4a673998
         Events : 0.2

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
Now testing raid device "/dev/md1"
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:15 2008
     Raid Level : raid1
     Array Size : 19534976 (18.63 GiB 20.00 GB)
    Device Size : 19534976 (18.63 GiB 20.00 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  2 13:55:54 2008
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 119bcdde:0ac351b2:d05e4382:e6def213
         Events : 0.9772

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       0        0        1      removed
Now testing raid device "/dev/md2"
/dev/md2:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
     Raid Level : raid1
     Array Size : 292053568 (278.52 GiB 299.06 GB)
    Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 18:31:36 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3
RAID OK: All arrays OK [3 arrays checked]

############## Rebuilding state

xenhost7:/usr/local/nagios/libexec/non-std# mdadm /dev/md1 --add /dev/sdb2
mdadm: re-added /dev/sdb2

xenhost7:/usr/local/nagios/libexec/non-std# mdadm --detail /dev/md{0..2}
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:04 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
    Device Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 11:42:28 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 956ff562:7ba15903:6068b800:4a673998
         Events : 0.2

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:15 2008
     Raid Level : raid1
     Array Size : 19534976 (18.63 GiB 20.00 GB)
    Device Size : 19534976 (18.63 GiB 20.00 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  2 13:58:40 2008
          State : clean, degraded, recovering
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

 Rebuild Status : 14% complete

           UUID : 119bcdde:0ac351b2:d05e4382:e6def213
         Events : 0.9808

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       2       8       18        1      spare rebuilding   /dev/sdb2
/dev/md2:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
     Raid Level : raid1
     Array Size : 292053568 (278.52 GiB 299.06 GB)
    Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 18:31:36 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3

xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl.1 -vvv
finding all MD arrays via: /sbin/mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
Now testing raid device "/dev/md0"
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:04 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
    Device Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 11:42:28 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 956ff562:7ba15903:6068b800:4a673998
         Events : 0.2

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
Now testing raid device "/dev/md1"
/dev/md1:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:15 2008
     Raid Level : raid1
     Array Size : 19534976 (18.63 GiB 20.00 GB)
    Device Size : 19534976 (18.63 GiB 20.00 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Fri May  2 13:59:28 2008
          State : clean, degraded, recovering
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

 Rebuild Status : 29% complete

           UUID : 119bcdde:0ac351b2:d05e4382:e6def213
         Events : 0.9818

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       2       8       18        1      spare rebuilding   /dev/sdb2
Now testing raid device "/dev/md2"
/dev/md2:
        Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
     Raid Level : raid1
     Array Size : 292053568 (278.52 GiB 299.06 GB)
    Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr 28 18:31:36 2008
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
         Events : 0.8

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3
RAID OK: All arrays OK [3 arrays checked]

I'm using Debian GNU/Linux Etch with mdadm 2.5.6-9.

Thanks for your response.

Regards,
Daniel
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list