From: www.itworld.com
December 4, 2008 —
Clearly one of the best features of disk arrays is that they can continue working even when a disk has failed. One of the problems, however, is that you might not notice when a disk fails, and thus, fail to replace it in a timely manner. Let's take a look at what you can do to facilitate monitoring your storage (StorEdge) arrays so that a bad disk doesn't escape your notice.
First, there are two ways to determine that a disk in a StorEdge array has failed. You might notice that an amber LED on the front of the particular drive has lit up or you can use the sccli commands to view the disks contained in your array and their status.
To start sccli, log into the server to which the array is attached and type "sccli". You should connect to the device and find yourself sitting at the sccli> prompt. To view the state of the disks on your array, type "show disks". In the display below, one of the disks is reported to be "BAD". The particular system was still running and still had one disk in "STAND-BY" mode, so the failure was not an emergency. Still, it's a good idea to ensure that all disks in the array are working properly to steer clear of failures from which your array would not be able to recover without intervention.
|
In this array, we can see that all the disks are 72 GB Fujitsu drives. Drives in the same chassis can be different sizes, but should all be running at the same speed.
Depending on the nature of a disk failure, your disk array could be working at reduced speed in order to compensate for the missing data.
The sccli (version 2.1.0) utility provides more than a hundred commands for reporting various aspects of your disk array and is a good tool to get to know. The "show-enclosure status" command, for example, will report on fans and voltages as well as disk channels. The "show led-status disk 2.5" command (where the digits in 2.5 represent the channel and disk IDs) will tell you if an LED is lit:
|
The "show media-check" command will give you an idea how the array is recovering after the insertion of a new disk. This process takes a long time and can be aborted if you want.
|
To collect information non-interactively, you might try putting commands like these in a script. These commands will show the disk output (like the example above) and the logical drives as well.
sccli <
show ld
exit
EOF
Of course, you're not going to want to see this output every day. What you will want to see is this output when there's a problem. You could incorporate these commands into a script that looks for the "BAD" indicator and sends you email only when an indication of a bad disk exists.
|
Don't let a disk failure go unnoticed just because your system can keep on running!