This step can be performed on Dedibox servers equipped with a DELL PERC H200 RAID controller and SATA hard disk drives.
How to configure the DELL PERC H200 RAID controller
This documentation explains how to configure the DELL PERC H200 RAID controller on a Scaleway Dedibox.
Before you startLink to this anchor
To complete the actions presented below, you must have:
- A Dedibox account logged into the console
- A Dedibox dedicated server with a DELL PERC H200 RAID controller
Checking the RAID controller statusLink to this anchor
To check the status of the DELL PERC H200 RAID controller, run the following command:
sas2ircu LIST
Output:
LSI Corporation SAS2 IR Configuration Utility.Version 5.00.00.00 (2010.02.09)Copyright (c) 2009 LSI Corporation. All rights reserved.Adapter Vendor Device SubSys SubSysIndex Type ID ID Pci Address Ven ID Dev ID----- ------------ ------ ------ ----------------- ------ ------0 SAS2008 1000h 72h 00h:01h:00h:00h 1028h 1f1dhSAS2IRCU: Utility Completed Successfully.
Checking the RAID statusLink to this anchor
To check the status of the hardware RAID on your Dell PERC H200, run the following command:
sas2ircu-status
Output:
-- Controller informations ---- ID | Modelc0 | SAS2008-- Arrays informations ---- ID | Type | Size | Statusc0u0 | RAID1 | 1907G | Okay (OKY)-- Disks informations-- ID | Model | Statusc0u0p0 | ST32000444SS (9WM3NAR0) | Optimal (OPT)c0u0p1 | ST32000444SS (9WM3MZL2) | Optimal (OPT)
Optimizing RAID performanceLink to this anchor
For maximum performance, you can activate the cache of your SATA disks. After creating a virtual disk, the cache of SATA disks is disabled by default. Restore maximum performance by re-enabling the cache using rescue mode.
- Boot your server into rescue mode using a 64-bit Ubuntu operating system.
- Log into the server using the provided SSH credentials and run the following commands to re-enable the disk cache:
sudo suecho 'deb http://linux.dell.com/repo/community/deb/latest /' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.listapt-get update && apt-get install -y --force-yes srvadmin-baseservice dataeng start/opt/dell/srvadmin/sbin/omconfig storage vdisk action=changepolicy controller=0 vdisk=0 diskcachepolicy=enabled
Advanced operationsLink to this anchor
Creating a RAID volumeLink to this anchor
To create a virtual drive in controller 0, including disks 0 and 1:
# to create a RAID0sas2ircu 0 create raid0 max 1:0 1:1# to create a RAID1sas2ircu 0 create raid1 max 1:0 1:1# to create a volume with a volume name (optional)sas2ircu 0 create $raidtype max 1:0 1:1 my-RAID0
Creating a hot spare driveLink to this anchor
To create a hot spare drive:
# example with drive 1:1sas2ircu 0 HOTSPARE 1:1
Deleting configurationLink to this anchor
Deleting the configuration is DANGEROUS and should be done with caution.
To delete controller 0 configuration:
sas2ircu 0 delete
Enabling an inactive volumeLink to this anchor
To enable an inactive volume:
sas2ircu 0 ACTIVATE $the-volume-id