oracle ntp 检查报错

./runcluvfy.sh stage -pre crsinst -n oracle57,oracle58 -verbose

[10:06:58]Verifying Network Time Protocol (NTP) ...FAILED [10:06:58]PRVG-1063 : configuration files for more than one time synchronization service [10:06:58]were found on nodes of the cluster [10:06:58]configuration file "/etc/chrony.conf" was found on nodes "oracle58,oracle57" [10:06:58]configuration file "/etc/ntp.conf" was found on nodes "oracle58,oracle57" [10:06:58] [10:06:58] Verifying chrony daemon is synchronized with at least one external time [10:06:58] source ...FAILED [10:06:58] oracle58: PRVG-13606 : chrony daemon is not synchronized with any external [10:06:58] time source on node "oracle58". [10:06:58] [10:06:58] oracle57: PRVG-13606 : chrony daemon is not synchronized with any external [10:06:58] time source on node "oracle57".

提示没有外部的时间源,检查ntpq -p 是正常的,需要确认ntpstat是否显示同步。

ntpstat 显示未同步,ntpq -p 或ntpq -c peers 显示同步到达

[root@oracle58 ~]# ntpstat unsynchronised polling server every 64 s

[root@oracle58 tmp]# ntpq -p remote refid st t when poll reach delay offset jitter

*192.168.1.25 85.199.214.100 2 u 5 64 377 0.406 20.282 8.062

[root@oracle58 tmp]# ntpq -c peers remote refid st t when poll reach delay offset jitter

*192.168.1.25 85.199.214.100 2 u 32 64 377 0.406 20.282 8.062 [root@oracle58 tmp]#

需要检查防火墙,seliunx等配置是否已经关闭。

我的环境是在关闭selinux后,稍等了一会ntpstat显示同步

[root@oracle58 tmp]# ntpstat synchronised to NTP server (192.168.1.25) at stratum 3 time correct to within 195 ms polling server every 64 s [root@oracle58 tmp]#

./runcluvfy.sh stage -pre crsinst -n oracle57,oracle58 -verbose

Failures were encountered during execution of CVU verification request "stage -pre crsinst".

Verifying Network Time Protocol (NTP) ...FAILED PRVG-1063 : configuration files for more than one time synchronization service were found on nodes of the cluster configuration file "/etc/chrony.conf" was found on nodes "oracle58,oracle57" configuration file "/etc/ntp.conf" was found on nodes "oracle58,oracle57"

提示NTP配置了多次,将/etc/ntp.conf删除,再检查即可。

再检查环境,会显示都成功

Pre-check for cluster services setup was successful.

CVU operation performed: stage -pre crsinst Date: Jul 16, 2018 11:29:19 AM CVU home: /tmp/oracle/grid/ User: grid

参考链接 https://www.linuxquestions.org/questions/linux-server-73/ntp-client-error-ntpstat-shows-unsynchronised-749641/