Skip to content

Commit 298e7e4

Browse files
committed
feat(ddx): update docs
1 parent be693ce commit 298e7e4

File tree

5 files changed

+370
-222
lines changed

5 files changed

+370
-222
lines changed

menu/navigation.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5389,12 +5389,8 @@
53895389
"slug": "configure-dell-perc-h700"
53905390
},
53915391
{
5392-
"label": "Configure an HP Smart Array P410 RAID controller",
5393-
"slug": "configure-hp-smart-array-p410"
5394-
},
5395-
{
5396-
"label": "Configure an HP Smart Array P420 RAID controller",
5397-
"slug": "configure-hp-smart-array-p420"
5392+
"label": "Configure an HP Smart Array (P222 / P410 / P420) RAID controller",
5393+
"slug": "configure-hp-smart-array"
53985394
},
53995395
{
54005396
"label": "Configure the DELL PERC H200 RAID controller from the KVM",

pages/dedibox-hardware/how-to/configure-dell-perc-h700.mdx

Lines changed: 91 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -5,118 +5,131 @@ meta:
55
content:
66
h1: How to configure the DELL PERC H700/H710/H730/H730P RAID controller
77
paragraph: This page explains how to configure the DELL PERC H700/H710/H730/H730P RAID controller
8-
tags: dell perc h700 h710 h730 h730p raid controller dedibox
8+
tags: dell perc h700 h710 h730 h730p raid controller dedibox
99
dates:
10-
validation: 2024-08-19
10+
validation: 2025-02-25
1111
posted: 2021-07-16
1212
categories:
1313
- dedibox-servers
1414
---
1515

1616
<Macro id="requirements" />
17-
18-
- A Dedibox account logged into the [console](https://console.online.net)
19-
- 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
20-
21-
## How to install the required packages
22-
23-
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:
24-
25-
### Debian 12 (Bookworm)
26-
17+
* A Dedibox account logged into the [console](https://console.online.net)
18+
* 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
19+
20+
## Checking the SMART status of a disk
21+
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.
22+
23+
1. Install the required packages:
24+
```sh
25+
apt-get update && apt-get -y install megaclisas-status megacli && megaclisas-status
26+
```
27+
2. Run the following command to check the SMART status of all disks:
28+
```sh
29+
DEVICE=/dev/sda
30+
for i in $(megacli -pdlist -a0 | grep Id | cut -d":" -f2); do
31+
echo "============================== $i =============================="
32+
smartctl -s on -a -d megaraid,${i} ${DEVICE} -T permissive
33+
done
34+
```
35+
3. *(Optional)* To get more information about a specific disk, you can use the following command:
36+
```sh
37+
smartctl -d megaraid,0 -i /dev/sda
38+
smartctl -d megaraid,1 -i /dev/sda
39+
```
40+
41+
## Removing a logical volume and taking a disk out of a RAID configuration
42+
43+
To remove a logical volume and take a disk out of a RAID configuration, you can use the following commands:
2744
```sh
28-
sudo echo "deb http://hwraid.le-vert.net/debian bullseye main" >> /etc/apt/sources.list
29-
sudo apt update
30-
sudo apt install megaclisas-status
45+
megaclisas-status
46+
megacli -PdList -a0
47+
megacli -LdPdInfo -a0
48+
megacli -AdpSetProp -EnableJBOD -0 -a0
49+
megacli -CfgLdDel -Lall -Force -a0
50+
megacli -CfgForeign -Clear -a0
3151
```
3252

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

3555
```sh
36-
sudo echo "deb http://hwraid.le-vert.net/debian bullseye main" >> /etc/apt/sources.list
37-
sudo apt update
38-
sudo apt install megaclisas-status
56+
megaclisas-status
3957
```
4058

41-
### Debian 10 (Buster)
59+
## Checking a SMART from a disk outside of a RAID volume
4260

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

49-
### Debian 9 (Stretch)
67+
## Creating a RAID volume
5068

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

57-
### Unbuntu 20.04 (Focal Fossa)
58-
59-
```sh
60-
sudo echo "deb http://hwraid.le-vert.net/ubuntu focal main" >> /etc/apt/sources.list
61-
sudo apt update
62-
sudo apt install megaclisas-status
63-
```
71+
- To create a RAID 0 volume with a single disk:
72+
```sh
73+
megacli -CfgLdAdd -r0 [32:1] -a0
74+
```
75+
- To create a RAID 1 volume with two disks:
76+
```sh
77+
megacli -CfgLdAdd -r1 [32:0,32:1] -a0
78+
```
79+
- After creating the RAID volume, you can verify the configuration using:
80+
```sh
81+
megaclisas-status
82+
```
6483

65-
### Unbuntu 18.04 (Bionic Beaver)
84+
## Adding a disk as a hot spare
6685

86+
To add a disk as a hot spare, you can use the following command:
6787
```sh
68-
sudo echo "deb http://hwraid.le-vert.net/ubuntu bionic main" >> /etc/apt/sources.list
69-
sudo apt update
70-
sudo apt install megaclisas-status
88+
megacli -PDHSP -Set -PhysDrv [32:X] -aY
7189
```
90+
<Message type="note">
91+
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.
92+
</Message>
7293

73-
### Ubuntu 16.04 (Xenial Xerus)
94+
## Putting a Disk online/offline
7495

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

81-
## How to check the status of the RAID controller
82-
83-
Run the following command to check the status of the DELL PERC H700/H710/H730/H730P RAID controller:
84-
85-
```
86-
megaclisas-status
87-
```
105+
## Removing a Disk from an ongoing RAID configuration
88106

89-
An output like the following example displays:
90-
```
91-
-- Controller informations --
92-
-- ID | Model
93-
c0 | PERC H710
94-
95-
-- Arrays informations --
96-
-- ID | Type | Size | Status | InProgress
97-
c0u0 | RAID0 | 2728G | Optimal | None
98-
c0u1 | RAID0 | 2728G | Optimal | None
99-
100-
-- Disks informations
101-
-- ID | Model | Status
102-
c0u0p0 | SEAGATE ST3000NM0023 GS0FZ1Y25K8M | Online, Spun Up
103-
c0u1p0 | SEAGATE ST3000NM0023 GS0FZ1Y25L0X | Online, Spun Up
107+
To remove a disk from an ongoing RAID configuration, you can use the following commands:
108+
```sh
109+
megacli -PDOffline -PhysDrv [32:X] -a0
110+
MegaCli -PDMarkMissing -PhysDrv [32:X] -a0
104111
```
112+
<Message type="note">
113+
Replace `X` with the slot number of the disk you want to remove.
114+
</Message>
105115

106-
## How to check the status of the disks
107-
108-
Run the following command to check the health status of the disks in your RAID:
116+
## Checking RAID rebuilding progress
109117

118+
To check the progress of a RAID rebuild, you can use the following command:
119+
```sh
120+
megacli -pdrbld -showprog -physdrv[32:1] -a0
110121
```
111-
DEVICE=/dev/sda
112-
for i in $(megacli -pdlist -a0 | grep Id | cut -d":" -f2); do
113-
echo "============================== $i =============================="
114-
smartctl -s on -a -d megaraid,${i} ${DEVICE} -T permissive
115-
done
116-
```
117-
118-
<Message type="note">
119-
Note that you will need to replace `/dev/sda`with the correct disk that represents your Logical Volume, if you have multiple of them.
122+
<Message type="tip">
123+
A version with a progress bar is also available:
124+
```sh
125+
megacli -pdrbld -progdsply -physdrv[32:1] -a0
126+
```
120127
</Message>
121128

129+
## Lighting on/off the indicator light on a disk
122130

131+
To light on or off the indicator light on a disk, you can use the following commands:
132+
```sh
133+
MegaCli64 -PdLocate start -physdrv[32:1] -a0
134+
MegaCli64 -PdLocate stop -physdrv[32:1] -a0
135+
```

pages/dedibox-hardware/how-to/configure-hp-smart-array-p410.mdx

Lines changed: 0 additions & 69 deletions
This file was deleted.

pages/dedibox-hardware/how-to/configure-hp-smart-array-p420.mdx

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)