Monitoring hardware RAID controllers with Solaris

I manage several V40Zs running Solaris 10, and these servers utilize the built-in hardware RAID controller. Siince the physical spindles are masked off from the operating system, using a tool like smartmontools to check disk health is not an option. Luckily Solaris shops with the raidctl utility, which provides insight into the status of both the controller and the disks that sit behind that controller:

$ raidctl

RAID    Volume  RAID            RAID            Disk
Volume  Type    Status          Disk            Status
------------------------------------------------------
c1t0d0  IM      OK              c1t0d0          OK
                                c1t1d0          OK

Since raidctl will display a disk fault when a drive fails, I run a shell wrapper from cron every fifteen minutes to check the RAID controller status. If the script detects a problem, it will send an email and generate a syslog entry to let folks know a problem exists. Viva la hardware RAID!

6 Comments

lestat  on August 28th, 2007

With Hardware RAID, can you see these disk physically in Open Boot Prompt using probe-scsi? I am only seeing Volume 0 instead of Target 1-4.

Joe  on September 24th, 2007

They changed the format in 08/07; any other ways to monitor without knowing the volume?

Joel Robison  on December 12th, 2008

Joe,

You can use ‘raidctl -S’, as of current that will list the status of everything. This IS listed in the man page:

# # raidctl -S

1 “LSI 1030″
c1t1d0 2 0.2.0 0.3.0 1 DEGRADED
0.2.0 GOOD
0.3.0 FAILED

Ben Jackson  on January 5th, 2009

Or even better use raidctl to determine the volume name as below:
# raidctl
Controller: 1
Volume:c1t0d0
Disk: 0.0.0
Disk: 0.1.0
Disk: 0.2.0
Disk: 0.3.0
Then use this identifier to run a raidctl -l as below:

# raidctl -l c1t0d0
Volume Size Stripe Status Cache RAID
Sub Size Level
Disk
—————————————————————-
c1t0d0 136.6G N/A OPTIMAL ON RAID1
0.0.0 136.6G GOOD
0.1.0 136.6G GOOD

notimpressed  on August 10th, 2009

You had to write a script to do something that is automatic on a desktop pc running windows. Yeah, SUN is sooooo waste of time.

Scooby  on January 10th, 2010

Anyone have a nagios nrpe script for the newer raidctl?

Leave a Comment