VmWare/HP Raid

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
(Reference Material)
(Drive Cache)
 
(10 intermediate revisions by one user not shown)
Line 6: Line 6:
 
vib installation<br>
 
vib installation<br>
 
  esxcli software vib install -v [vib full path]
 
  esxcli software vib install -v [vib full path]
 +
i.e.
 +
esxcli software vib install -v /vmfs/volumes/RAID1_Disks3_4/ISOs/vib/hp_raid/hp-HPUtil-esxi5.0-bundle-1.6-19/hpssacli-1.60.17.0-5.0.0.vib
 
zip installation<br>
 
zip installation<br>
 
  esxcli software vib install -d [zip full path]
 
  esxcli software vib install -d [zip full path]
 +
 
==Installation Confirmation==
 
==Installation Confirmation==
 
Reboot required first.<br>
 
Reboot required first.<br>
Line 50: Line 53:
 
[http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/mostViewedDisplay?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_efb5c0793523e51970c8fa22b053ce01=wsrp-navigationalState%3DdocId%253Dmmr_kc-0110258-5%257CdocLocale%253Den_US&javax.portlet.tpst=efb5c0793523e51970c8fa22b053ce01&sp4ts.oid=316599&ac.admitted=1393292964741.876444892.492883150 public announcement hpacucli is replaced by hpssacli]<br>
 
[http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/mostViewedDisplay?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_efb5c0793523e51970c8fa22b053ce01=wsrp-navigationalState%3DdocId%253Dmmr_kc-0110258-5%257CdocLocale%253Den_US&javax.portlet.tpst=efb5c0793523e51970c8fa22b053ce01&sp4ts.oid=316599&ac.admitted=1393292964741.876444892.492883150 public announcement hpacucli is replaced by hpssacli]<br>
 
