15 01 2015
Become friendly with RAID CLI
We have a lot of RAID technologies and it’s difficult to automate creation, managment … Below we will find bases commandes for 3ware (tw-cli), Areca (cli), Hp (hpacucli), Dell (megacli).
requirement
Before starting, ensure to have the good repository in your sourcelist
Debian
Find your controller brand
3ware
Installation
Usage
Display controller list
Display details of controller 0
Display connected physical drives
Display raid volumes
Display volume 0 state
Display state of physical drive 3
Rescan drives connected on controller
Remove a drive
Start rebuild with the new drive
Help
Areca
Installation
Documentation
- http://www.areca.us/support/download/RaidCards/Documents/Manual_Spec/CLIManual.zip
- other CLI source : ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/
Usage
To run command you have to set the selected controller password. exemple with controller1 and password 0000
Display all RAID sets information
Delete a raid
Display physical drive connected on the controller
Create a RAID set with drive 1 and 2
Create a volume RAID
Display controller configuration
Change priority of disk in port 2 to speed up raid rebuild
Verify the rebuild progress
Display details of raid volume 2
To prevent removing the wrong drive. Active LED blinking on drive 19
Network configuration
Display current IP
Enable DHCP
Fixe Ip address, netmask and gateway
Snmp configuration
Configure comunity, email contact and host name
NTP configuration
Set Paris timezone
Update firmware
Driver
HP / Hpacucli
Installation
Usage
Useful to know : To expand RAID size, it requires that the controller board has a battery. Otherwise, the option is not available.
Informations
Display raid controllers and serial number
Display status of raid controllers
Display drive connected on the raid controller slot 0
Display details of controller 0 (cache …)
Display configuration of controller 0
Status of raid volumes
Display features of volume (logicaldrive) 1
Display features of a drive
Managment
Delete raid on controller 0
Create a RAID 1 volume
Expand volume size
If you controller haven’t cache, enable drive cache
Sets the array accelerator cache ratio for the controller
Convert RAID 0 to RAID 1
If you need, add new drive in your volume
Modify raid type to RAID1
Dell / Perc6
Installation
Documentation
- Cli manual : http://www.lsi.com/downloads/Public/MegaRAID%20SAS/MegaRAID%20SAS%209260-4i/MR_SAS_SW_UG.pdf
Usage
General stat
Display the number of drive attach on controller 0
Display the number of virtual drive on controller 0
Configuration
Clear / Delete raid configuration
Backup / restore configuration
Rebuild
Manage autorebuild
Manage rebuild rate
Physical drive
Status of drives
Display rebuild progress for a drive [ Enclosure:slot ]
BBU
BBU status
Manage array
Display available drives
Create RAID 6 [Enclosure:slot]
Create RAID 10 [Enclosure:slot]
Cache
Enable read cache
Enable drive cache
Enable write cache
Firmware
Find your product name
Download your firmware
- http://www.dell.com/support/home/hr/en/hrdhs1/Drivers/DriversDetails?driverId=5V9YM
On debian you have to
Firware update