Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Brief introduction of powermt command (reprint)

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Reprint address: http://blog.chinaunix.net/uid-28255964-id-3898038.html

Please retain the original source at the beginning of the article: EMC Chinese support Forum.

Introduction

PowerPath integrates multi-path Istroke O functions, automatic load balancing and path failover functions, making storage management easier. This paper summarizes the points for attention in the use of PowerPath commands, and provides reference for host system administrators to configure, view, delete, save, restore and other operations on HBA/ path / port / disk device / storage system.

More information

Power check

Function: check PowerPath configuration

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt check

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all] [force] [reconfig]

Note: check the path and remove the path marked dead from the PowerPath configuration if necessary.

If the path is marked dead or the serial number in the path configuration information does not match the serial number of the local device, the user is prompted to delete the path as follows:

Warning: storage_system I/O path path_name is dead.

Do you want to remove it (y/n/a/q)?

Y: delete dead path and continue to check the remaining paths

N: do not delete dead path, but continue to check the remaining paths

A: delete dead path and all subsequent paths marked dead

Q: do not delete dead path and exit the command. The deleted path remains deleted.

Parameters:

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: limit command to check the specified storage type. Default is all.

Force: suppresses the confirmation prompt and deletes all paths marked dead

Hba=hba# | all: limit check to the specified HBA. Default is all

Dev=path | device | all: restrict checking the specified path or all path of the specified device. The default is all.

Reconfig: reconfigure mismatched paths. This command is valid only for Windows and Solaris.

Powermt check_registration

Function: check license information

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt check_registration

Note: check the PowerPath license information on the host: valid, expired, invalid, or no license.

Powermt config

Function: configure paths for logical Devic

Platform: UNIX and Linux platform

Storage systems: all storage system

Format: powermt config

Note: configure all detected Symmetrix and Clariion logical disk devices as PowerPath disk devices and add them to the PowerPath configuration, as well as for supported third-party storage system logical devices.

This command also configures all detected paths to the PowerPath disk device and adds those paths to the PowerPath configuration.

This command does not delete a previously configured path when it becomes dead path.

Powermt disable hba

Function: disable HBA port

Platform: fibre Channel for AIX and Solaris, iSCSI and fibre Channel for HP-UX, iSCSI and fibre Channel for Linux

Storage systems: all storage system

Format: powermt disable hba=hba

Note: disables all paths for the specified HBA configuration. Stop all Ithumb O on the port and turn off all disk devices configured on the port.

The user needs to execute this command when replacing the HBA to stop the Icano on it. When the HBA port is disabled, all paths configured through the HBA port are labeled Dead in the output of the command powermt display dev=device.

Note the following restrictions:

Disabled HBA will no longer exist after host restart

This command returns a failure if the PowerPath load balancing and failover policy is bf or nr.

To see if the HBA status is disabled or active, use the command powermt display hba_mode.

Parameters:

Hba=hba: use HBA ID on the host to disable the specified HBA port, for example: 1280.

Powermt display

Function: monitor HBA and disk devices

Platforms: all PowerPath platforms

Storage systems: all storage system

Format:

Powermt display [paths | ports]

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

Powermt display [ports] [dev=device | all]

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

Parameters:

Paths: displays one path information per line

Ports: displays one port information per line

Dev=device | all: displays the specified disk device information, and all displays all disk devices.

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: lists the specified storage system information, and all displays all storage systems. The default is all.

Powermt display hba_mode

Function: monitor HBA mode

Platform: UNIX and Linux platform

Storage systems: all storage system

Format: powermt display hba_mode

Note: displays all HBA information configured on the host. Lists the activated or disabled status of HBA.

Powermt display port_mode

Function: display storage system port mode

Platform: UNIX and Linux platform

Storage systems: all storage system

Format: powermt display port_mode dev=device

Note: displays all port mode information configured on the host. Lists the activated or disabled status of HBA.

Parameters:

Dev=device: specify the port of the disk device that needs to be viewed. Disk device name needs to be native device name.

Powermt enable hba

Function: activate HBA port

Platform: fibre Channel for AIX and Solaris, iSCSI and fibre Channel for HP-UX, iSCSI and fibre Channel for Linux

Storage systems: all storage system

Format: powermt enable hba=hba

Note: activate the previously disabled HBA port. Run this command to restore the specified HBA port and its disk device. If PowerPath load balancer and failover mode is bf or nr, the command will return a failure.

Parameters:

Hba=hba activates the specified hba port.

Powermt load

Function: load user configuration

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt load

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

[file=pathname]

Note: read and apply the following from the saved configuration file to the current configuration: PowerPath disk device policy and priority; write threshold setting and write queue depth; periodically automatically restore settings and path mode.

If the configuration is saved in the default file name by the powermt save command, the configuration will be automatically loaded at system startup (except AIX, which always loads the default configuration at startup); if the default file name is not used, the configuration will not be automatically loaded at startup, and the user will need to use the powermt load command to load the configuration manually.

Parameters:

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: limits the command to the specified storage system. The default is all.

File=pathname: saves the full path name of the configuration file.

