HP 3PAR important commands and usage

SHBSystems Consultant
CERTIFIED EXPERT
Published:
I've been recently working with 3PAR arrays for quite some time and thought of put up some important commands and their usage. 3PAR beginers and administrators can make use of this

Below are some common commands for Storage provisioning
===================================================

Command to get the paths allocated in the servers
showvlun -v <vv name> -pathsum 
showvlun -v <vv name*>
showvlun -host <hostname> -pathsum

Open in new window

Command to get the detailed description of a host
showhost -desc <hostname*> 

Open in new window

Command to get the detailed host and port information
showhost -d <hostname*>

Open in new window

Command to display the host set with its members and the hostset in which the host is a member of
showhostset <Hostsetname*>
showhostset -host <Hostname>

Open in new window

Command to display the VV wwn and creation time
showvv -d <vv name*>

Open in new window

Command to display the VV capacity
showvv <vv name*>

Open in new window

Command to display VV set with description and members list and the VVset in which the matching VV is member of
showvvset -d <vv Setname>
showvvset -vv <vv name*>

Open in new window

Command to create host
createhost -persona <number> Host <wwn1> <wwn2>

Open in new window

Rename a host
setvv -name <newname> <oldname>

Open in new window

Create a Virtual Volume
createvv -pol zero_detect -tpvv AO_FC_NEW <lun name> 100g
createvv -cnt 3 <cpg name> <vv name> 100g

Open in new window

To add a virtual volume to a VVset
createvvset -add <vv set name> <vv name>

Open in new window

To extend a virtual volume. The below command will add 10 gb to the current space
growvv <vv name> 10g

Open in new window

Command to add a server to an existing host set                                     
createhostset -add <ExistingHostSet> <HosttoAdd>

Open in new window

Command to export a virtual volume to a host
createvlun <vv name> <HostLUNNumber> <hostname>

Open in new window

Command to create a super user
createuser -c <password> <username> all super

Open in new window


To unexport a VV from a host
removevlun –f <VVname> <HostLUNnumber> <hostname>
removevlun set:<VVSet> <LUN id> set:<hostset>

Open in new window




Now when it comes to troubleshooting 3PAR storage, here are some useful commands.
=======================================================================
Display new alerts in the system
showalert -n

Open in new window

Display the system model, serial number and details
showsys -d

Open in new window

Displays information about tasks
showtask -active -t <hours> -all -type <pattern with wild characters*>
showtask –d <TaskID>

Open in new window

Display the BIOS and OS version
showeeprom

Open in new window

Displays the system events occurred during the last 20 minutes
showeventlog -min 20

Open in new window

Displays the operating environment status for all nodes in the system
shownodeenv

Open in new window

Display the physical disk parameters
showpd -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>

Open in new window

Display the IP address of the array
shownet

Open in new window

To see the users connected to the array
showuserconn

Open in new window

Display the the FC port link status errors
showportlesb single 1:0:2
showportlesb hist -startt 01/20 6:3:4
showport -state node:slot:port

Open in new window

Displays the LD details
showld -d
showld -state -sortcol 3

Open in new window

Display the cage details
showcage -d <Cage number

Open in new window

>
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

Open in new window

To identify the disk with high response time and IOPS
statpd -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

Open in new window

Display the VLUN performance for non idle devices with R/W separated and the interval and in a timed loop
statvlun -iter 1  -d 30 -rw -ni -<host name>
statvv -iter 5 <vv name>  

Open in new window

Displays read/write (I/O)  and queue length statistics for ports
statport -iter 5
statport -nodes <node number>

Open in new window



Hope the above commands are some useful to you when managing and troubleshooting 3PAR storages
6
59,637 Views
SHBSystems Consultant
CERTIFIED EXPERT

Comments (8)

Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Commented:
Thanks for the sharing, is there any updated command for the Flash (SSD) array OS to 3.2.2  ?
SHBSystems Consultant
CERTIFIED EXPERT

Author

Commented:
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Commented:
Great, thanks man !
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Commented:
Hi SHB,

Does any of the command that you showed here can cause any outage or safe to be executed under maintenance mode during business hours?
SHBSystems Consultant
CERTIFIED EXPERT

Author

Commented:
@Senior IT System Engineer
Most of them are show commands. However the remove commands, if not used with intended parameters/details may cause outage

View More

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
You Belong in the World's Smartest IT Community