photo lineviral_1.png

Hpssacli Ascendence On Esxi As Well As Adding Novel Disk To Esxi Host

I ran into some snag when I tried to add together a novel HDD to my ESXi server. It was picking it upwards via vCenter together with I constitute that because I am using HP server hpssacli command was the exclusively (best way?) agency to add together this novel disk every bit RAID 0 (I had exactly 1 disk every bit my other 1 failed). As usual, since it took me to search unopen to Google, I but decided to document it for hereafter references, later all it’s exactly easier to read your ain instructions than individual elses. Enjoy I ran into some snag when I tried to add together a novel HDD to my ESXi server hpssacli command on ESXi together with adding novel Disk to ESXi host


Check ESXi Version


  # esxcli --version
Script 'esxcli' version: 5.5.0
#

Scan for novel HardDisk


  #  /opt/hp/hpssacli/bin/hpssacli rescan

Check condition for all Logical Disks


  # /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all demonstrate status

logicaldrive 1 (68.3 GB, 1): OK
logicaldrive ii (136.7 GB, 1): OK

Check Status of all Physical Disks


  # /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter rebuildpriority=high
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld iii add together drives=allunassigned
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld iii alter raid=1

Error: The logical drive is inwards a acre which prevents this performance from
       completing. Use the "show" command for to a greater extent than information.

# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all demonstrate status

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 72 GB): OK
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 72 GB): OK
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 146 GB): OK
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 146 GB): OK
physicaldrive 2I:1:5 (port 2I:box 1:bay 5, 500 GB): OK

Notice novel HDD 2I:1:5


Create novel Raid 0 Logical Disk using HDD 2I:1:5


  #
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 practise type=ld drives=2I:1:5 raid=0
#

Confirm novel disk creation past times checking condition of all Logical Disks


  # /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all demonstrate status

logicaldrive 1 (68.3 GB, 1): OK
logicaldrive ii (136.7 GB, 1): OK
logicaldrive iii (465.7 GB, 0): OK

Migrate RAID0 to RAID1 online amongst hpacucli


  # /opt/hp/hpssacli/bin/hpssacli rescan
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all demonstrate status

logicaldrive 1 (68.3 GB, 1): OK
logicaldrive ii (136.7 GB, 1): OK
logicaldrive iii (465.7 GB, 0): OK

# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all demonstrate status

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 72 GB): OK
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 72 GB): OK
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 146 GB): OK
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 146 GB): OK
physicaldrive 2I:1:5 (port 2I:box 1:bay 5, 500 GB): OK
physicaldrive 2I:1:6 (port 2I:box 1:bay 6, 500 GB): OK

# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter rebuildpriority=high
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld iii add together drives=allunassigned
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld iii alter raid=1

Error: The logical drive is inwards a acre which prevents this performance from
completing. Use the "show" command for to a greater extent than information.

# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all demonstrate status

logicaldrive 1 (68.3 GB, 1): OK
logicaldrive ii (136.7 GB, 1): OK
logicaldrive iii (465.7 GB, 0): Transforming, 0.24% complete

#

So actual sequence was:


Set rebuild priority to high:
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter rebuildpriority=high

Assigning of unassigned disks to logical drive:
(this activeness invoked synchronization of RAID amongst default raid type (of RAID0) - at that spot was exclusively 1 disk before, correct - it took nearly 1hr (146GB disks))
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld iii add together drives=allunassigned

After synchronization finished, I migrate the RAID0 to RAID1:
(this activeness took nearly 5hrs)
# /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld iii alter raid=1


Show configuration


/opt/hp/hpssacli/bin/hpssacli ctrl all demonstrate config

Controller status


/opt/hp/hpssacli/bin/hpssacli ctrl all demonstrate status

Show detailed controller data for all controllers


/opt/hp/hpssacli/bin/hpssacli ctrl all demonstrate detail

Show detailed controller data for controller inwards slot 0


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 demonstrate detail

Rescan for New Devices


/opt/hp/hpssacli/bin/hpssacli rescan

Physical disk status


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all demonstrate status

Show detailed physical disk information


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all demonstrate detail

Logical disk status


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all demonstrate status

View Detailed Logical Drive Status


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld ii show

Create New RAID 0 Logical Drive


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 practise type=ld drives=1I:1:2 raid=0

Create New RAID 1 Logical Drive


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 practise type=ld drives=1I:1:1,1I:1:2 raid=1

Create New RAID five Logical Drive


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 practise 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 ii delete

Add New Physical Drive to Logical Volume


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld ii add together drives=2I:1:6,2I:1:7

Add Spare Disks


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array all add together spares=2I:1:6,2I:1:7

Enable Drive Write Cache


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter dwc=enable

Disable Drive Write Cache


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter dwc=disable

Erase Physical Drive


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd 2I:1:6 alter erase

Turn on Blink Physical Disk LED


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld ii alter led=on

Turn off Blink Physical Disk LED


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld ii alter led=off

Modify smart array cache read together with write ratio (cacheratio=readratio/writeratio)


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter cacheratio=100/0

Enable smart array write cache when no battery is acquaint (No-Battery Write Cache option)


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 alter nbwc=enable

Disable smart array cache for certainly Logical Volume


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 alter arrayaccelerator=disable

Enable smart array cache for certainly Logical Volume


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 alter arrayaccelerator=enable

Enable SSD Smart Path


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a alter ssdsmartpath=enable

Disable SSD Smart Path


/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a alter ssdsmartpath=disable

Buat lebih berguna, kongsi:
close