Powermt manage

Function: put disk devices or storage systems into PowerPath management

Platform: UNIX and Linux platform

Storage systems: all storage system

Format: powermt manage {dev=device |

Class= {symm | clariion | hitachi | hpxp | hphsx | invista | ess}}

Note: by default, all storage systems are managed by PowerPath. Users can use powermt unmanage to make the storage system free from PowerPath management. When the storage system is managed by PowerPath, all its logical disk devices are managed by PowerPath by default. After using the powermt unmanage command, you can use this command to restore PowerPath management of disk devices.

Parameters:

Dev=device: specifies the logical disk device pathname to be managed by PowerPath.

Class=symm | clariion | hitachi | hpxp | hphsx | invista | ess: specify the name of the storage system to be managed by PowerPath.

Powermt release

Function: release pseudo disk device names for reuse

Platform: Linux platform

Storage systems: all storage system

Format: powermt release

Note: after adding and removing LUN configurations multiple times, Linux hosts and PowerPath can discover all devices, but run this command when PowerPath has run out of pseudo-standby names for disk devices.

Powermt remove

Function: remove paths from PowerPath management

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt remove

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

[force] hba=hba# | all | dev=path | device | all

Note: removes the specified path from the list of PowerPath configuration paths. This command does not delete the disk devices involved in the path. As long as the logical device is visible in the system, the logical device can be configured with the powermt config command.

"on all platforms, this command cannot delete a native path if it is open, for example, a file system is loaded on a path disk device, or an application has the path disk device open." This command deletes all paths that are specified and are not open.

If the PowerPath disk device is turned on, this command does not delete the disk device and the last path to the device.

Permanently delete a path from the PowerPath configuration:

1. Run powermt check or powermt remove

two。 Physically delete the path

3. Delete operating system objects related to paths and / or disk devices

4. Run powermt save.

Parameters:

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: limits the command to the specified storage system. The default is all.

Force: does not pop up the confirmation dialog and deletes all specified paths, including the last path of the logical device.

Hba=hba# | all: remove the path of the specified HBA. Default is all.

Dev=path | device | all: remove the specified path or connect to the specified disk device. Default is all.

Powermt restore

Function: recovery path

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt restore

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

[hba=hba# | all] [dev=path | device | all]

Note: this command tests and restores the specified path, issues the test Imax O and reacts to the test results as follows:

If the live path passes the test, this command does nothing

If the dead path passes the test, this command identifies it as alive state, PowerPath can use the path at this time, and other paths on the same HBA and / or storage system port will also be tested.

If the live path test fails, this command identifies it as dead and prints an alarm. In addition, other paths that share HBA and ports may also be marked dead and tested.

If the dead path test fails, this command prints an alert.

In addition, the command attempts to resurrect the dead volume:

Parameters:

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: limits the command to the specified storage system. The default is all.

Hba=hba# | all: restore the path of the specified HBA. Default is all.

Dev=path | device | all: restore the specified path or connect to the specified disk device. Default is all.

Powermt save

Function: save user configuration

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt save [file=pathname]

Note: by default, this command saves the PowerPath configuration in the powermt.custom file. The user can specify a different file name. For a logical device, the command records its serial number, policy, priority, write threshold and queue, and pseudo-standby name. For the path, the command records its pattern. For the storage system, this command records its periodic automatic restore settings.

After the configuration is saved, it can be loaded with the powermt load command.

Parameters:

File=pathname: the file path name where the configuration is saved.

If the configuration is saved in the default file name, the previous configuration file will be overwritten.

Whenever the user makes changes to the host hardware, run this command to update the PowerPath configuration.

Powermt set mode

Function: set path mode

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt set mode=active | standby

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

[hba=hba# | all] [dev=path | device | all]

Note: set the path to the active or standby state.

Parameters:

Mode=active | standby: determines whether the path can be transmitted or reserved.

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: limits the command to the specified storage system. The default is all.

Hba=hba# | all: sets the path of the specified HBA. The default is all.

Dev=path | device | all: sets the mode of the specified path or the path to the specified disk device. The default is all.

Powermt set policy

Function: set load balancing and failover policies

Platforms: all PowerPath platforms

Storage systems: all storage system

Format: powermt set policy=li | lb | rr | re

[class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all]

[dev=device | all]

Powermt set policy=si [dev=device | all]

Powermt set policy=so | nr [dev=device | all]

Powermt set policy=bf | co [dev=device | all]

Powermt set policy=ad | nr

Parameters:

Policy=ad | bf | co | lb | li | nr | re | rr | si | so:ad (adaptive), bf (basic failover), co (CLARIION optimization), lb (least blocks), li (least IWeiO), nr (no redirect), re (request), rr (round robin), si (streamIO), so (Symmetrix optimization)

Class=symm | clariion | ess | hitachi | hpxp | hphsx | invista | all: limits the command to the specified storage system. The default is all.

Dev=device | all: limit the command to the specified disk device. Default is all.

Referenc

PowerPath 5.2 and 5.3 CLI Reference Guide

Apply to

Windows, UNIX/Linux host series

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report