powerpath cli commands v

4
Powerpath Page 1 of 4 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 PowerP ath 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

Upload: svivekiyer

Post on 10-Apr-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Powerpath Cli Commands V

8/8/2019 Powerpath Cli Commands V

http://slidepdf.com/reader/full/powerpath-cli-commands-v 1/4

Powerpath Page 1 of 4

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

Page 2: Powerpath Cli Commands V

8/8/2019 Powerpath Cli Commands V

http://slidepdf.com/reader/full/powerpath-cli-commands-v 2/4

Page 3: Powerpath Cli Commands V

8/8/2019 Powerpath Cli Commands V

http://slidepdf.com/reader/full/powerpath-cli-commands-v 3/4

Powerpath Page 3 of 4

powermt command examples with output

To validate the installation

# powermt check_registrationKey B3P3-HB43-CFMR-Q2A6-MX9V-O9P3Product: PowerPathCapabilities: Symmetrix CLARiiON

To display each device's path, state, policy and average I/O information

# powermt display dev=emcpower6aPseudo name=emcpower6aSymmetrix ID=000184503070Logical device ID=0021state=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 11 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 pathsSymmetrix 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 201 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 portsStorage class = Symmetrix ----------- Storage System --------------- -- I/O Paths -- --- Stats ---

ID Interface Wt_Q Total Dead Q-IOs Errors 

000184503070 FA 13bA 256 20 20 0 20000184503070 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

Page 4: Powerpath Cli Commands V

8/8/2019 Powerpath Cli Commands V

http://slidepdf.com/reader/full/powerpath-cli-commands-v 4/4

Powerpath Page 4 of 4

 

(Edit Section ↓)

Powerpath on HP-UX

powermt display dev=allCLARiiON ID=APM00080702201 [AEMSAQC1]Logical device ID=6006016035901E000ABE8A31B53CDD11 [LUN 12]state=alive; policy=BasicFailover; priority=0; queued-IOs=0Owner: 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 011 0/3/1/0.2.0.0.0.0.1 c11t0d1 SP B5 unlic alive 0 012 0/7/1/0.1.0.0.0.0.1 c12t0d1 SP A4 active alive 0 013 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=allCLARiiON ID=APM00080702201 [AEMSAQC1]Logical device ID=6006016035901E000ABE8A31B53CDD11 [LUN 12]state=alive; policy=CLAROpt; priority=0; queued-IOs=0Owner: 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 011 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 013 0/7/1/0.2.0.0.0.0.1 c13t0d1 SP B4 active alive 0 0