Monitoring software RAID in Debian GNU/Linux
Ilya Meylikhov
rage_q3 at mail.ru
Fri May 2 11:38:03 CEST 2008
Hello!
Could you please assist me in troubleshooting the following issue with
check_md_raid plugin: I've built a software raid-1 array on my Linux Debian
4.0 box (2.6.18-6-686) during the installation of my system; everything was
fine and I decided to try check_md_raid plugin which I've downloaded on the
nagiosexchange.org. According to the documentation I expected to see the
"Crtitcal state" when I ran this plugin after removing disk from the array
but the plugin said that my arrays was fine:
############Checking /proc/mdstsat before disk removal############
backup:/home/rage# cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sdb7[1] sda7[0]
450301824 blocks [2/2] [UU]
md4 : active raid1 sda6[0] sdb6[1]
2048192 blocks [2/2] [UU]
md3 : active raid1 sdb5[1] sda5[0]
5116544 blocks [2/2] [UU]
md2 : active raid1 sdb3[1] sda3[0]
15358016 blocks [2/2] [UU]
md1 : active raid1 sdb2[1] sda2[0]
15358016 blocks [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
200704 blocks [2/2] [UU]
unused devices: <none>
############Checking with check_md_raid plugin############
backup:/home/rage# ./check_raid -vv
found array /dev/md0
found array /dev/md1
found array /dev/md2
found array /dev/md3
found array /dev/md4
found array /dev/md5
Now testing raid device "/dev/md0"
Now testing raid device "/dev/md1"
Now testing raid device "/dev/md2"
Now testing raid device "/dev/md3"
Now testing raid device "/dev/md4"
Now testing raid device "/dev/md5"
RAID OK: All arrays OK
############Removing disk from /dev/md3 array############
backup:/home/rage# mdadm --manage /dev/md3 --fail /dev/sdb5
mdadm: set /dev/sdb5 faulty in /dev/md3
backup:/home/rage# mdadm --manage /dev/md3 --remove /dev/sdb5
mdadm: hot removed /dev/sdb5
############Checking with check_md_raid plugin############
backup:/home/rage# ./check_raid -vvv
finding all MD arrays via mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
found array /dev/md3
found array /dev/md4
found array /dev/md5
Now testing raid device "/dev/md0"
/dev/md0:
Version : 00.90.03
Creation Time : Wed Apr 23 07:39:40 2008
Raid Level : raid1
Array Size : 200704 (196.03 MiB 205.52 MB)
Device Size : 200704 (196.03 MiB 205.52 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Fri May 2 06:25:41 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 4235adda:adcd3bf7:0bbf16e3:cde7c9c1
Events : 0.36
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 : Wed Apr 23 07:40:30 2008
Raid Level : raid1
Array Size : 15358016 (14.65 GiB 15.73 GB)
Device Size : 15358016 (14.65 GiB 15.73 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Fri May 2 09:23:29 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 27e7cc8c:8b076820:3f0631c7:50aeba23
Events : 0.11386
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 : Wed Apr 23 07:41:01 2008
Raid Level : raid1
Array Size : 15358016 (14.65 GiB 15.73 GB)
Device Size : 15358016 (14.65 GiB 15.73 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Fri May 2 09:23:28 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 4964ab24:c608cc36:833021fc:ab2f90db
Events : 0.12598
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
Now testing raid device "/dev/md3"
/dev/md3:
Version : 00.90.03
Creation Time : Wed Apr 23 07:41:34 2008
Raid Level : raid1
Array Size : 5116544 (4.88 GiB 5.24 GB)
Device Size : 5116544 (4.88 GiB 5.24 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Fri May 2 09:23:23 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 7550f78b:22061677:db94040d:31b9e596
Events : 0.11074
Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 0 0 1 removed
Now testing raid device "/dev/md4"
/dev/md4:
Version : 00.90.03
Creation Time : Wed Apr 23 07:51:35 2008
Raid Level : raid1
Array Size : 2048192 (2000.52 MiB 2097.35 MB)
Device Size : 2048192 (2000.52 MiB 2097.35 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 4
Persistence : Superblock is persistent
Update Time : Thu May 1 23:02:03 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 2b779a4b:867b80d4:0df60a29:6eb4b4e7
Events : 0.4
Number Major Minor RaidDevice State
0 8 6 0 active sync /dev/sda6
1 8 22 1 active sync /dev/sdb6
Now testing raid device "/dev/md5"
/dev/md5:
Version : 00.90.03
Creation Time : Wed Apr 23 07:52:43 2008
Raid Level : raid1
Array Size : 450301824 (429.44 GiB 461.11 GB)
Device Size : 450301824 (429.44 GiB 461.11 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 5
Persistence : Superblock is persistent
Update Time : Fri May 2 09:24:27 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 47a093e7:74a56506:25bd5055:3fb58c39
Events : 0.14316
Number Major Minor RaidDevice State
0 8 7 0 active sync /dev/sda7
1 8 23 1 active sync /dev/sdb7
RAID OK: All arrays OK
############Checking /proc/mdstat############
backup:/home/rage# cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sdb7[1] sda7[0]
450301824 blocks [2/2] [UU]
md4 : active raid1 sda6[0] sdb6[1]
2048192 blocks [2/2] [UU]
md3 : active raid1 sda5[0]
5116544 blocks [2/1] [U_]
md2 : active raid1 sdb3[1] sda3[0]
15358016 blocks [2/2] [UU]
md1 : active raid1 sdb2[1] sda2[0]
15358016 blocks [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
200704 blocks [2/2] [UU]
unused devices: <none>
############Checking with mdadm############
backup:/home/rage# mdadm --detail --scan /dev/md3
/dev/md3:
Version : 00.90.03
Creation Time : Wed Apr 23 07:41:34 2008
Raid Level : raid1
Array Size : 5116544 (4.88 GiB 5.24 GB)
Device Size : 5116544 (4.88 GiB 5.24 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Fri May 2 09:25:18 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 7550f78b:22061677:db94040d:31b9e596
Events : 0.11080
Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 0 0 1 removed
So the check_md_raid plugin don't see a degraded state of the array. How
could I check the array and cause a Critical state after running the plugin?
Waiting for reply.
Thanks in advance,
Ilya.
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon
Sent: Thursday, May 01, 2008 4:56 PM
To: Daniel Guillermo Bareiro
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring software RAID in Debian GNU/Linux
Daniel,
Could you pls try with the latest version 0.7 on nagiosexchange and
let us know if you still have any problem with it?
Thanks
-h
Daniel Guillermo Bareiro wrote:
> Hi Hari!
>
>
>>> [ About plugin check_md_raid.pl ]
>>>
>
>
>>> I have noticed when removing a member from the raid, running the plugin
>>> from Nagios server, it show the RAID in degraded state for a moment. But
>>> soon the plugin shows the RAID in OK state. I observe the same situation
>>> when adding the member. Initially the script show the RAID in rebuilding
>>> state, but a new run of the plugin shows OK status before finishing the
>>> ebuilding. Which can be the problem?
>>>
>
>
>> show us the output of the plugin with -vvv as well as the mdadm detail
>> output. This plugin basically calls mdadm to find the status of the
>> drives.
>>
>
> Initial status:
>
> xenhost7:/usr/local/nagios/libexec/non-std# cat /proc/mdstat
> Personalities : [raid1]
> md2 : active raid1 sda3[0] sdb3[1]
> 292053568 blocks [2/2] [UU]
>
> md1 : active raid1 sdb2[1] sda2[0]
> 19534976 blocks [2/2] [UU]
>
> md0 : active raid1 sda1[0] sdb1[1]
> 979840 blocks [2/2] [UU]
>
> unused devices: <none>
>
> xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl -vvv
> finding all MD arrays via 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 : Wed Apr 30 16:14:26 2008
> State : clean
> Active Devices : 2
> Working Devices : 2
> Failed Devices : 0
> Spare Devices : 0
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9440
>
> 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
>
> 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 : Wed Apr 30 16:18:50 2008
> State : clean
> Active Devices : 2
> Working Devices : 2
> Failed Devices : 0
> Spare Devices : 0
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9440
>
> 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
>
> Removing /dev/sdb2 from /dev/md1:
>
> xenhost7:/usr/local/nagios/libexec/non-std# mdadm --manage /dev/md1 --fail
/dev/sdb2; \
>
>> mdadm --manage /dev/md1 --remove /dev/sdb2; \
>> date; \
>> ./check_md_raid.pl -vvv
>>
> mdadm: set /dev/sdb2 faulty in /dev/md1
> mdadm: hot removed /dev/sdb2
> mié abr 30 16:27:55 ART 2008
> finding all MD arrays via 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 : Wed Apr 30 16:27:55 2008
> State : active, degraded
> Active Devices : 1
> Working Devices : 1
> Failed Devices : 0
> Spare Devices : 0
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9445
>
> Number Major Minor RaidDevice State
> 0 8 2 0 active sync /dev/sda2
> 1 0 0 1 removed
> RAID CRITICAL: Array MD1 is in state "active, degraded" (raid1)
> 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
>
> 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 : Wed Apr 30 16:29:01 2008
> State : clean, degraded
> Active Devices : 1
> Working Devices : 1
> Failed Devices : 0
> Spare Devices : 0
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9458
>
> 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# date
> mié abr 30 16:31:28 ART 2008
> xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl -vvv
> finding all MD arrays via 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 : Wed Apr 30 16:31:27 2008
> State : clean, degraded
> Active Devices : 1
> Working Devices : 1
> Failed Devices : 0
> Spare Devices : 0
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9490
>
> 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
>
> Momentarily it shows CRITICAL state.
>
> Rebuilding:
>
> xenhost7:/usr/local/nagios/libexec/non-std# date
> mié abr 30 16:44:15 ART 2008
> xenhost7:/usr/local/nagios/libexec/non-std# mdadm /dev/md1 --add
/dev/sdb2; ./check_md_raid.pl -vvv
> mdadm: re-added /dev/sdb2
> finding all MD arrays via 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 : Wed Apr 30 16:50:27 2008
> State : clean, degraded, recovering
> Active Devices : 1
> Working Devices : 2
> Failed Devices : 0
> Spare Devices : 1
>
> Rebuild Status : 0% complete
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9626
>
> Number Major Minor RaidDevice State
> 0 8 2 0 active sync /dev/sda2
> 1 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
>
> 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 : Wed Apr 30 16:53:51 2008
> State : clean, degraded, recovering
> Active Devices : 1
> Working Devices : 2
> Failed Devices : 0
> Spare Devices : 1
>
> Rebuild Status : 74% complete
>
> UUID : 119bcdde:0ac351b2:d05e4382:e6def213
> Events : 0.9650
>
> 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
>
> It shows OK state during reconstruction.
>
> Thanks in advance for your response.
>
> Regards,
> Daniel
>
--
Hari Sekhon
-------------------------------------------------------------------------
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/javao
ne
_______________________________________________
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
-------------------------------------------------------------------------
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