如果想将CTSS调整为观察者observer模式,需要如下操作:
<1>、配置/etc/ntp.conf @all nodes
加入远程时间服务器IP,并将原有的注释掉
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool ().
server 10.0.0.11 perfer
#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
<2>、crsctl check ctss 命令检查确保CTSS处于观察者模式 @all nodes
su - grid
$ crsctl check ctss
CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
另外,在master节点查看ctss日志也可以看到ctss模式转换 (日志位置 /log//ctssd/octssd.log)
2018-04-09 18:00:43.627: [ CTSS][2541729536]ctss_check_vendor_sw: Ctssd is switching to observer role
<3>、集群所有节点上启动ntpd服务,并设置开机启动
service ntpd start
chkconfig ntpd on
<4>、使用 cluvf comp clocksync -n all 命令验证时间同步服务正在运行
su - grid
$ cluvfy comp clocksync -n all
这步可能出现 PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option "-x"错误。
“-x”用于阻止ntp向后调整时钟,向后则意味着时间回逆,可能导致数据库、集群问题。
所有节点的/etc/sysconfig/ntpd中加入“-x”即可
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"
然后重启ntpd服务
service ntpd restart
附日志记录
$ cluvfy comp clocksync -n all
验证 各集群节点上的时钟同步
正在检查是否在所有节点上安装了集群件...
集群件的安装检查通过
正在检查 CTSS 资源是否在所有节点上运行...
CTSS 资源检查通过
正在查询所有节点上时间偏移量的 CTSS...
时间偏移量的 CTSS 查询通过
检查 CTSS 状态已启动...
CTSS 处于观察程序状态。使用 NTP 切换到时钟同步检查
正在使用网络时间协议 (NTP) 启动时钟同步检查...
NTP 配置文件检查开始...
NTP 配置文件检查通过
正在检查守护程序的活动性...
"ntpd" 的活动性检查已通过
针对 NTP 守护程序或服务是否活动的检查在所有节点上均已通过
NTP 守护程序快速定向选项检查已通过
快速定向选项的 NTP 引导程序的引导时间配置检查已通过
NTP 公用时间服务器检查开始...
公用 NTP 时间服务器检查通过
与 NTP 时间服务器的时钟时间偏移量检查开始...
时钟时间偏移量检查通过
使用网络时间协议 (NTP) 进行时钟同步检查通过
Oracle 集群时间同步服务检查已通过
各集群节点上的时钟同步 的验证成功。
参考
http://blog.itpub.net/23135684/viewspace-759693/