系统升级补丁,安装并重新启动后,发现挂载的EMC SAN磁盘无法访问
powermt display dev=all
initialization error
# rpm -qa | grep EMCpower
EMCpower.LINUX-5.1.2.00.00-021
因为内核更新了,所以需要安装最新的PowerPath软件。
下载最新版本:EMCPower.LINUX-5.7.1.00.00-029.OL6_UEK2_R2.x86_64.rpm
# rpm -Uvh EMCPower.LINUX-5.7.1.00.00-029.OL6_UEK2_R2.x86_64.rpm
Preparing... ########################################### [100%]
1:EMCpower.LINUX ########################################### [100%]
All trademarks used herein are the property of their respective owners.
NOTE:License registration is not required to manage the CLARiiON AX series array.
然后重新启动服务器。
/etc/init.d/PowerPath stop
/etc/init.d/PowerPath start
# /etc/rc.d/init.d/naviagent status
naviagent (pid xxx) is running...
# powermt display dev=all
PowerPath modules are not loaded.
Ensure that the modules are loaded and try again.
# emcpadm getusedpseudos
还是无法识别SAN磁盘,手工重新启动PowerPath服务可以解决这个问题。
# /etc/init.d/PowerPath stop
Stopping PowerPath: PowerPath is not running
done
# /etc/init.d/PowerPath start
Starting PowerPath: done
# powermt display dev=all
Pseudo name=emcpowere
CLARiiON ID=FCNCX093400078 [sh-rsync]
Logical device ID=6006016014A02500A2A3A6100FAADE11 [MetaLUN]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP B Array failover mode: 1
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3 qla2xxx sdb SP B0 active alive 0 0
4 qla2xxx sdc SP A0 active alive 0 0
查看加载的模块:
[root@DB01 ~]# vi /etc/modprobe.conf
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ata_piix
alias scsi_hostadapter2 qla2xxx
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
###BEGINPP
include /etc/modprobe.conf.pp
#ENDPP
之前每次重新配置SAN磁盘emcpower后面的字母就改为后一个,目前是/etc/emcpowere,看来是pseudo设备名字没有删除的原因。
# emcpadm getusedpseudos
PowerPath pseudo device names in use:
Pseudo Device Name Major# Minor#
emcpowera 120 0
emcpowerb 120 16
emcpowerc 120 32
emcpowerd 120 48
emcpowere 120 64