配置NTP服务器以及解决RAC安装过程的报错PRVF-5439 : NTP daemon does not have slewing option "-x"

来源:互联网 发布:java 启动定时器 编辑:程序博客网 时间:2024/06/14 01:24

配置NTP服务器

配置NTPserver

clock -w
hwclock -s
这两个命令是把设置的时间写到硬件时间中去(也就是CMOS里面的时间)

修改 /etc/ntp.conf文件

修改配置允许局域网内机器与该服务器进行时间同步
将下面语句::
 restrict default kod nomodify notrap nopeer noquery
 修改为::         
 restrict default nomodify

加入:restrict 192.168.6.0 mask 255.255.255.0 -- 让192.168.6网段上的机器能和本机做时间同步
 
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

这两行需要,这是让本机的ntpd和本地硬件时间同步 


配置NTP client



PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option "-x"  - Cause:  NTP daemon on one or more nodes lacked slewing option.  - Action:  Shut down and restart the NTP daemon after setting the slewing option as follows: For Linux, edit /etc/sysconfig/ntpd and add -x to the command line option. For SUSE Linux, edit /etc/sysconfig/ntp and add -x to the OPTIONS variable. For AIX, edit /etc/rc.tcpip and add -x to the command line option. For HP-UX, edit /etc/rc.config.d/netdaemons and add -x to the command line option. For Solaris release 10 or earlier, edit /etc/inet/ntp.conf and add 'slewalways yes' and 'disable pll' to the file. For Solaris release 11 and higher, logon as root user and issue command: /usr/sbin/svccfg -s svc:/network/ntp:default setprop config/slew_always = true to change the setting, then refresh the service by issuing: svcadm refresh svc:/network/ntp:default

0 0