Monitoring software RAID in Debian GNU/Linux
Daniel Bareiro
daniel-listas at gmx.net
Tue May 13 21:42:35 CEST 2008
On Wednesday, 07 May 2008 13:07:47 +0100,
Hari Sekhon wrote:
> Hi Daniel,
Hi Hari!
> Could you please try version 0.7.2 on nagiosexchange and let me know
> how you get on.
Sure!
##################### Initial state #######################
xenhost7:~# ./check_md_raid.pl.072 -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 : Sun May 4 01:06:13 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 956ff562:7ba15903:6068b800:4a673998
Events : 0.4
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 : Tue May 13 14:17:18 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 119bcdde:0ac351b2:d05e4382:e6def213
Events : 0.9846
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 : Sun May 4 02:31:57 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
Events : 0.10
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]
xenhost7:~# 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 : Sun May 4 01:06:13 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 956ff562:7ba15903:6068b800:4a673998
Events : 0.4
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 : Tue May 13 14:21:54 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 119bcdde:0ac351b2:d05e4382:e6def213
Events : 0.9846
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 : Sun May 4 02:31:57 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
Events : 0.10
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
##################### Removing /dev/sdb2 #######################
xenhost7:~# ./check_md_raid.pl.072 -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 : Sun May 4 01:06:13 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 956ff562:7ba15903:6068b800:4a673998
Events : 0.4
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 : Tue May 13 14:42:58 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 119bcdde:0ac351b2:d05e4382:e6def213
Events : 0.9910
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 : Sun May 4 02:31:57 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
Events : 0.10
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
RAID CRITICAL: 1 array not ok - Array MD1 is in state "clean, degraded" (raid1) [3 arrays checked]
xenhost7:~# 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 : Sun May 4 01:06:13 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 956ff562:7ba15903:6068b800:4a673998
Events : 0.4
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 : Tue May 13 14:41:50 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 119bcdde:0ac351b2:d05e4382:e6def213
Events : 0.9900
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 : Sun May 4 02:31:57 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
Events : 0.10
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
##################### Adding /dev/sdb2 #######################
xenhost7:~# ./check_md_raid.pl.072 -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 : Sun May 4 01:06:13 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 956ff562:7ba15903:6068b800:4a673998
Events : 0.4
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 : Tue May 13 16:09:50 2008
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Rebuild Status : 6% complete
UUID : 119bcdde:0ac351b2:d05e4382:e6def213
Events : 0.10360
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 : Sun May 4 02:31:57 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
Events : 0.10
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
RAID WARNING: 1 array not ok - Array "MD1" is in state "clean, degraded,
recovering" (raid1) - Rebuild Status : 6% complete [3 arrays checked]
xenhost7:~# 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 : Sun May 4 01:06:13 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 956ff562:7ba15903:6068b800:4a673998
Events : 0.4
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 : Tue May 13 16:11:29 2008
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Rebuild Status : 43% complete
UUID : 119bcdde:0ac351b2:d05e4382:e6def213
Events : 0.10378
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 : Sun May 4 02:31:57 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
Events : 0.10
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
Perfect! Now it seems to works well. Was the problem related to the
output of mdadm?
Thanks for your reply and the new version of plugin! :-)
Regards,
Daniel
--
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lennt - Linux user #188.598
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080513/93046d28/attachment.sig>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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