Powerpath CLI Commands
Command Description
powermt àManages a PowerPath environment
powercf àConfigures PowerPath devices
emcpreg -install àManages PowerPath license registration
emcpminor àChecks for free minor numbers
emcpupgrade à Converts PowerPath configuration files
powermt command
Command Description
powermt check àChecks for, and optionally removes, dead paths.
powermt check_ registration àChecks the state of the PowerPath license.
powermt config à Configures logical devices as PowerPath devices.
powermt display
powermt watch
Displays the state of HBAs configured for PowerPath.
powermt watch is deprecated.
powermt display options àDisplays the periodic autorestore setting.
powermt load àLoads a PowerPath configuration.
powermt remove à Removes a path from the PowerPath configuration.
powermt restore àTests and restores paths.
powermt save àSaves a custom PowerPath configuration.
powermt set mode àSets paths to active or standby mode.
powermt set
periodic_autorestore àEnables or disables periodic autorestore.
powermt set policy àChanges the load balancing and failover policy.
powermt set priority àSets the I/O priority
powermt version àReturns the number of the PowerPath version for which powermt was created.
(Edit Section ↓)
powermt command examples
powermt display:
# powermt display paths class=all
# powermt display ports dev=all
# powermt display dev=all
powermt set:
To disable a HBA from passing I/O
# powermt set mode=standby adapter=
To enable a HBA from passing I/O
# powermt set mode=active adapter=
To set or validate the Load balancing policy
To see the current load-balancing policy and I/Os run the following command
# powermt display dev=
· so = Symmetrix Optimization (default)
· co = Clariion Optimization
· li = Least I/Os (queued)
· lb = Least Blocks (queued)
· rr = Round Robin (one path after another)
· re = Request (failover only)
· nr = No Redirect (no load-balancing or failover)
To set to no load balancing
# powermt set policy=nr dev=
To set the policy to default Symmetrix Optimization
# powermt set policy=so dev=
To set the policy to default Clariion Optimization
# powermt set policy=co dev=
(Edit Section ↓)
pprootdev
To bring the rootvg devices under powerpath control
# pprootdev on
To bring back the rootvg disks back to hdisk control
# pprootdev off
To temporarily bring the rootvg disks to hdisk control for running "bosboot"
# pprootdev fix
(Edit Section ↓)
powermt command examples with output
To validate the installation
# powermt check_registration
Key B3P3-HB43-CFMR-Q2A6-MX9V-O9P3
Product: PowerPath
Capabilities: Symmetrix CLARiiON
To display each device's path, state, policy and average I/O information
# powermt display dev=emcpower6a
Pseudo name=emcpower6a
Symmetrix ID=000184503070
Logical device ID=0021
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
0 sbus@2,0/fcaw@2,0 c4t25d225s0 FA 13bA active dead 0 1
1 sbus@6,0/fcaw@1,0 c5t26d225s0 FA 4bA active alive 0 0
To show the paths and dead paths to the storage port
# powermt display paths
Symmetrix logical device count=20
----- Host Bus Adapters --------- ------ Storage System ----- - I/O Paths -
### HW Path ID Interface Total Dead
0 sbus@2,0/fcaw@2,0 000184503070 FA 13bA 20 20
1 sbus@6,0/fcaw@1,0 000184503070 FA 4bA 20 0
CLARiiON logical device count=0
----- Host Bus Adapters --------- ------ Storage System ----- - I/O Paths -
### HW Path ID Interface Total Dead
To display the storage ports information
# powermt display ports
Storage class = Symmetrix
----------- Storage System --------------- -- I/O Paths -- --- Stats ---
ID Interface Wt_Q Total Dead Q-IOs Errors
000184503070 FA 13bA 256 20 20 0 20
000184503070 FA 4bA 256 20 0 0 0
Storage class = CLARiiON
----------- Storage System --------------- -- I/O Paths -- --- Stats ---
ID Interface Wt_Q Total Dead Q-IOs Errors
Powerpath on HP-UX
powermt display dev=all
CLARiiON ID=APM00080702201 [AEMSAQC1]
Logical device ID=6006016035901E000ABE8A31B53CDD11 [LUN 12]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0
Owner: default=SP A, current=SP B
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
10 0/3/1/0.1.0.0.0.0.1 c10t0d1 SP A5 unlic alive 0 0
11 0/3/1/0.2.0.0.0.0.1 c11t0d1 SP B5 unlic alive 0 0
12 0/7/1/0.1.0.0.0.0.1 c12t0d1 SP A4 active alive 0 0
13 0/7/1/0.2.0.0.0.0.1 c13t0d1 SP B4 active alive 0 0
powermt set policy=co dev=all
powermt display dev=all
CLARiiON ID=APM00080702201 [AEMSAQC1]
Logical device ID=6006016035901E000ABE8A31B53CDD11 [LUN 12]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP B
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
10 0/3/1/0.1.0.0.0.0.1 c10t0d1 SP A5 active alive 0 0
11 0/3/1/0.2.0.0.0.0.1 c11t0d1 SP B5 active alive 0 0
12 0/7/1/0.1.0.0.0.0.1 c12t0d1 SP A4 active alive 0 0
13 0/7/1/0.2.0.0.0.0.1 c13t0d1 SP B4 active alive 0 0
No comments:
Post a Comment