[https://h20565.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI&spf_p.rid_kbDocDisplay=docDisplayResURL&javax.portlet.begCacheTok=com.vignette.cachetoken&spf_p.rst_kbDocDisplay=wsrp-resourceState%3DdocId%253Demr_na-c03934591-1%257CdocLocale%253Den_US&javax.portlet.endCacheTok=com.vignette.cachetoken HP PDF]<br>
 
[https://h20565.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docDisplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI&spf_p.rid_kbDocDisplay=docDisplayResURL&javax.portlet.begCacheTok=com.vignette.cachetoken&spf_p.rst_kbDocDisplay=wsrp-resourceState%3DdocId%253Demr_na-c03934591-1%257CdocLocale%253Den_US&javax.portlet.endCacheTok=com.vignette.cachetoken HP PDF]<br>
 +
==Update P400/i Firmware==
 +
Visit: [http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=1157693&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253DMTX_bc1046a3541a46389b7fa2d755%257CswEnvOID%253D54%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken hp download site]
 +
Download: [http://ftp.hp.com/pub/softlib2/software1/sc-linux-fw-array/p1174979133/v78323/CP017698.scexe CP017698.scexe]
 +
<br>
 +
copy to /tmp/downloads/ on VmWare esxi 5.1 box.  I generally use SCP to copy from a linux system.<br>
 +
You may need to set the execution permission before you can use the script below.
 +
<nowiki>/tmp/downloads/ # chmod 755 ./CP017698.scexe</nowiki>
 +
launch
 +
/tmp/downloads/ # ./CP017698.scexe
 +
HP Enclosure ROM  Flash.
 +
Flash Engine Version: 2.06.10
 +
Copyright (c) 2006-2009 Hewlett-Packard Development Company L.P.
 +
 +
Device [P400]:  FW Ver [ Current:4.06 | Apply:7.24 ?]Flash this device? [NO, yes, quit] yes
 +
Preparing to flash devices on the array controller...
 +
Requesting flash - this could take up to 15 minutes...
 +
Flash complete.
 +
The array flash operation succeeded.
 +
Device [P400]:  FW Ver [ Current:4.06 | Apply:7.24 ?]Flash this device? [NO, yes, quit] yes
 +
Preparing to flash devices on the array controller...
 +
Requesting flash - this could take up to 15 minutes...
 +
Flash complete.
 +
The array flash operation succeeded.
 +
/tmp/downloads #
 +
Reboot
 +
/tmp/downloads # reboot
 +
Check to make sure it's updated
 +
/tmp/downloads # esxcli hpssacli cmd -q "controller all show config detail" | grep "Firmware Version"
 +
  Firmware Version: 7.24
 +
 +
==Write Cache==
 +
There are (2) types of write cache, (1) on the drives and (1) on the controller.  On the controller there is a read/write ratio which should be leaning more toward the write side, like a 25%/75% for optimal performance.<br>
 +
Optimally you need to have the battery installed on your cache module, however you can force it enabled, just keep in mind that anything on the cache during a power outage may result in corrupted file(s).
 +
====Controller Cache====
 +
=====Check Controller Cache Ratio=====
 +
~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Cache Ratio:"
 +
    Cache Ratio: 100% Read / 0% Write
 +
=====Enable no battery write cache=====
 +
~ # esxcli hpssacli cmd -q "controller slot=0 modify nobatterywritecache=enable forced"
 +
Check to make sure it's enabled:
 +
~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "No-Battery Write Cache:"
 +
    No-Battery Write Cache: Enabled
 +
 +
=====Change cache ratio=====
 +
Once you have enabled the write cache on the controller (either by installing the battery or forcing it with no battery), you can define the cache ratio.
 +
~ # esxcli hpssacli cmd -q "controller slot=0 modify cacheratio=25/75"
 +
Check the cache ratio again:<br>
 +
~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Cache Ratio:"
 +
    Cache Ratio: 25% Read / 75% Write
 +
 +
====Drive Cache====
 +
Verify it is disabled:
 +
~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Drive Write Cache"
 +
  Drive Write Cache: Disabled
 +
To enable drive cache, do the following:
 +
~ # esxcli hpssacli cmd -q "controller slot=0 modify dwc=enable forced"
 +
To Check and make sure it's enabled:
 +
~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Drive Write Cache"
 +
    Drive Write Cache: Enabled
 +
 +
==Misc==
 +
====Turn on/off Disk blink====
 +
Useful for determining which drive is which.
 +
<nowiki>
 +
~ # /opt/hp/hpssacli/bin/hpssacli ctrl slot=1 pd 1I:1:6 modify led=on
 +
~ # /opt/hp/hpssacli/bin/hpssacli ctrl slot=1 pd 1I:1:6 modify led=off</nowiki>

Latest revision as of 17:30, 17 August 2016

Contents

[edit] Download

google search =dl380 proliant smart array controller driver for vmware esxi 5.0
Proliant Smart Array Controller Driver - VIB file
HP ESXi Utilities Offline Bundle

[edit] Install

vib installation

esxcli software vib install -v [vib full path]
i.e.
esxcli software vib install -v /vmfs/volumes/RAID1_Disks3_4/ISOs/vib/hp_raid/hp-HPUtil-esxi5.0-bundle-1.6-19/hpssacli-1.60.17.0-5.0.0.vib

zip installation

esxcli software vib install -d [zip full path]

[edit] Installation Confirmation

Reboot required first.
Verify installation completed

~ # esxcli software vib list | grep Hewlett
hpssacli                       1.60.17.0-5.0.0.377826              Hewlett-Packard  PartnerSupported  2011-05-07  
scsi-hpsa                      5.0.0.58-1OEM.500.0.0.472560        Hewlett-Packard  VMwareCertified   2011-05-07

Test with query

/opt/hp/hpssacli/bin # esxcli hpssacli cmd -q "controller all show status "

Smart Array P400i in Slot 0 (Embedded)
   Controller Status: OK
   Cache Status: OK



/opt/hp/hpssacli/bin # esxcli hpssacli cmd -q "controller all show config "

Smart Array P400i in Slot 0 (Embedded)    (sn: PH79MV8506     )

   array A (SATA, Unused Space: 0  MB)


      logicaldrive 1 (465.7 GB, RAID 1, OK)

      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SATA, 500 GB, OK)
      physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SATA, 500 GB, OK)

   array B (SATA, Unused Space: 0  MB)


      logicaldrive 2 (1.4 TB, RAID 5, OK)

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

[edit] Reference Material

install/config (obsolete)
command cheat sheet (obsolete)
public announcement hpacucli is replaced by hpssacli
HP PDF

[edit] Update P400/i Firmware

Visit: hp download site Download: CP017698.scexe
copy to /tmp/downloads/ on VmWare esxi 5.1 box. I generally use SCP to copy from a linux system.
You may need to set the execution permission before you can use the script below.

/tmp/downloads/ # chmod 755 ./CP017698.scexe

launch

/tmp/downloads/ # ./CP017698.scexe
HP Enclosure ROM  Flash.
Flash Engine Version: 2.06.10
Copyright (c) 2006-2009 Hewlett-Packard Development Company L.P.

Device [P400]:  FW Ver [ Current:4.06 | Apply:7.24 ?]Flash this device? [NO, yes, quit] yes
Preparing to flash devices on the array controller...
Requesting flash - this could take up to 15 minutes...
Flash complete.
The array flash operation succeeded.
Device [P400]:  FW Ver [ Current:4.06 | Apply:7.24 ?]Flash this device? [NO, yes, quit] yes
Preparing to flash devices on the array controller...
Requesting flash - this could take up to 15 minutes...
Flash complete.
The array flash operation succeeded.
/tmp/downloads #

Reboot

/tmp/downloads # reboot

Check to make sure it's updated

/tmp/downloads # esxcli hpssacli cmd -q "controller all show config detail" | grep "Firmware Version"
  Firmware Version: 7.24

[edit] Write Cache

There are (2) types of write cache, (1) on the drives and (1) on the controller. On the controller there is a read/write ratio which should be leaning more toward the write side, like a 25%/75% for optimal performance.
Optimally you need to have the battery installed on your cache module, however you can force it enabled, just keep in mind that anything on the cache during a power outage may result in corrupted file(s).

[edit] Controller Cache

[edit] Check Controller Cache Ratio
~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Cache Ratio:"
   Cache Ratio: 100% Read / 0% Write
[edit] Enable no battery write cache
~ # esxcli hpssacli cmd -q "controller slot=0 modify nobatterywritecache=enable forced"

Check to make sure it's enabled:

~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "No-Battery Write Cache:"
   No-Battery Write Cache: Enabled
[edit] Change cache ratio

Once you have enabled the write cache on the controller (either by installing the battery or forcing it with no battery), you can define the cache ratio.

~ # esxcli hpssacli cmd -q "controller slot=0 modify cacheratio=25/75"

Check the cache ratio again:

~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Cache Ratio:"
   Cache Ratio: 25% Read / 75% Write

[edit] Drive Cache

Verify it is disabled:

~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Drive Write Cache"
  Drive Write Cache: Disabled

To enable drive cache, do the following:

~ # esxcli hpssacli cmd -q "controller slot=0 modify dwc=enable forced"

To Check and make sure it's enabled:

~ # esxcli hpssacli cmd -q "controller all show config detail" | grep "Drive Write Cache"
   Drive Write Cache: Enabled

[edit] Misc

[edit] Turn on/off Disk blink

Useful for determining which drive is which.

~ # /opt/hp/hpssacli/bin/hpssacli ctrl slot=1 pd 1I:1:6 modify led=on
~ # /opt/hp/hpssacli/bin/hpssacli ctrl slot=1 pd 1I:1:6 modify led=off
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox