Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ddx): content review 2025-02-25 2/2 #4488

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5389,12 +5389,8 @@
"slug": "configure-dell-perc-h700"
},
{
"label": "Configure an HP Smart Array P410 RAID controller",
"slug": "configure-hp-smart-array-p410"
},
{
"label": "Configure an HP Smart Array P420 RAID controller",
"slug": "configure-hp-smart-array-p420"
"label": "Configure an HP Smart Array (P222 / P410 / P420) RAID controller",
"slug": "configure-hp-smart-array"
},
{
"label": "Configure the DELL PERC H200 RAID controller from the KVM",
Expand Down
169 changes: 91 additions & 78 deletions pages/dedibox-hardware/how-to/configure-dell-perc-h700.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,118 +5,131 @@ meta:
content:
h1: How to configure the DELL PERC H700/H710/H730/H730P RAID controller
paragraph: This page explains how to configure the DELL PERC H700/H710/H730/H730P RAID controller
tags: dell perc h700 h710 h730 h730p raid controller dedibox
tags: dell perc h700 h710 h730 h730p raid controller dedibox
dates:
validation: 2024-08-19
validation: 2025-02-25
posted: 2021-07-16
categories:
- dedibox-servers
---

<Macro id="requirements" />

- A Dedibox account logged into the [console](https://console.online.net)
- A [Dedibox dedicated server](https://www.scaleway.com/en/dedibox/) with a [DELL PERC H700/H710/H730/H730P](https://i.dell.com/sites/csdocuments/Shared-Content_data-Sheets_Documents/en/perc-technical-guidebook.pdf) RAID controller

## How to install the required packages

We recommend using the packages provided by [HWraid](http://hwraid.le-vert.net/) to configure your DELL PERC H700/H710/H730/H730P RAID controller. Install them as follows:

### Debian 12 (Bookworm)

* A Dedibox account logged into the [console](https://console.online.net)
* A [Dedibox dedicated server](https://www.scaleway.com/en/dedibox/) with a [DELL PERC H700/H710/H730/H730P](https://i.dell.com/sites/csdocuments/Shared-Content_data-Sheets_Documents/en/perc-technical-guidebook.pdf) RAID controller

## Checking the SMART status of a disk
To check the SMART status of a disk connected to a DELL PERC H700/H710/H730/H730P RAID controller, you can use the `smartctl` tool.

1. Install the required packages:
```sh
apt-get update && apt-get -y install megaclisas-status megacli && megaclisas-status
```
2. Run the following command to check the SMART status of all disks:
```sh
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
```
3. *(Optional)* To get more information about a specific disk, you can use the following command:
```sh
smartctl -d megaraid,0 -i /dev/sda
smartctl -d megaraid,1 -i /dev/sda
```

## Removing a logical volume and taking a disk out of a RAID configuration

To remove a logical volume and take a disk out of a RAID configuration, you can use the following commands:
```sh
sudo echo "deb http://hwraid.le-vert.net/debian bullseye main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status
megaclisas-status
megacli -PdList -a0
megacli -LdPdInfo -a0
megacli -AdpSetProp -EnableJBOD -0 -a0
megacli -CfgLdDel -Lall -Force -a0
megacli -CfgForeign -Clear -a0
```

### Debian 11 (bullseye)
After running these commands, you can verify that the disk is no longer part of the RAID configuration using:

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

### Debian 10 (Buster)
## Checking a SMART from a disk outside of a RAID volume

To check the SMART status of a disk that is not part of a RAID volume, you can use the same commands as before:
```sh
sudo echo "deb http://hwraid.le-vert.net/debian buster main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status
megaclisas-status
```
This will show you the status of all disks, including those that are not part of a RAID volume.

### Debian 9 (Stretch)
## Creating a RAID volume

```sh
sudo echo "deb http://hwraid.le-vert.net/debian stretch main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status
```
To create a RAID volume, you can use the following commands:

### Unbuntu 20.04 (Focal Fossa)

```sh
sudo echo "deb http://hwraid.le-vert.net/ubuntu focal main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status
```
- To create a RAID 0 volume with a single disk:
```sh
megacli -CfgLdAdd -r0 [32:1] -a0
```
- To create a RAID 1 volume with two disks:
```sh
megacli -CfgLdAdd -r1 [32:0,32:1] -a0
```
- After creating the RAID volume, you can verify the configuration using:
```sh
megaclisas-status
```

### Unbuntu 18.04 (Bionic Beaver)
## Adding a disk as a hot spare

To add a disk as a hot spare, you can use the following command:
```sh
sudo echo "deb http://hwraid.le-vert.net/ubuntu bionic main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status
megacli -PDHSP -Set -PhysDrv [32:X] -aY
```
<Message type="note">
Replace `X` with the slot number of the disk you want to add as a hot spare, and `Y` with the ID of the RAID volume.
</Message>

### Ubuntu 16.04 (Xenial Xerus)
## Putting a disk online/offline

To put a disk online or offline, you can use the following commands:
```sh
sudo echo "deb http://hwraid.le-vert.net/ubuntu xenial main" >> /etc/apt/sources.list
sudo apt update
sudo apt install megaclisas-status
megacli -PDOnline -PhysDrv [32:X] -a0
megacli -PDOffline -PhysDrv [32:X] -a0
```
<Message type="note">
Replace `X` with the slot number of the disk you want to put online or offline.
</Message>

## How to check the status of the RAID controller

Run the following command to check the status of the DELL PERC H700/H710/H730/H730P RAID controller:

```
megaclisas-status
```
## Removing a disk from an ongoing RAID configuration

An output like the following example displays:
```
-- Controller informations --
-- ID | Model
c0 | PERC H710

-- 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
To remove a disk from an ongoing RAID configuration, you can use the following commands:
```sh
megacli -PDOffline -PhysDrv [32:X] -a0
MegaCli -PDMarkMissing -PhysDrv [32:X] -a0
```
<Message type="note">
Replace `X` with the slot number of the disk you want to remove.
</Message>

## How to check the status of the disks

Run the following command to check the health status of the disks in your RAID:
## Checking RAID rebuilding progress

To check the progress of a RAID rebuild, you can use the following command:
```sh
megacli -pdrbld -showprog -physdrv[32:1] -a0
```
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
```

<Message type="note">
Note that you will need to replace `/dev/sda`with the correct disk that represents your Logical Volume, if you have multiple of them.
<Message type="tip">
A version with a progress bar is also available:
```sh
megacli -pdrbld -progdsply -physdrv[32:1] -a0
```
</Message>

## Lighting on/off the indicator light on a disk

To light on or off the indicator light on a disk, you can use the following commands:
```sh
MegaCli64 -PdLocate start -physdrv[32:1] -a0
MegaCli64 -PdLocate stop -physdrv[32:1] -a0
```
69 changes: 0 additions & 69 deletions pages/dedibox-hardware/how-to/configure-hp-smart-array-p410.mdx

This file was deleted.

69 changes: 0 additions & 69 deletions pages/dedibox-hardware/how-to/configure-hp-smart-array-p420.mdx

This file was deleted.

Loading
Loading