1837594 Members
4539 Online
110117 Solutions
New Discussion

Regarding NTP confign

 
chindi
Respected Contributor

Regarding NTP confign

Hi guys,
i have a setup of 3 servers which i need to maintain same time in all 3 servers...

in short i have to configure ntp...
but what shuld be d ref clock that i must use ???? ...

out of which 2 r in cluster...my applcn is not time dedpendent until nw...
but an addn of an applcn will make it nw..
so i have to adjust all 3 servers clock immedtly...

Kindly guide me through the confign plzz...
6 REPLIES 6
Grayh
Trusted Contributor

Re: Regarding NTP confign

Login as root to the server and:
1) Edit " /etc/rc.config.d/netdaemons " file on the servers as follows : export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=

2)Edit " /etc/ntp.conf " file in the server with the below entries at the end of the file :

server
3) To Maually start xntpd daemon : # /sbin/init.d/xntpd start
ON the other server :

1)Edit " /etc/rc.config.d/netdaemons " file on the clients side as follows :
export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=
2)Edit " /etc/ntp.conf " file on the other server and add below entries at the end of the file:
server
3)#/sbin/init.d/xntpd start

In case the time synchronisation doesn't start it will definately start at the reboot of respective servers. 95 % it will start w/o reboot.

***Also note the following Two Points:-

1. We put following lines in ntp.conf for a time server that uses its own internal clock.

server 127.127.1.1
fudge 127.127.1.1 stratum=10

The IP address (127.127.1.1) is psuedo IP address that identifies that local system as a time source.

2. In case of client following entries are right

server pluto (
driftfile /etc/ntp.drift
SUDHAKAR_18
Trusted Contributor

Re: Regarding NTP confign

attached doc may help.
chindi
Respected Contributor

Re: Regarding NTP confign

Hi,
what should i be mentioning in the following lines..i mean which IP ...can i give my primary node IP ????

"""1) Edit " /etc/rc.config.d/netdaemons " file on the servers as follows : export NTPDATE_SERVER= 10.1.4.xxxx
SUDHAKAR_18
Trusted Contributor

Re: Regarding NTP confign

Hello chindi,
You use one of server as NTP server and remaining are clients. but you need to check the NTP servers timings periodically.
use NTP servers IP addr in clients for update timings
YAQUB_1
Respected Contributor

Re: Regarding NTP confign

Grayh
Trusted Contributor

Re: Regarding NTP confign

Hi Chindi,

You r corrcet... it is the primary node IP.