From f515b0267ade6228501ed95c6a952fe6e5bfdf68 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 1 Jul 2009 23:02:10 +0200 Subject: [PATCH] more cleanups in the freebsd-raid-monitoring article Signed-off-by: Nico Schottelius --- docs/freebsd-raid-monitoring.mdwn | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/freebsd-raid-monitoring.mdwn b/docs/freebsd-raid-monitoring.mdwn index efe1f036..47ef2ab2 100644 --- a/docs/freebsd-raid-monitoring.mdwn +++ b/docs/freebsd-raid-monitoring.mdwn @@ -12,10 +12,13 @@ monitor it actively). ### Status of this document This document was initially written on the 2nd of August 2007. -It was last updated on the 11th of February 2009 and -migrated to [www.nico.schottelius.org](http://www.nico.schottelius.org) +It was migrated to +[www.nico.schottelius.org](http://www.nico.schottelius.org) on the 12th of May 2009. +You can have a look into [[git|about/websites]], to see when it was +last updated. + ## List of raid systems and how to monitor them ### FreeBSD gmirror software raid @@ -43,14 +46,18 @@ And the one that is called by cron:

mpt based devices can be monitored under Linux with the kernel module "mptctl" and the FOSS tool "mpt-status". There seems to be no support under FreeBSD available currently. For more information about mpt have a look at mpt(4).

### ciss -Known tools:
- -### + +Known tools: + + * camcontrol + * hpacucli +
This driver is used for most HP / Compaq controllers and is (afaik) found in almost all modern SAS/SATA systems provided by HP. As described in http://www.unixadmintalk.com/f41/monitoring-raid-arrays-51889/, you can monitor it via camcontrol:

# camcontrol inquiry da0
pass0: <COMPAQ RAID 1 VOLUME OK> Fixed Direct Access SCSI-0 device
pass0: 135.168MB/s transfers

(This is untested by me, just found it on the net). On http://lists.freebsd.org/pipermail/freebsd-proliant/2006-October/000169.html I also found the relevant strings to look for:

During normal operation of the raid:
# camcontrol inquiry da0 -D
pass0: <COMPAQ RAID 1 VOLUME OK> Fixed Direct Access SCSI-0 device

After removing one of the raid member disks:
# camcontrol inquiry da0 -D
pass0: <COMPAQ RAID 1 VOLUME inte> Fixed Direct Access SCSI-0 device

After re-inserting the raid member disk:
# camcontrol inquiry da0 -D
pass0: <COMPAQ RAID 1 VOLUME reco> Fixed Direct Access SCSI-0 device

And about 45 minutes later:
# camcontrol inquiry da0 -D
pass0: <COMPAQ RAID 1 VOLUME OK> Fixed Direct Access SCSI-0 device

You could also use hpacucli, which can be found at http://people.freebsd.org/~jcagle/. I have no experience with it. So if you have, you can send report or scripts to monitor it to me, so I can include it here (the hint to it was send by Jaimie Sirovich.

+ ### 3ware raid: twa/twe

Install and configure sysutils/3dm. This installs a daemon that provides a webinterface and which is also capable to notify you via e-mail if something happens. This is perhaps the easiest way of monitoring raid in FreeBSD. The other possibility to monitor 3ware raids is via tw_cli.