RAC 两节点的时间不一致


将RAC 加入到GC 监控,这两天有收到  CRS-2412  报错:


Linux: CRS-2412: The Cluster Time Synchronization Service detects that the local time is significantly different from the mean cluster time 


查看两个节点ctss 没有启用

[grid@qs-oradb2 ~]$  crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.


[grid@qs-oradb2 ~]$ date 
Fri Nov 20 13:23:59 CST 2015

[grid@qs-oradb1 ctssd]$ date
Fri Nov 20 13:27:48 CST 2015


节点二的时间比节点一的时间滞后4分钟左右,节点一的时间与其他服务器的时间相同。


其中节点二上运行了ntp 服务器

[oracle@qs-oradb1 ~]$ service ntpd status
ntpd is stopped

[grid@qs-oradb2 ~]$  service ntpd status
ntpd (pid  8511) is running...


从下面的信息可以知道,节点二会从0.rhel.pool.ntp.org 获取时间 。

[grid@qs-oradb2 ~]$ cat /etc/ntp.conf 
# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface.  This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1 
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.rhel.pool.ntp.org iburst
server 1.rhel.pool.ntp.org iburst
server 2.rhel.pool.ntp.org iburst
server 3.rhel.pool.ntp.org iburst

[grid@qs-oradb2 ~]$ ping 0.rhel.pool.ntp.org
PING 0.rhel.pool.ntp.org (202.112.29.82) 56(84) bytes of data.
64 bytes from dns1.synet.edu.cn (202.112.29.82): icmp_seq=1 ttl=48 time=146 ms
64 bytes from dns1.synet.edu.cn (202.112.29.82): icmp_seq=2 ttl=48 time=143 ms
^C
--- 0.rhel.pool.ntp.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1267ms
rtt min/avg/max/mdev = 143.045/144.746/146.447/1.701 ms
[grid@qs-oradb2 ~]$ 



同时每个节点root 用户下 都配置了 时间同步的脚本:


 */30 * * * * /usr/sbin/ntpdate ntp-laqingshanhu-01.800best.com

通过上面的信息推理可得,肯定是节点二 开启了 ntp 服务,导致其与其他节点的时间不一致,


处理方法:

停用节点二的NTP 服务,手动执行下  /usr/sbin/ntpdate ntp-laqingshanhu-01.xxxx.com

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

huangliang0703

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值