Cheat sheet for Hardware RAID health check - Megaraid, Adaptec, 3wareraid and HPraid.

Hi Folks,

In another post "raid type" I've mentioned how to find if the server is running with Software or Hardware RAID.

Here, we can go ahead and check the health of the Hardware RAID array in the server.

The first thing we need to detect is the controller in which the raid is configured and you can easily get it from the another post that I mentioned earlier. However, I'm providing it here again for your convenience.

1. Login to the server as the root user.
2. Execute the following command.

/sbin/lspci -vv | grep -i raid

3. This will show the raid controller running on the server. The different types of controller I've worked with includes

a. Megaraid which uses megacli
b. Adaptec which uses arcconf.
c. 3ware raid which uses tw_cli
d. HPraid which uses hpacucli.

How to check the Megaraid array health status?

The Megaraid is usually installed in the /opt/MegaRAID and you can execute the following command to verify the health of the array.

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | awk -f /etc/megacli.awk


How to check the health of the Adaptec hardware raid array health?

The arcconf is the command to query the adaptec raid controller health and you can grep the state as well as device to find the health from a large chunk of information displaying in the output.

/usr/StorMan/arcconf getconfig 1 | grep 'State\|Device'

How to check the health of the 3ware raid health status?

The command that we use to find the 3ware raid health is tw_cli and the syntax is shown below.

tw_cli info c0 u0

How to check the health of the HPraid array?

The binary used by hpraid is hpacucli.

/usr/sbin/hpacucli ctrl all show config









Comments

Popular posts from this blog

Logical volume vmxxxx_img is used by another device - Error on LVM removal

Open VZ cheat Sheet