oracle solaris cluster 4,Oracle Solaris Cluster 4.4 Quorum故障处理

朋友新建的一套osc 4.4环境,安装配置完成后,执行cluster status命令时,会夯住,以下图所示:

b22e9c452b0344afb97ea9fa.html

查看系统日志,发现以下报错:node

Dec 2 09:31:10 sol04 genunix: [ID 108990 kern.notice] NOTICE: CMM: Cluster members: sol03 sol04.

Dec 2 09:31:10 sol04 genunix: [ID 279084 kern.notice] NOTICE: CMM: node reconfiguration #4 completed.

Dec 2 09:31:16 sol04 genunix: [ID 670799 kern.warning] WARNING: CMM: Registering reservation key on quorum device /dev/did/rdsk/d5s2 failed with error 2.

Dec 2 09:31:16 sol04 genunix: [ID 868277 kern.warning] WARNING: CMM: Erstwhile online quorum device /dev/did/rdsk/d5s2 (qid 1) is inaccessible now.

从日志中判断,跟quorum相关。使用clq命令查看quorum设备信息,以下图:

b22e9c452b0344afb97ea9fa.html

由图中得知,d5的Access Mode为scsi3。对于access mode官方的解释(Doc ID 1008224.1)以下图:

b22e9c452b0344afb97ea9fa.html

查看d5的路径,确认其由两个路径组成,以下图:

b22e9c452b0344afb97ea9fa.html

Solaris Cluster 3.1以前的版本,默认的global_fencing值为"pathcount",而3.2以后的版本,官方推荐使用SCSI-3。查看默认的global_fencing值,以下图:

b22e9c452b0344afb97ea9fa.html

设置global_fencing的值,以下:ide

root@sol04:~# cluster set -p global_fencing=pathcount

root@sol04:~# cluster show -t global

b22e9c452b0344afb97ea9fa.html

最后,从quorum中删除d5,先设置d5的access mode为nofencing,再设置为global,最后再添加到quorum中,以下:unix

root@sol04:~# clq remove d5

root@sol04:~# cldevice set -p default_fencing=nofencing 5

root@sol04:~# cldevice set -p default_fencing=global 5

root@sol04:~# clq add d5

root@sol04:~# clq show

b22e9c452b0344afb97ea9fa.html

到此,整个故障完美解决。

其余设备的defaultfencing设置可使用下面的命令检查:日志

root@sol04:~# scdidadm -L -o instance -o defaultfencing -o detectedfencing -o fullpath

b22e9c452b0344afb97ea9fa.html

集群的fencing protocol可使用下面的命令验证:code

root@sol04:~# scdidadm -G

The cluster is currently configured to use DID path count algorithm to determine fencing protocol for shared devices.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值