用户执行切换,没有成功,具体原因是当初建设的时候没有使用路径绑定功能,使得在切换后与存储相关的盘符发生变更。与用户协商后,改为多路径绑定,问题解决,过程如下:
1、编辑multipath.conf,如下:
#devnode_blacklist {
# devnode "*"
#}
multipaths {
multipath {
wwid 3600508b4000708a90000e00000510000
alias mpath2
#corresponding sdb
}
multipath {
wwid 3600508b400074a2000005000001f0000
alias mpath1
#corresponding sdc
}
multipath {
wwid 3600508b4000708a90000e00000120000
alias mpath0
#corresponding sda
}
}
2、启动服务
# modprobe dm-multipath
# service multipathd start
# chkconfig multipathd on
3、停止两台机器的双机服务:
# service rgmanager stop
# service fenced stop
# service cman stop
# service ccsd stop
4、更改集群配置文件,使用新的设备名mpath0/1/2替换原有设备
5、启动双机服务:
# service ccsd start
# service cman start
# service fenced start
# service rgmanager start