HomeDedibox ServersHardwareHow to
Configure a DELL PERC H310 RAID controller
Jump toUpdate content

How to configure the DELL PERC H310 RAID controller

Reviewed on 25 September 2023 • Published on 16 July 2021
Requirements:

How to install the required packages

We recommend you use the packages provided by HWraid to configure your DELL PERC H310 RAID controller. Install them as following:

Debian 11 (Bullseye)

sudo echo "deb http://hwraid.le-vert.net/debian bullseye main" >> /etc/apt/sources.list
sudo apt update
sudo apt install sas2ircu-status

Debian 10 (Buster)

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

Debian 9 (Stretch)

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

Unbuntu 20.04 (Focal Fossa)

sudo echo "deb http://hwraid.le-vert.net/ubuntu focal main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status

Unbuntu 18.04 (Bionic Beaver)

sudo echo "deb http://hwraid.le-vert.net/ubuntu bionic main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status

Ubuntu 16.04 (Xenial Xerus)

sudo echo "deb http://hwraid.le-vert.net/ubuntu xenial main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status

How to check the status of the RAID controller

Run the following command to check the status of the DELL PERC H310 RAID controller:

megaclisas-status

An output like the following example displays:

-- Controller information --
-- 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

How to check the status of the disks

Run the following command to check the health status of the disks in your RAID:

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
See Also