<

HP 3PAR important commands and usage

Published on
46,289 Points
39,689 Views
6 Endorsements
Last Modified:
Approved
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
Comment
Author:SHB
6 Comments
 

Expert Comment

by:enri colo
good one - thanks!
0
 

Expert Comment

by:Naomi Goldberg
This is real helpful Shani, thanks! How has your overall experience been with 3PAR? Dave Samic, a user on our site, described it as, "the most amazing piece of hardware I have ever had my hands on, built, and used. " You can read his full review here. http://www.itcentralstation.com/product_reviews/hp-3par-flash-storage-review-31914-by-dave-samic?tid=thread-pr02-cm006-t015
2
 

Expert Comment

by:Vimal Parikh
Hi Team,

I have OS up gradation activity today, HP are saying that this activity can go online.

I am confused about the Multipathing...

How can i check that multipathing is done in 3PAR end correctly.

Pls. answer.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
LVL 9

Expert Comment

by:Senior IT System Engineer
Thanks for the sharing, is there any updated command for the Flash (SSD) array OS to 3.2.2  ?
0
 
LVL 10

Author Comment

by:SHB
1
 
LVL 9

Expert Comment

by:Senior IT System Engineer
Great, thanks man !
0

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Join & Write a Comment

This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month