11.2.0.3 RAC 全過程--7.NTP Server

ygzhou518發表於2012-05-25
1.Have a Time server:10.203.94.101
server 127.127.1.0prefer
fudge 127.127.1.0 stratum 11
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
----ALL Node
#vi /etc/ntp.conf
server 10.203.94.101 prefer
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
* 12 *** /usr/sbin/ntpdate 10.203.94.101 >> /root/ntpdate.exe
*/2 * * * * /usr/sbin/ntpdate 10.203.94.101 >> /root/ntpdate.exe

2.Don't have a time server,using one node configure time server(node01)
swhygzhoudb01  10.203.94.141
swhygzhoudb02  10.203.94.142
[root@swhygzhoudb01]#vi /etc/ntp.conf
server 127.127.1.0
fudge 127.127.1.0 stratum 11
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
[root@swhygzhoudb01]#/etc/init.d/ntpd start
[root@swhygzhoudb01]#chkconfig ?level 345 ntpd on
[root@swhygzhoudb01]#ntpq -p
[root@swhygzhoudb02]#vi /etc/ntp.conf
server 10.203.94.141 prefer
driftfile /var/lib/ntp/drift
broadcastdelay 0.008

[root@swhygzhoudb02]#service ntpd stop
[root@swhygzhoudb02]#ntpq -p
[root@swhygzhoudb02]#crontab -e
* 12 *** /usr/sbin/ntpdate 10.203.94.101 >> /root/ntpdate.exe
*/2 * * * * /usr/sbin/ntpdate 10.203.94.101 >> /root/ntpdate.exe

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24867586/viewspace-730992/,如需轉載,請註明出處,否則將追究法律責任。

相關文章