EMC存储多路径软件安装配置及相关命令
EMC存储多路径软件安装配置及相关命令
1)安装
EMC多路径软件其实就是2个rpm包,可以根据自己的系统版本安装对应版本的rpm包(emc厂商提供)。如下事例:
公司主营业务:网站设计、成都网站制作、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联建站是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。创新互联建站推出新晃免费做网站回馈大家。
rpm–ivh EMCpower.LINUX-5.3.1.00.00-111.rhel.x86_64.rpm
rpm–ivh NaviHostAgent-Linux-64-x86-en_US-6.29.6.0.35-1.x86_64.rpm
2)powermt命令
powermt语法:
Usage:
powermt
powermt check [force] [hba=
powermt check_registration
powermt config
powermt display [ports][dev=
powermt display options
powermt display paths [every=<#seconds>]
powermt display unmanaged
powermt manage{dev=
powermt unmanage{dev=
powermt load[file=
powermt release
powermt remove [force]hba=
powermt restore[hba=
powermt save[file=
powermt setmode=active|standby [hba=
powermt set periodic_autorestore=on|off
powermt setpolicy={ad|bf|co|lb|li|nr|re|rr|so} [dev=
powermt setpriority=
powermt update lun_names
powermt version
3)常用命令使用举例
1)如何列出主机拥有的LUN
[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~]#
2)如何查看注册信息
[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进行注册。
3)如何注册License
[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~]
4)常见问题
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 ~]#
网站栏目:EMC存储多路径软件安装配置及相关命令
标题来源:http://scjbc.cn/article/gopsdp.html