Unsolved

This post is more than 5 years old

1 Rookie

 • 

19 Posts

5035

January 16th, 2006 23:00

Disc failure detection on a Perc 3/DC running linux?

I have a Poweredge 1550 with a Perc 3/DC Raid card (AMI Megaraid) that I intend to use in a colocation site.
The operating system is slackware linux and since it takes an hour to get to the site, I wan't to be able to detect hardware failures from a ssh shell.
I'm already running lm-sensors to check that fans are spinning and voltages within limits, very neat.

So, how can I detect a harddrive failure from a bash shell?
Is there any Megaraid parameter under /proc that will change value at the same time the lights go from green to amber and the annoying alarm sound starts?

23 Posts

January 17th, 2006 15:00

I haven't found a server of mine that has the 3/DC, but our 4/QC has a /proc/megaraid/hba2/diskdrives-ch[0-3] that list drive statuses for the array. Check that out and let me know if the 3/DC is similar.

ferb!

1 Rookie

 • 

19 Posts

January 17th, 2006 17:00

This is all I got under /proc/megaraid and its subdirectories


root@pe1550_1:~# cat /proc/megaraid/0/config
PERC 3/DC
Controller Type: 438/466/467/471/493
Controller Supports 40 Logical Drives
Controller / Driver uses 64 bit memory addressing
Base = f8808000, Irq = 25, Logical Drives = 1, Channels = 2
Version =1.74:3.27, DRAM = 128Mb
Controller Queue Depth = 254, Driver Queue Depth = 126

root@pe1550_1:~# cat /proc/megaraid/0/mailbox
Contents of Mail Box Structure
Fw Command = 0x00
Cmd Sequence = 0x16
No of Sectors= 0008
LBA = 0x2fb6ec6
DTA = 0xffffffff
Logical Drive= 0x00
No of SG Elmt= 0x01
Busy = 0
Status = 0x00

root@pe1550_1:~# cat /proc/megaraid/0/stat
Statistical Information for this controller
Interrupts Collected = 1366
INTERFACE DISABLED

root@pe1550_1:~# cat /proc/megaraid/0/status
TBD
No Events found!

Top