aixclub
作者aixclub·2007-04-26 17:43
网站运营经理·TWT

在AIX上安装/卸载EMC Powerpath

字数 18764阅读 5081评论 0赞 0

文章来源:IT168                 作者:Piner.Chen

EMC PowerPath用于增强存储环境中开放系统的运行性能,使服务器可以在较少的时间内完成更多的工作,并消除I/O通路中的单点故障。PowerPath通过均衡I/O请求并提供通路故障恢复功能,使服务器高效运行。配合EMC存储系统一起提供智能I/O通路管理,PowerPath通过不断地智能均衡I/O,帮助提高服务器管理重的存储负载的能力。

PowerPath可自动配置多个通路,并随着负载的变化动态调整,优化性能;可自动检测并恢复服务器与存储之间的通路故障,提高了EMC Clariion系列和Symmetrix系列存储系统的可用性。在通路被修复之后,PowerPath自动恢复在线通路,帮助减少计划内故障恢复服务。

PowerPath软件配置在每个运行UNIX? 、Microsoft? Windows? 、Novell? NetWare? 或Linux? 操作系统的主机服务器上。支持Fast-Wide Differential(FWD)SCSI,UltraSCSI和光纤通道接口。

在安装PowerPath之后1 ,系统管理员可以在服务器保持完全可用的情况下完成所有通路的维护、监视和配置工作,减少了计划内故障。普通的连线工作和存储处理器的替换工作可以不关机的情况下完成。

本文重点介绍如何在AIX环境下安装和卸载Powerpath。  

1、检查所需要的文件集 

Powerpath4.3以上要求devices.pci.df1000f7.com 5.1.0.58以上,devices.fcp.disk.rte 5.2.0.17以上
检查文件集
# lslpp -l devices.pci.df1000f7.com devices.fcp.disk.rte
  Fileset                      Level  State      Description        
  —————————————————————————-
Path: /usr/lib/objrepos
  devices.fcp.disk.rte      5.2.0.60  APPLIED    FC SCSI CD-ROM, Disk,
                                                 Read/Write Optical Device
                                                 Software
  devices.pci.df1000f7.com  5.2.0.60  APPLIED    Common PCI FC Adapter Device
                                                 Software
Path: /etc/objrepos
  devices.fcp.disk.rte      5.2.0.60  APPLIED    FC SCSI CD-ROM, Disk,
                                                 Read/Write Optical Device
                                                 Software
  devices.pci.df1000f7.com  5.2.0.60  APPLIED    Common PCI FC Adapter Device
                                                 Software
对应的补丁要求(仅仅针对5.2版本)
#instfix -a -ivk IY60183
IY60183 Abstract: Open failure on ESS with FC df1000fa adapter
IY60183 Symptom Text:
 Customer sees open failures to FC attached disks across a
 McData or Cisco switch.  I/O hangs.
 across the FC adapter.
—————————-
    Fileset devices.pci.df1000f7.com:5.2.0.42 is applied on the system.
    Fileset devices.pci.df1000fa.rte:5.2.0.1 is applied on the system.
    All filesets for IY60183 were found.
 
#instfix -a -ivk IY62117
IY62117 Abstract: I/O hang after 1 second cable pull and recovery
IY62117 Symptom Text:
 The customer will notice I/Os hanging or I/Os not recovering.
 In the error log, there will be logs on the fcs device
 indicating link may have gone down and may have come up, and
 IOCB timeouts and error logs on fscsi device indicating NPORT
 login timouts, and target reset timeouts, etc.
 —————————-
    Fileset devices.pci.df1000f7.com:5.2.0.43 is applied on the system.
    All filesets for IY62117 were found. 

2、安装agent

先解压agent软件,注意:Agent的软件要求版本最好与存储本身的软件版本一致。 

