ITPub博客

首页 > 数据库 > Oracle > oracle RAC时钟同步(CTSS)

oracle RAC时钟同步(CTSS)

原创 Oracle 作者:小宇12333 时间:2016-06-29 14:39:57 0 删除 编辑
oracle集群件安装时要求节点间的时钟区域必须一致,时钟时间也建议一致。
11.2以后,安装集群件时有两种时钟同步方式:
1、network time protocol (NTP)
2、Oracle Cluster Time Synchronization Service(CTSS)

官方文档的描述如下:
Oracle Cluster Time Synchronization Service is designed for organizations 
whose cluster servers are unable to access NTP services. 
If you use NTP, then the Oracle Cluster Time Synchronization daemon (ctssd) starts up in observer mode. 
If you do not have NTP daemons,
then ctssd starts up in active mode and synchronizes time among cluster members without contacting an external time server.

==》大致意思是说,CTSS是为没有NTP服务的集群准备的。如果使用NTP,则ctssd运行在observer模式。
    如果不使用NTP,ctssd运行在active模式,即使用ctssd在节点中进行时钟同步。

要启用ctssd,只需要将ntpd关闭就行
# /sbin/service ntpd stop
# chkconfig ntpd off
# rm /etc/ntp.conf  or, mv /etc/ntp.conf to /etc/ntp.conf.org

==>以上步骤完成后,安装集群件预检查时就不会报相关的时钟同步的问题。

集群件安装好后,可以查看时钟同步的信息
[root@db1 ~]# crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 0

==》如果未按上述步骤关闭ntpd,则状态如下
[root@db1 etc]# crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode

另外,相关的log中可以看到时钟同步的信息
[OCTSSD(3629)]CRS-2410: The Cluster Time Synchronization Service on host cpgdb1 is in active mode.
[OCTSSD(3629)]CRS-2408: The clock on host cpgdb1 has been updated by the Cluster Time Synchronization Service to be synchronous with the mean cluster time.

[OCTSSD(3666)]CRS-2407: The new Cluster Time Synchronization Service reference node is host cpgdb2.
[OCTSSD(3666)]CRS-2401: The Cluster Time Synchronization Service started on host cpgdb1.
[OCTSSD(3666)]CRS-2408: The clock on host cpgdb1 has been updated by the Cluster Time Synchronization Service to be synchronous with the mean cluster time.

==>节点1引用节点2的时间

end!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25923810/viewspace-2121179/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-07-22

  • 博文量
    31
  • 访问量
    95060