Dell PERC H310 RAID controller

Configuration of PERC H310

We recommend to use the packages from the following site: HWraid.

Below you'll find how to use it on your distribution.

Debian Wheezy

echo "deb http://hwraid.le-vert.net/debian wheezy main" >> /etc/apt/sources.list
apt-get update
apt-get install megaclisas-status

Ubuntu

echo "deb http://hwraid.le-vert.net/ubuntu precise main" >> /etc/apt/sources.list
apt-get update  &&  apt-get install -y megaclisas-status

Check the status of your RAID

To check the status of your RAID in a server having a Dell PERC H310 controller, use the following command:

megaclisas-status
-- Controller informations --
-- ID | Model
c0 | PERC H310 Mini

-- Arrays informations --
-- ID | Type | Size | Status | InProgress
c0u0 | RAID0 | 2728G | Optimal | None
c0u1 | RAID0 | 2728G | Optimal | None

-- Disks informations
-- ID | Model | Status
c0u0p0 | SEAGATE ST3000NM0023 GS0FZ1Y25K8M | Online, Spun Up
c0u1p0 | SEAGATE ST3000NM0023 GS0FZ1Y25L0X | Online, Spun Up

Check the disk status

Type the following command in SSH to check the status of your disks:

DEVICE=/dev/sda
for i in $(megacli -pdlist -a0 | grep Id | cut -d":" -f2); do
     echo "============================== $i =============================="
    smartctl -s on -a -d megaraid,${i} ${DEVICE} -T permissive
done