#unzip AIX_NAVIAGNTCLI_619.zip
进去到解压后的目录
# cd AIX_NAVIAGNTCLI_619
运行
#smit install_latest
安装目录选择[.],表示本目录
软件列表选择需要安装的naviagent,或者是默认全部(因为本目录下只有agent
> NAVIAGENT                                                          ALL
   + 6.19.0.4  Navisphere Disk Array Management Tool (AGENT)           
                                                                       
> NAVICLI                                                            ALL
   + 6.19.0.4  Navisphere Disk Array Management Tool (CLI)             
选择接受许可协议
ACCEPT new license agreements?                      Yes
回车安装
如果安装成功,将会自动在/etc/inittab中增加
naviagent:2:wait:/etc/rc.agent > /dev/console 2>&1
安装完成后,在启动之前,还需要配置agent
#
vi /etc/Navisphere/agent.config
在如下部分增加:
user root              # only on this machine
#user sblue@picasso    # individual user “sblue” on host “picasso”
#user lgreen@hannibal  # individual user “lgreen” on host “hannibal”
user system@192.168.168.190
user system@192.168.168.191

红色部分为需要增加的部分 

3、安装powerpath ODM补丁

# zcat EMC.AIX.5.2.0.3.tar.Z| tar -xvf -
x ./README.5203, 21598 bytes, 43 media blocks.
x ./EMC.AIX.5.2.0.3, 15360000 bytes, 30000 media blocks.
#smit install_latest
选择安装软件列表或者是全部(假定本目录下只有该补丁)
> EMC                                                                ALL
   + 5.2.0.3  EMC CLARiiON Fibre Channel Support Software              
   + 5.2.0.3  EMC CLARiiON HA Concurrent Support                       
   + 5.2.0.3  EMC Symmetrix AIX Support Software                       
   + 5.2.0.3  EMC Symmetrix Fibre Channel MPIO Support Software        
   + 5.2.0.3  EMC Symmetrix Fibre Channel Support Software             
   + 5.2.0.3  EMC Symmetrix HA Concurrent Support 

如果在Symmetrix或者是CLARiiON不足的环境,可能会包安装错误,根据实际环境决定这个错误是否有影响,如有SymmetrixCLARiiON的安装则会报错,反之一样。

如果在非ha的环境下,EMC.Symmetrix.ha.rteEMC.CLARiiON.ha.rte也可能会出现安装错误,如果是非ha就没有关系的了。

如一般在单机情况下使用Clariion存储,如cx700,cx3-80等等,只需要安装第一个文件集即可。

 

4、安装powerpath
#gunzip EMCpower.AIX.4.5.1.tar.gz
#
tar xvf EMCpower.AIX.4.5.1.tar
x EMCpower_install, 9830400 bytes, 19200 media blocks.
#
smit install_latest
安装目录选择本目录
软件列表选择Powerpath或者是全部(本目录下只有powerpath
>EMCpower                                                           ALL
   + 4.5.1.0  PowerPath Base Driver and Utilities                       
   + 4.5.1.0  PowerPath Consistency Group Extension and Utilities       
   + 4.5.1.0  PowerPath HighRoad Extension and Utilities                
   + 4.5.1.0  PowerPath Multi_Pathing Extension and Utilities           
   + 4.5.1.0  PowerPath Multi_Pathing Extension for Active Active       
   + 4.5.1.0  PowerPath Multi_Pathing Extension for Active Passive      
   + 4.5.1.0  PowerPath Multi_Pathing Extension for Clariion            
回车,接受协议,开始安装。

安装完成后,在/etc/inittab中,会增加一行
rcemcpower:2:wait:/etc/rc.emcpower set_ipldevice > /dev/console 2>&1
安装之后,需要输入序列号
#emcpreg -install   
输入powerpath序列号

以下是powerpath的管理命令
# powercf -q
#powermt config    
产生Emcpower设备
#powermt display dev=all  
查看所有Emcpower设备及状态
#powermt display paths    
查看光纤卡到EMC的路径

注意:先安装odm补丁,再安装powerpath,安装完成后需要重新启动一下。

安装过的补丁与powerpath可以通过如下命令查看
# lslpp -l EMC*
  Fileset                      Level  State      Description        
  —————————————————————————-
Path: /usr/lib/objrepos
  EMC.CLARiiON.fcp.rte       5.2.0.3  COMMITTED  EMC CLARiiON Fibre Channel
                                                 Support Software
  EMCpower.base              4.5.1.0  COMMITTED  PowerPath Base Driver and
                                                 Utilities
  EMCpower.consistency_grp   4.5.1.0  COMMITTED  PowerPath Consistency Group
                                                 Extension and Utilities
  EMCpower.hr                4.5.1.0  COMMITTED  PowerPath HighRoad Extension
                                                 and Utilities
  EMCpower.multi_path        4.5.1.0  COMMITTED  PowerPath Multi_Pathing
                                                 Extension and Utilities
  EMCpower.multi_path_aa     4.5.1.0  COMMITTED  PowerPath Multi_Pathing
                                                 Extension for Active Active
  EMCpower.multi_path_ap     4.5.1.0  COMMITTED  PowerPath Multi_Pathing
                                                 Extension for Active Passive
  EMCpower.multi_path_clariion
                             4.5.1.0  COMMITTED  PowerPath Multi_Pathing
                                                 Extension for Clariion
Path: /etc/objrepos
  EMC.CLARiiON.fcp.rte       5.2.0.3  COMMITTED  EMC CLARiiON Fibre Channel
                                                 Support Software

5、卸载powerpath
注意,确保先停止agent
#
/etc/rc.agent stop
删除powerpath
#powermt remove dev=all
删除所有hdiskpower*hdisk*,如
删除EMChdiskpower[x]
#
lsdev -Ctpower -cdisk -F name | xargs -n1 rmdev -dl
#rmdev -dl powerpath0
#
删除EMC CLAR硬盘
#lsdev -CtCLAR* -F name | xargs -n1 rmdev -dl
卸载软件
# smit remove
SOFTWARE name上,用F4或者Esc+4打开列表
   AIX-rpm-5.2.0.50-1           
   EMC.CLARiiON.fcp.rte         
   EMC.Symmetrix.aix.rte        
 > EMCpower.base                
 > EMCpower.consistency_grp     
 > EMCpower.hr                  
 > EMCpower.multi_path          
 > EMCpower.multi_path_aa       
 > EMCpower.multi_path_ap       
 > EMCpower.multi_path_clariion 
并用F7或者Esc+7多选,选中EMCpower的部分,就是powerpath的安装软件包。

在如下选项中
PREVIEW only? (remove operation will NOT occur)      no   
REMOVE dependent software?                           no   
EXTEND file systems if space needed?                 no   
DETAILED output?                                     no

确认不是仅仅是reviewREMOVE dependent software一般采用默认值no即可,如果确认需要,可以采用yes来删除依赖的相关软件。

回车执行完后,powerpath就卸载删除了。

 

6、故障处理
在一些老的powerpath版本如4.2上面,如果hdiskpower出现混乱,如pvid的混乱或者是minor does not match with the hdiskpower number这样的事情,如
#ls -Ralsi dev|pg|grep hdiskpower
 4258    0 brw——-   1 root     system       47, 12 Mar 28 14:48 hdiskpower0
 4392    0 brw——-   1 root     system       47, 13 Mar 28 14:48 hdiskpower1
 4394    0 brw——-   1 root     system       47, 14 Mar 28 14:48 hdiskpower2

可以采用如下方法重新做
vary off volume groups on SAN (if any):
for i in $(lsdev -Cc disk | grep hdiskpower | awk ‘{print $1}’)
  do
     odmdelete -q name=$i -o CuAt
     odmdelete -q name=$i -o CuDv
     odmdelete -q value3=$i -o CuDvDr
done

#
odmdelete -q name=powerpath0 -o CuDv
#
odmdelete -q name=powerpath0 -o CuAt
#
rm /dev/powerpath0

这里移除老的powermtpath软件
#cd /dev; rm hdiskpower*; rm rhdiskpower*
#savebase -v
#reboot

这里再安装新的powerpath软件,并重新配置
# powermt config
或者
vary off volume groups on SAN (if any):
#
cd /dev
#
echo hdiskpower* | xargs -n1 rmdev -dl
#
rmdev -dl powerpath0
每一个光纤卡执行
#rmdev -Rdl fcsX
执行cfgmgremc_cfgmgr
最后执行

#powermt config

 操作注意:

1.       Powerpath4.3版本以上要求devices.pci.df1000f7.com 5.1.0.58以上,devices.fcp.disk.rte 5.2.0.17以上。

2.       安装Agent的时候,Agent的软件要求版本最好与存储本身的软件版本一致。

3.       安装powerpath ODM补丁的时候,如果后台存储系统非EMC存储系统,可能会报安装错误提示信息,根据具体情况判断是否会影响后续安装。

4.       先安装odm补丁,再安装powerpath,安装完成后需要重新启动一下。

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

  • 关于《AIX中国》杂志及杂志订阅的一点思考
    评论 43 · 赞 30
  • ibm
    评论 0 · 赞 0
  • 了解 AIX V6 中的可信执行环境
    评论 0 · 赞 0
  • 后海
    评论 0 · 赞 0
  • 安静的早晨
    评论 0 · 赞 0
  • X社区推广