HP Smart Array CLI commands on ESXi
From Mike's Wiki
Revision as of 18:13, 16 February 2015 by Mmek (Talk | contribs) (Created page with '==HP Smart Array CLI commands on ESXi== ===Show configuration=== <pre> /opt/hp/hpssacli/bin/hpssacli ctrl all show config </pre> ===Controller status=== <pre> /opt/hp/hps…')
Contents
- 1 HP Smart Array CLI commands on ESXi
- 1.1 Show configuration
- 1.2 Controller status
- 1.3 Show detailed controller information
- 1.4 Rescan for New Devices
- 1.5 Physical disk status
- 1.6 Show detailed physical disk information
- 1.7 Logical disk status
- 1.8 View Detailed Logical Drive Status
- 1.9 Create New RAID 0 Logical Drive
- 1.10 Create New RAID 1 Logical Drive
- 1.11 Create New RAID 5 Logical Drive
- 1.12 Delete Logical Drive
- 1.13 Add New Physical Drive to Logical Volume
- 1.14 Add Spare Disks
- 1.15 Enable Cache
- 1.16 Disable Cache
- 1.17 Erase Physical Drive
- 1.18 Turn on Blink Physical Disk LED
- 1.19 Turn off Blink Physical Disk LED
- 1.20 Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)
- 1.21 Disable smart array cache for certain Logical Volume
- 1.22 Enable smart array cache for certain Logical Volume
- 2 Enable SSD Smart Path==
HP Smart Array CLI commands on ESXi
Show configuration
/opt/hp/hpssacli/bin/hpssacli ctrl all show config
Controller status
/opt/hp/hpssacli/bin/hpssacli ctrl all show status
Show detailed controller information
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail
Rescan for New Devices
/opt/hp/hpssacli/bin/hpssacli rescan
Physical disk status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status
Show detailed physical disk information
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail
Logical disk status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status
View Detailed Logical Drive Status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show
Create New RAID 0 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0
Create New RAID 1 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1
Create New RAID 5 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5
Delete Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 delete
Add New Physical Drive to Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7
Add Spare Disks
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7
Enable Cache
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=enable
Disable Cache
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=disable
Erase Physical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd 2I:1:6 modify erase
Turn on Blink Physical Disk LED
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=on
Turn off Blink Physical Disk LED
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=off
Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify cacheratio=100/0
Disable smart array cache for certain Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable
Enable smart array cache for certain Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable
Enable SSD Smart Path==
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=enable
Disable SSD Smart Path
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=disable