Configuring the HP Smart Array (P222/P410/P420)Controller
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 an HP Smart Array P222, P410 or P420 RAID controller
Checking the RAID statusLink to this anchor
-
Log into your server using SSH.
-
Run the following command to display the RAID status:
ssacli ctrl all show configThis command will show you the current configuration of the RAID controller, including the logical and physical drives.
Example output:
Smart Array P410 in Slot 1 (sn: PACCRID111003N3)array A (SATA, Unused Space: 0 MB)logicaldrive 1 (1.8 TB, RAID 1, OK)physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA, 2 TB, OK)physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA, 2 TB, OK)
Checking the SMART values of the disksLink to this anchor
- Run the following commands to display the SMART values of the disks:
Replacesmartctl -a -d cciss,0 /dev/sg0smartctl -a -d cciss,1 /dev/sg0
/dev/sg0
with the appropriate device name for your system. You can find the correct device name by runningls /dev/sg*
.
Checking the battery state of an HP Smart Array RAID controller with cache and batteryLink to this anchor
- Run the following command to check the battery state of an HP Smart Array P410 RAID controller:
Look for thessacli ctrl all show config detail
Battery/Capacitor Status
line in the output to determine the battery state. Example output:Total Cache Size: 256 MBCache Backup Power Source: BatteriesBattery/Capacitor Count: 1Battery/Capacitor Status: OK
Viewing controller informationLink to this anchor
Show controller infoLink to this anchor
Run the following command to show summarized information about the controller:
ssacli ctrl all show config
Example output:
Smart Array P420 in Slot 2 (sn: PDKRH0ARH4N3GJ)Internal Drive Cage at Port 1I, Box 1, OKPort Name: 1IPort Name: 2IArray A (SAS, Unused Space: 0 MB)logicaldrive 1 (2.73 TB, RAID 1, OK)physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 3 TB, OK)physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 3 TB, OK)Array B (Solid State SATA, Unused Space: 3 MB)logicaldrive 2 (111.76 GB, RAID 1, OK)physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA SSD, 120 GB, OK)physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA SSD, 120 GB, OK)SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380 (WWID: 5001438026863C7F)
Show controller detailsLink to this anchor
Run the following command to show detailed information about the controller:
ssacli ctrl all show config detail
Example output:
Smart Array P410 in Slot 1Bus Interface: PCISlot: 1Serial Number: PACCRID1229023HCache Serial Number: PACCQID12470DCYController Status: OKHardware Revision: CFirmware Version: 6.64-0Rebuild Priority: MediumExpand Priority: MediumSurface Scan Delay: 3 secsSurface Scan Mode: IdleParallel Surface Scan Supported: NoQueue Depth: AutomaticMonitor and Performance Delay: 60 minElevator Sort: EnabledDegraded Performance Optimization: DisabledWait for Cache Room: DisabledSurface Analysis Inconsistency Notification: DisabledPost Prompt Timeout: 15 secsCache Board Present: TrueCache Status: OKCache Ratio: 25% Read / 75% WriteDrive Write Cache: EnabledTotal Cache Size: 0.2Total Cache Memory Available: 0.1No-Battery Write Cache: DisabledCache Backup Power Source: BatteriesBattery/Capacitor Count: 1Battery/Capacitor Status: OKSATA NCQ Supported: TrueNumber of Ports: 2 Internal onlyEncryption: Not SetDriver Name: hpsaDriver Version: 3.4.20Driver Supports SSD Smart Path: TruePCI Address (Domain:Bus:Device.Function): 0000:04:00.0Port Max Phy Rate Limiting Supported: FalseHost Serial Number: CZ33067W8ESanitize Erase Supported: FalsePrimary Boot Volume: NoneSecondary Boot Volume: None
Viewing physical drivesLink to this anchor
Show physical drivesLink to this anchor
To view the status of all physical drives, you can use the following command:
slot=$(ssacli ctrl all show|grep Slot|awk -F 'Slot' '{print $2}'|awk '{print $1}')hpssacli ctrl slot="$slot" pd all show status
Example output:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 3 TB): OKphysicaldrive 1I:1:2 (port 1I:box 1:bay 2, 3 TB): OKphysicaldrive 1I:1:3 (port 1I:box 1:bay 3, 120 GB): OKphysicaldrive 1I:1:4 (port 1I:box 1:bay 4, 120 GB): OK
Show physical drives detailsLink to this anchor
To view detailed information about all physical drives, use the following command:
slot=$(ssacli ctrl all show|grep Slot|awk -F 'Slot' '{print $2}'|awk '{print $1}')hpssacli ctrl slot="$slot" pd all show detail
Example output:
hpssacli ctrl slot="$slot" pd all show detailSmart Array P410 in Slot 1Array Aphysicaldrive 1I:1:1Port: 1IBox: 1Bay: 1Status: OKDrive Type: Data DriveInterface Type: SATASize: 2 TBDrive exposed to OS: FalseLogical/Physical Block Size: 512/4096Rotational Speed: 7200Firmware Revision: FP4BSerial Number: 61H7K9SQFJSAWWID: 3000000000000000Model: ATA TOSHIBA MG04ACA2SATA NCQ Capable: TrueSATA NCQ Enabled: TrueCurrent Temperature (C): 26Maximum Temperature (C): 40PHY Count: 1PHY Transfer Rate: 3.0GbpsSanitize Erase Supported: FalseShingled Magnetic Recording Support: Nonephysicaldrive 1I:1:2Port: 1IBox: 1Bay: 2Status: OKDrive Type: Data DriveInterface Type: SATASize: 2 TBDrive exposed to OS: FalseLogical/Physical Block Size: 512/4096Rotational Speed: 7200Firmware Revision: FP3BSerial Number: 77VFK22RFJSAWWID: 3000000000000001Model: ATA TOSHIBA MG04ACA2SATA NCQ Capable: TrueSATA NCQ Enabled: TrueCurrent Temperature (C): 26Maximum Temperature (C): 38PHY Count: 1PHY Transfer Rate: 3.0GbpsSanitize Erase Supported: FalseShingled Magnetic Recording Support: None
Viewing logical volumesLink to this anchor
Show logical volume(s)Link to this anchor
slot=$(ssacli ctrl all show |grep Slot | awk -F 'Slot' '{print $2}' | awk '{print $1}')ssacli ctrl slot=$slot ld all show
Show logical volume(s) detailsLink to this anchor
slot=$(ssacli ctrl all show |grep Slot | awk -F 'Slot' '{print $2}' | awk '{print $1}')ssacli ctrl slot=$slot ld all show detail
Example output:
Smart Array P410 in Slot 1Array ALogical Drive: 1Size: 1.82 TBFault Tolerance: 1Heads: 255Sectors Per Track: 63Cylinders: 65535Strip Size: 64 KBFull Stripe Size: 64 KBStatus: OKUnrecoverable Media Errors: NoneCaching: EnabledUnique Identifier: 600508B1001CF1E14A9E048C72FB2438Disk Name: /dev/sdaMount Points: NoneLogical Drive Label: 01C4F2D4PACCRID1229023HFBE4Mirror Group 1:physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 2 TB, OK)Mirror Group 2:physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 2 TB, OK)Drive Type: DataLD Acceleration Method: Controller Cache
Viewing LV, controller, cache, and battery statusLink to this anchor
hpssacli ctrl all show detail|grep -E 'Status|Cache Size'
Deleting a logical volumeLink to this anchor
To delete logical drive 1 in controller 1:
ssacli ctrl slot=1 ld 1 delete
Creating a logical volumeLink to this anchor
To add a RAID0 logical drive in controller 1, including disks 1 and 2:
ssacli ctrl slot=1 create type=ld drives=1I:1:1,1I:1:2 raid=0
Viewing rebuild priorityLink to this anchor
ssacli ctrl slot=$slot modify rp=?