Oracle Cluster Time Synchronization Service (CTSS)
以前我安装rac的同步都是用的ntp,后来oracle引入ctss,以下为官方介绍
The Cluster Time Synchronization Service (CTSS) is installed as part of Oracle Clusterware. By default the CTSS runs in observer mode if it detects a time synchronization service or a time synchronization service configuration, valid or broken, on the system. If CTSS detects that there is no time synchronization service or time synchronization service configuration on any node in the cluster, then CTSS goes into active mode and takes over time management for the cluster
如果ctss本身就处于active模式,当有新的节点加入进来时,会将新节点的时间与cluster的引用时间比较差值,如果这个差值在一定范围内,则ctss对其进行同步。如果超出了这个范围,ctss会执行slew time synchronization,将新节点的时间增速加快或者调慢,直到与引用时间同步。
Verification of Clock Synchronization across the cluster nodes was unsuccessful on all the specified nodes.
Failures were encountered during execution of CVU verification request "Clock Synchronization across the cluster nodes".
Verifying Clock Synchronization ...FAILED Verifying Network Time Protocol (NTP) ...FAILED Verifying '/var/run/ntpd.pid'...WARNING PRVG-1019 : The NTP configuration file "/var/run/ntpd.pid" does not exist on nodes "rac2,rac1"
Verifying '/var/run/chronyd.pid'...WARNING PRVG-1019 : The NTP configuration file "/var/run/chronyd.pid" does not exist on nodes "rac2,rac1"
Verifying Daemon 'ntpd'...FAILED PRVG-1024 : The NTP daemon or Service was not running on any of the cluster nodes.
rac2: PRVF-7590 : "ntpd" is not running on node "rac2" rac2: Liveness check failed for"ntpd"
rac1: PRVF-7590 : "ntpd" is not running on node "rac1" rac1: Liveness check failed for"ntpd"
Verifying Daemon 'chronyd'...FAILED PRVG-1024 : The NTP daemon or Service was not running on any of the cluster nodes.
rac2: PRVF-7590 : "chronyd" is not running on node "rac2" rac2: Liveness check failed for"chronyd"
rac1: PRVF-7590 : "chronyd" is not running on node "rac1" rac1: Liveness check failed for"chronyd"
CVU operation performed: Clock Synchronization across the cluster nodes Date: Sep 20, 2018 4:01:05 PM CVU home: /u01/app/12.2.0/grid/ User: grid
检查ctss的状态
1 2
[grid@rac1 ~]$ crsctl check ctss CRS-4700: The Cluster Time Synchronization Service is in Observer mode