Hp/3PAR
Inhaltsverzeichnis
Diag
Infos for HP (creating Case)
> showsys > showsys -d
(System Information inclusing serial)
> servicemag status
(shows if any drive was already evacuated)
> checkhealth pd
(do healthcheck of physical disks)
> showpd -s > showpd -state > showpd -s -failed > showpd -failed -degraded
(show the state of all drives)
> showpd -i
(show the drive inventory including type and serial)
> showport -sfp [-d]
(show the SFP ports and their status [detailed list])
showsys (System info)
Help page
showsys - Show system information. SYNTAX showsys [options] DESCRIPTION The showsys command displays the HP 3PAR Storage system properties such as a system name, serial number, and system capacity information. AUTHORITY Any role in the system OPTIONS -d Specifies that more detailed information about the system is displayed. -param Specifies that the system parameters are displayed. -fan Displays the system fan information. -space Displays the system capacity information in MB (1024^2 bytes). -domainspace Displays the system capacity information broken down by domain in MB (1024^2 bytes). -desc Displays the system descriptor properties. -devtype FC|NL|SSD Displays the system capacity information where the disks must have a device type string matching the specified device type; either Fast Class (FC), Nearline (NL), Solid State Drive (SSD). This option can only be issued with the -space option. SPECIFIERS None. NOTES See setsys command for information on setting the threshold parameters indicated by the Value column in the output for showsys -param. In the output for showsys -param, (from configured settings) indicates that the system parameters displayed have been successfully read from the Persistent Repository (PR). If the PR is not available (most likely because of problems with the admin volume), the output reads (from default settings) and the values displayed would indicate the system defaults. When (from default settings) is displayed, system parameters cannot be updated. If the VVRetentionTimeMax is 0, then the volume retention time in the system is disabled. For the system capacity information, there might be some overlaps among Volumes, System, and Failed Capacities. EXAMPLES The following example displays the system descriptor properties of a HP 3PAR storage system: cli% showsys -desc ------------System s36------------ System Name : s36 Location : Your Facility Address Owner : Your Company Name Contact : Joe Admin Comment : Your Notes The following example displays more detailed (-d option) information about the same storage server: cli% showsys -d ------------General------------- System Name : S424 System Model : HP_3PAR 7200 Serial Number : 1600424 System ID : 424 Number of Nodes : 2 Master Node : 0 Nodes Online : 0,1 Nodes in Cluster : 0,1 -----System Capacity (MB)----- Total Capacity : 6277120 Allocated Capacity : 687872 Free Capacity : 5589248 Failed Capacity : 0 ---------System Fan--------- Primary Node ID : 0 Secondary Node ID : 1 State : OK LED : Green Speed : Normal Primary Node ID : 1 Secondary Node ID : 0 State : OK LED : Green Speed : Normal --------System Descriptors-------- Location : Owner : Contact : Comment :
Space details
> showsys -space
Chech Hardware
> admithw
Check Hardware and try to fix issues. Initialize new disks
IOPS Stats
statvlun -ni -iter 1 -hostsum
Output:
14:09:22 10/13/2018 r/w I/O per second KBytes per sec Svt ms IOSz KB Hostname Cur Avg Max Cur Avg Max Cur Avg Cur Avg Qlen FF1EPPINFVMH02 t 105 105 105 2278 2278 2278 0.42 0.42 21.7 21.7 0 ...
Tuning
Move VVs between CPGs
Move volume to another CPG using tunevv
Balance PDs
If allocation of physical diskspace is not in balance through disks available.
Dry-Run:
tunenodech -dr -debug -f -maxchunk 8 -chunkpct 5 -node 0 -devtype FC -fulldiskpct 1 -chonly
NO Dry-Run:
tunenodech -waittask -debug -f -maxchunk 8 -chunkpct 5 -node 0 -devtype FC -fulldiskpct 1 -chonly
![]() |
Do this for all Nodes in your 3PAR environment after each other!! Just replace '-node 0' by '-node N' |
CPGs
Show CPGs
% showcpg ----Volumes---- -Usage- -------------(MiB)------------- Id Name Warn% VVs TPVVs TDVVs Usr Snp Base Snp Free Total 0 FC_r1 - 0 0 0 0 0 0 0 0 0 1 FC_r5 - 35 35 0 35 34 3774976 14848 193536 3983360 2 FC_r6 - 19 19 0 19 0 27048320 0 478208 27526528 3 FC_Snap - 20 20 0 0 20 0 138752 51712 190464 5 SSD_AO_R6 - 0 0 0 0 0 4998656 0 2560 5001216 4 SSD_r5 - 0 0 0 0 0 2070144 0 37248 2107392 -------------------------------------------------------------------------- 6 total 54 54 37892096 153600 763264 38808960
Show the Data Grows Values and Config:
% showcpg -sdg -----(MiB)------ Id Name Warn Limit Grow Args 0 FC_r1 - - 32768 -ssz 2 -ha cage -t r1 -p -devtype FC 1 FC_r5 - - 32768 -ssz 6 -ha mag -t r5 -p -devtype FC 2 FC_r6 - - 32768 -t r6 -ha mag -ssz 6 -ss 128 -p -devtype FC 3 FC_Snap - - 32768 -t r6 -ha mag -ssz 8 -ss 64 -ch first -p -devtype FC 5 SSD_AO_R6 - - 8192 -t r5 -ha mag -ssz 4 -ss 64 -ch first -p -devtype SSD 4 SSD_r5 - - 8192 -t r5 -ha mag -ss 64 -p -devtype SSD
Show the Admin Grows Values and Config:
% showcpg -sag -----(MiB)----- Id Name Warn Limit Grow Args 0 FC_r1 - - 8192 -p -devtype FC -ha cage -p -devtype FC 1 FC_r5 - - 8192 -p -devtype FC -p -devtype FC 2 FC_r6 - - 8192 -ha mag -p -devtype FC 3 FC_Snap - - 8192 -ha mag -p -devtype FC 5 SSD_AO_R6 - - 8192 -ha mag -p -devtype SSD 4 SSD_r5 - - 8192 -ha mag -p -devtype SSD
Create CPG
% createcpg -t r6 -ha mag -sdgs 32G -ssz 8 -ss 128 -p -devtype FC <CPG_Name>
-t RAID Level
-ha HA Settings (port|cage|mag)
-sdgs Data-Growth Size
-ssz size_number_chunklets: 2 for RAID-1, 4 for RAID-5, and 8 for RAID-6
-p define a pattern / -devtype define a pattern for DevTypes to match
Virtual Volumes
yadda
Show Virtual Volumes
showvv -listcols
showvv -showcols Name,VV_WWN,SnpCPG
Create Virtual Volume
createvv -tpvv -pol zero_detect -snp_cpg FC_Snap FC_r6 FF3_VMW_AO_03 4194304
-Tpvv Thin provisions Virtual Volume -pol zero_detect I believe it is needed to thin luns -snp_cfg FC_Snap Where the writes will go for snapshots. HP refers to this as snap or copy space FF3_VMW_AO_03 Name: this is the lun name 4194304 Size: This is the number to 4tb 8388608 Size: 8tb
Move volume to another CPG using tunevv
Assuming I want to move a virtual volume (VV12_AO) to another new CPG (FC_r6):
tunevv usr_cpg FC_r6 VV12_AO
The logical disks used for user space are moved to CPG FC_r6 for virtual volume VV12_AO
Keep in mind that this will destroy your current AO. If the Volume has been moved to some Tier0 storage, let's say SSD disks,
the AO optimization for the volume gets lost and it will have to wait for the next AO runs.
If you want to move the VV regions that reside on Tier1 storage only, use:
tunevv usr_cpg FC_r6 -src_cpg FC_r5 VV12_AO
Assuming I want to move a volume (VV12_AO) to another new SnapCPG (FC_Snap):
tunevv snp_cpg FC_Snap VV12_AO
Unfortunatly you will have to run both commands seperatly. As of the documentation they can't be combined.
AO Config
createaocfg -t0cpg SSD_AO_R6 -t1cpg FC_r6 -mode Performance -t0min 8T AO_CFG_FCR6 setaocfg -t0min 10T AO_CFG_FCR6 createsched "startao -btsecs -12h -etsecs -30m -maxrunh 12 -compact auto AO_CFG_FCR6" "0 18 * * 1-5" Task_AO-Run_FCR6 startao -btsecs -6h -etsecs -1m -maxrunh 1 -compact auto AO_CFG_FCR6
Auth LDAP
yadda
Set LDAP auth
setauthparam -f -clearall setauthparam -f ldap-server 10.30.111.112 setauthparam -f ldap-server-hn STGWPVEURDC02.<DOMAIN>.<DOMAIN>.com setauthparam -f kerberos-realm <DOMAIN>.<DOMAIN>.com setauthparam -f binding sasl setauthparam -f sasl-mechanism GSSAPI setauthparam -f accounts-dn "OU=PrivilegedAccounts,OU=Accounts,DC=<DOMAIN>,DC=<DOMAIN>,DC=com" setauthparam -f account-obj user setauthparam -f account-name-attr sAMAccountName setauthparam -f memberof-attr memberOf setauthparam -f super-map "CN=SAN_Admins,OU=PrivilegedRoles,OU=Groups,DC=<DOMAIN>,DC=<DOMAIN>,DC=com" setauthparam -f browse-map "CN=SAN_ReadOnly,OU=PrivilegedRoles,OU=Groups,DC=<DOMAIN>,DC=<DOMAIN>,DC=com"
Check that it works for you:
checkpassword <LDAP-Username> ... ... user <LDAP-Username> is authenticated and authorized
Get LDAP auth config
% showauthparam Param --------------------------------------Value--------------------------------------- ldap-server 10.30.111.106 ldap-server-hn DC05.<DOMAIN>.<TLD> kerberos-realm <DOMAIN>.<TLD> binding sasl sasl-mechanism GSSAPI [...]
Network
yadda
get network settings
% shownet IP Address Netmask/PrefixLen Nodes Active Speed Duplex AutoNeg Status 10.11.12.100 255.255.255.0 01 0 1000 Full Yes Active Default route : 10.11.12.1 NTP server : 10.30.111.111 DNS server : 10.11.12.42
set DNS server
Add:
setnet dns -add 10.30.111.111
Remove:
setnet dns -remove 10.30.111.111
re-new expired certificates
Show the actual cert:
% showcert Service Commonname Type Enddate Fingerprint unified-server* HP_3PAR 8200-CZ3740W5MD cert Oct 16 15:36:12 2020 GMT bdae8ff911a32e50a65a81dbae656b46112fa992
Renew the cert:
createcert unified-server -selfsigned -CN 3par.yadda.com -SAN DNS:3par-alias.yadda.com,DNS:10.12.13.14 The following services will be restarted if currently running: cim: manages communications with SMI-S clients wsapi: Web Services API server Continue creating self-signed certificate (yes/no)? yes Self-signed certificate created. cimserver restarted The Web Services API server stopped successfully. The Web Services API Server will start shortly.
Done!
Full Command List
HP 3PAR CLI command list showalert - show status of system alerts showauthparam - show authentication parameters showbattery - show battery status information showblock - show block mapping info for vvs, lds, pds showcage - show disk cage information showcim - show the CIM server information showclienv - show CLI environment parameters showcpg - show Common Provisioning Groups (CPGs) showdate - show date and time on all system nodes showdomain - show domains in the system showdomainset - show sets of domains in the system showeeprom - show node eeprom information showeventlog - show event logs showfirmwaredb - show current database of firmware levels showhost - show host and host path information showhostset - show sets of hosts in the system showinventory - show hardware inventory showiscsisession - show iscsi sessions showld - show logical disks (LDs) in the system showldch - show LD to PD chunklet mapping showldmap - show LD to VV mapping showlicense - show installed license key shownet - show network configuration and status shownode - show node and its component information shownodeenv - show node environmental status (voltages,temperatures) showpatch - show what patches have been applied to the system showpd - show physical disks (PDs) in the system showpdata - show preserved data status showpdch - show status of selected chunklets of physical disks showpdvv - show PD to VV mapping showport - show Fibre Channel and iSCSI ports in the system showportarp - show ARP table for ports showportdev - show detailed information about devices on a Fibre Channel port showportisns - show iSNS host information for ports showportlesb - show Link Error Status Block information about devices on Fibre Channel port showrcopy - show remote copy configuration information showrctransport - show information about end-to-end transport for remote copy showrsv - show information about reservation and registration of VLUNs connected on a Fibre Channel port showsched - show scheduled tasks in the system showsnmppw - shows SNMP access passwords showsnmpmgr - show SNMP trap managers showspace - show estimated free space showspare - show information about spare and relocated chunklets showsshkey - show ssh public keys authorized by the current user showsys - show system information (system name, serial number etc.) showsysmgr - show system manager startup state showtarget - show unrecognized targets showtask - show information about tasks showtemplate - show templates showtoc - show system Table of Contents (TOC) summary showtocgen - show system Table of Contents (TOC) generation number showuser - show user accounts and SSH keys showuseracl - show user access control list showuserconn - show user connections showversion - show software versions showvlun - show virtual LUNs (VLUNs) in the system showvv - show virtual volumes (VVs) in the system showvvmap - show VV to LD mapping showvvpd - show VV distribution across PDs showvvset - show sets of VVs in the system checkhealth - perform checks to determine overall state of the system checkpassword - display authentication and authorization details checkport - perform loopback test on fc ports checkpd - perform surface scan or diagnostics on physical disks checkld - perform validity checks of data on logical disks checkvv - perform validity checks of virtual volume administrative information.