Hp/3PAR

Aus SchnallIchNet
< Hp
Version vom 27. Januar 2021, 10:12 Uhr von Cbs (Diskussion | Beiträge) (Infos for HP (creating Case))

Wechseln zu: Navigation, Suche

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
...

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 If you want to move the VV regions only use:

tunevv usr_cpg FC_r6 -src_cpg FC_r5 VV12_AO


Assuming I want to move a virtual 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.

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.