L0cayta
Contributor
Contributor

ntp offset

Hi there.

I have a windows 2008 r2 domain controller that i want to use as my ntp server for my esxi 5.0 hosts. When i point my hosts to this ntp server i am seeing a high offset and time is not syncing.

Here's an example:

/var/log # ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
locvmdc01.savvi .LOCL.           1 u   23   64    7    0.488  68839.7 12128.9

and my config:

/var/log # cat /etc/ntp.conf
restrict default kod nomodify notrap nopeer
restrict 127.0.0.1
server locvmdc01
driftfile /etc/ntp.drift

DNS resolves fine and NTP port is open.

0 Kudos
3 Replies
VTsukanov
Virtuoso
Virtuoso

Hello

Try to execute

/etc/init.d/ntpd restart

+

ntpq -pn

?

0 Kudos
abirhasan
Enthusiast
Enthusiast

Try these steps, may help..

1. nano -w /etc/ntp.conf

  1. Prohibit general access to this service.

2. nano -w /etc/ntp/step-tickers

x.x.x.x

3.  esxcfg-firewall -e ntpClient

4.  service mgmt-vmware restart

5.  service ntpd stop

6.  date (MMDDhhmm)

7.  service ntpd start

8.  chkconfig --list ntpd

  • ntpd            0:off   1:off   2:on    3:on    4:on    5:on    6:off

(chkconfig --level 3 ntpd on)

9.  ntpq -p

*x.x.x.x

(This is what it should look like when you are done and synched)

10. Sync Local clock with hardware clock

hwclock --systohc --utc

11. nano -w /etc/sysconfig/clock

  • UTC=true

12. reboot

_______________________________________________

(reboot host)

_______________________________________________

1. /etc/ntp.conf : Add the following

restrict Windows Server IP Address mask 255.255.255.255 nomodify notrap noquery

server Windows Server FQDN

2. /etc/ntp/step-tickers : Add

server Windows Server FQDN

3. /etc/hosts : add entry for your Windows time source

4. At console:

5. At console: chkconfig --level 345 ntpd on

6. At console: /sbin/hwclock --systohc

7. At console: watch ntpq -p

For  #7 wait until the asterisk goes beside your PDC emulator or the time  source you have specified. It may not be right away and I've had it take  a while.

abirhasna 
0 Kudos
VTsukanov
Virtuoso
Virtuoso

Take a look at Troubleshooting NTP on ESX and ESXi

Because time offset is more then 1000 sec, you need change local time (over hwclock & date) to true time in UTC

0 Kudos