您的位置:首页 > 其它

RAC 两节点的时间不一致

2015-11-20 13:31 239 查看
将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.800best.com
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: