EMC多路径软件其实就是2个rpm包,可以根据自己的系统版本安装对应版本的rpm包(emc厂商提供)。如下事例:
rpm�Civh EMCpower.LINUX-5.3.1.00.00-111.rhel.x86_64.rpm
rpm�Civh NaviHostAgent-Linux-64-x86-en_US-6.29.6.0.35-1.x86_64.rpm
powermt语法:
Usage:
powermt <command>[class=<symm|clariion|invista|ess|hitachi|hpxp|hphsx|all>]
powermt check [force] [hba=<hba#>|all] [dev=<device>|all]
powermt check_registration
powermt config
powermt display [ports][dev=<device>|all] [every=<#seconds>]
powermt display options
powermt display paths [every=<#seconds>]
powermt display unmanaged
powermt manage{dev=<device> | class={invista | hitachi | hpxp | ess | hphsx}}
powermt unmanage{dev=<device> | class={invista | hitachi | hpxp | ess | hphsx}}
powermt load[file=<filename>]
powermt release
powermt remove [force]hba=<hba#>|all | dev=<device>|all
powermt restore[hba=<hba#>|all] [dev=<device>|all]
powermt save[file=<filename>]
powermt setmode=active|standby [hba=<hba#>|all] [dev=<device>|all]
powermt set periodic_autorestore=on|off
powermt setpolicy={ad|bf|co|lb|li|nr|re|rr|so} [dev=<device>|all]
powermt setpriority=<priority> [dev=<device>|all]
powermt update lun_names
powermt version
[root@jason1~]# powermt display dev=all
Pseudoname=emcpowera
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0068A82245E5CADF11[LUN 0]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdb SP A1 active alive 0 0
5 lpfc sde SP B1 active alive 0 0
6 lpfc sdh SP A0 active alive 0 0
6 lpfc sdk SP B0 active alive 0 0
Pseudoname=emcpowerb
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A00F07501DDB37AE011[LUN 1]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP A, current=SP A Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdc SPA1 active alive 0 0
5 lpfc sdf SP B1 active alive 0 0
6 lpfc sdi SP A0 active alive 0 0
6 lpfc sdl SP B0 active alive 0 0
Pseudoname=emcpowerc
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0066BBCCE7B37AE011 [LUN 2]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdd SP A1 active alive 0 0
5 lpfc sdg SP B1 active alive 0 0
6 lpfc sdj SP A0 active alive 0 0
6 lpfc sdm SP B0 active alive 0 0
[root@jason1~]#
[root@jason2~]# powermt display dev=all
Pseudoname=emcpowera
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0068A82245E5CADF11[LUN 0]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdb SP A1 active alive 0 0
5 lpfc sde SP B1 active alive 0 0
6 lpfc sdh SP A0 active alive 0 0
6 lpfc sdk SP B0 active alive 0 0
Pseudoname=emcpowerb
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A00F07501DDB37AE011[LUN 1]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP A, current=SP A Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdc SP A1 active alive 0 0
5 lpfc sdf SP B1 active alive 0 0
6 lpfc sdi SP A0 active alive 0 0
6 lpfc sdl SP B0 active alive 0 0
Pseudoname=emcpowerc
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0066BBCCE7B37AE011 [LUN 2]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdd SP A1 active alive 0 0
5 lpfc sdg SP B1 active alive 0 0
6 lpfc sdj SP A0 active alive 0 0
6 lpfc sdm SP B0 active alive 0 0
[root@jason2~]#
[root@jason1~]# powermt check_registration
KeyBXPV-CB4G-2FCK-QSIS-MC9M-JVJT
Product: PowerPath
Capabilities: All
[root@jason1~]#
[root@jason2~]# powermt check_registration
KeyBXPV-CB4G-2FCK-QSIS-MC9M-JVJT
Product: PowerPath
Capabilities: All
[root@jason2~]#
备注:两节点注册信息一致,当其中一节点重装系统之后,可以通过该命令在另一节点上查看注册信息获取key进行注册。
[root@jason2~]#emcpreg install
=========== EMC PowerPath Registration===========
Do you have a new registration key or keys to enter?[n] y
Enter the registration keys(s) for your product(s),
one per line, pressing Enter after each key.
After typing all keys, press Enter again.
Key(Enter if done): BXPV-CB4G-2FCK-QSIS-MC9M-JVJT
1 key(s) successfully added.
Key successfully installed.
Key(Enter if done):
1 key(s) successfully registered.
[root@jason2~]
mode模式unlic问题解决,如下情况。红色字体部分。
[root@jason2~]# powermt display dev=all
Pseudoname=emcpowera
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0068A82245E5CADF11[LUN 0]
state=alive;policy=BasicFailover; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5lpfc sdb SP A1 unlic alive 0 0
5lpfc sde SP B1 unlic alive 0 0
6 lpfc sdh SP B0 active alive 0 0
6 lpfc sdk SP A0 active alive 0 0
Pseudoname=emcpowerb
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A00F07501DDB37AE011[LUN 1]
state=alive;policy=BasicFailover; priority=0; queued-IOs=0
Owner:default=SP A, current=SP A Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdc SP A1 unlic alive 0 0
5lpfc sdf SP B1 unlic alive 0 0
6 lpfc sdi SP B0 active alive 0 0
6 lpfc sdl SP A0 active alive 0 0
Pseudoname=emcpowerc
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0066BBCCE7B37AE011 [LUN 2]
state=alive;policy=BasicFailover; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdd SP A1 unlic alive 0 0
5 lpfc sdg SP B1 unlic alive 0 0
6 lpfc sdj SP B0 active alive 0 0
6 lpfc sdm SP A0 active alive 0 0
此问题是由于未注册lisence且mode未修改造成,通过注册lisence之后手动修改mode进行保存解决。如下:
[root@jason2~]#emcpreg install
=========== EMC PowerPath Registration===========
Do you have a new registration key or keys to enter?[n] y
Enter the registration keys(s) for your product(s),
one per line, pressing Enter after each key.
After typing all keys, press Enter again.
Key(Enter if done): BXPV-CB4G-2FCK-QSIS-MC9M-JVJT
1 key(s) successfully added.
Key successfully installed.
Key(Enter if done):
1 key(s) successfully registered.
[root@jason2~]#powermt set policy=co dev=all
[root@jason2~]#powermt save
注册之后继续查看如下。
[root@jason2~]#powermt display dev=all
Pseudoname=emcpowera
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0068A82245E5CADF11[LUN 0]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdb SP A1 active alive 0 0
5 lpfc sde SP B1 active alive 0 0
6 lpfc sdh SP A0 active alive 0 0
6 lpfc sdk SP B0 active alive 0 0
Pseudoname=emcpowerb
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A00F07501DDB37AE011[LUN 1]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP A, current=SP A Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdc SP A1 active alive 0 0
5 lpfc sdf SP B1 active alive 0 0
6 lpfc sdi SP A0 active alive 0 0
6 lpfc sdl SP B0 active alive 0 0
Pseudoname=emcpowerc
CLARiiONID=CKM00103500808 [pacsserver-HA]
Logicaldevice ID=60060160C3102A0066BBCCE7B37AE011 [LUN 2]
state=alive;policy=CLAROpt; priority=0; queued-IOs=0
Owner:default=SP B, current=SP B Arrayfailover mode: 1
==============================================================================
----------------Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
5 lpfc sdd SP A1 active alive 0 0
5 lpfc sdg SP B1 active alive 0 0
6 lpfc sdj SPA0 active alive 0 0
6 lpfc sdm SP B0 active alive 0 0
[root@jason2 ~]#