HP 3PAR important commands and usage
Thanks to: https://www.experts-exchange.com
==========================
Command to get the paths allocated in the servers
showvlun -v <vv name> -pathsum
showvlun -v <vv name*>
showvlun -host <hostname> -pathsum
Command to get the detailed description of a hostshowhost -desc <hostname*>
Command to get the detailed host and port informationshowhost -d <hostname*>
Command to display the host set with its members and the hostset in which the host is a member ofshowhostset <Hostsetname*>
showhostset -host <Hostname>
Command to display the VV wwn and creation timeshowvv -d <vv name*>
Command to display the VV capacityshowvv <vv name*>
Command to display VV set with description and members list and the VVset in which the matching VV is member ofshowvvset -d <vv Setname>
showvvset -vv <vv name*>
Command to create hostcreatehost -persona <number> Host <wwn1> <wwn2>
Rename a hostsetvv -name <newname> <oldname>
Create a Virtual Volumecreatevv -pol zero_detect -tpvv AO_FC_NEW <lun name> 100g
createvv -cnt 3 <cpg name> <vv name> 100g
To add a virtual volume to a VVsetcreatevvset -add <vv set name> <vv name>
To extend a virtual volume. The below command will add 10 gb to the current spacegrowvv <vv name> 10g
Command to add a server to an existing host set createhostset -add <ExistingHostSet> <HosttoAdd>
Command to export a virtual volume to a hostcreatevlun <vv name> <HostLUNNumber> <hostname>
Command to create a super usercreateuser -c <password> <username> all super
To unexport a VV from a host
removevlun –f <VVname> <HostLUNnumber> <hostname>
removevlun set:<VVSet> <LUN id> set:<hostset>
Now when it comes to troubleshooting 3PAR storage, here are some useful commands.
==========================
Display new alerts in the system
showalert -n
Display the system model, serial number and detailsshowsys -d
Displays information about tasksshowtask -active -t <hours> -all -type <pattern with wild characters*>
showtask –d <TaskID>
Display the BIOS and OS versionshoweeprom
Displays the system events occurred during the last 20 minutesshoweventlog -min 20
Displays the operating environment status for all nodes in the systemshownodeenv
Display the physical disk parametersshowpd -c <DiskID> - to see the chunklet details
showpd -i <DiskID> -- to see the disk details with wwn
showpd -s <DiskID> -- Show the disk detailed state
showpd -failed -degraded - To look failed physical disks
showpdch -fail ---- shows every Failed Chunklet in the system
showpdvv 12 | grep -i <vv name>
Display the IP address of the arrayshownet
To see the users connected to the arrayshowuserconn
Display the the FC port link status errorsshowportlesb single 1:0:2
showportlesb hist -startt 01/20 6:3:4
showport -state node:slot:port
Displays the LD detailsshowld -d
showld -state -sortcol 3
Display the cage detailsshowcage -d <Cage number
>To check delayed ack’s on 3Par firmware 2.3.1 -- Need to login as root (spdood)
Run several times to check to see if the numbers are increasing.
The command on 3.1.x OS version is statcmp
showmemval kernel7 none u32 6 delay_ack_count_per_dev --
kernel 7 is node 7
To identify the disk with high response time and IOPSstatpd -iter 3 -sortcol 9 -filt avgs,t,svct,100
statpd -w <WWN>
statpd -iter 3 -sortcol 9
statpd -p -devtype NL -sortcol 9 -d 5
statpd -iter 2 -sortcol 4 -filt avgs,t,iops,300
Display the VLUN performance for non idle devices with R/W separated and the interval and in a timed loopstatvlun -iter 1 -d 30 -rw -ni -<host name>
statvv -iter 5 <vv name>
Displays read/write (I/O) and queue length statistics for portsstatport -iter 5
statport -nodes <node number>
Comentarios
Publicar un comentario
Dime si la información de este blog te sirvio.