Solved

ESXi 4.1 NTP client not syncing time

Posted on 2011-09-13
7
3,015 Views
Last Modified: 2012-05-12
I installed ESXi v4.1 on several servers and configured NTP to synchronize the time using my internal NTP server which runs on my core switch.  In order to get NTP to sync, I had to restart the management agent on each host.  So my question is why is this step necessary, shouldn't that happen automatically when the host is rebooted?

I rebooted several times, but time would not sync until I manually went to the ESXi console and restarted the management agents.  This has me wondering if NTP will continue to sync or if it will break again after the next reboot.

Since these servers will be deployed out to satellite offices, there will not be IT staff around to check up on them periodically, and I would like to ensure that their NTP configuration continues to work, and I'm not sure that will be the case if you have to restart the management agents manually after booting the host to get it to sync.
0
Comment
Question by:FWeston
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 120
ID: 36532207
NTP Time Sync with ESXi 4.1 syncs at random time intervals, what makes you think that time syncing is not occuring?

Have you setup NTP correctly to start at boot? using the vSphere GUI client?
0
 
LVL 3

Author Comment

by:FWeston
ID: 36532471
The fact that I set up NTP, restarted the NTP service, came back 30 minutes later and the time was still incorrect leads me to believe that NTP was not syncing.  Then I rebooted, waited another 30 minutes, same result.  Then I restarted the management agents and it synced within 5 minutes.

My point is that shouldn't the management agents be restarted every time the host reboots?  If that's the case, then what's different about me restarting the host and NTP not syncing vs manually restarting the management agents after which the NTP sync did work?

I guess after the initial sync, I don't care when it syncs, but I just want to make sure that once I have gotten it to sync once, it should be good to go forever?
0
 
LVL 120
ID: 36532542
Is your NTP source accurate and correct?

If you start or restart the NTP service from the vSphere GUI Client, it should Sync immediately, if the time source is correct.

You should not have to restart network management agents, to force a sync.

What is your NTP source?
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 120
ID: 36532583
If you do not have a Stable NTP time source, ESX NTP will not sync and it will ignore the time source.

we've certainly not experienced any issues with ESX NTP sync, and we have many ESX installations in our offices, and we manage many client installations at our datacentre, and have many clients that manage their own.

We have seen if NTP source is not stable, ESX will not sync, and ignore NTP, we are also aware that VMware admins, are unhappy, that there is no regular interval, e.g. ever 600 seconds that it syncs, and there was no last sync time provided for diagnostics.

But usuaully, Stopping and Starting should Sync immediately, providing accurate and stable time source.
0
 
LVL 10

Expert Comment

by:BloodRed
ID: 36533753
Check out this ESXi NTP guide:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003063

Also, try setting your hardware clock to be consistent with the system clock which is updated via the NTP daemon with the '/sbin/hwclock --systohc' command.

What settings does your NTP source use? ESX's NTP client can be picky about the time dispersion setting of it's NTP source, check out this KB for more details.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=103583
0
 
LVL 3

Author Comment

by:FWeston
ID: 36536087
My NTP source is my core Cisco switch, which is both accurate and reliable.  It seems to be staying synced now, but I'm confused as to why I had to restart the management agents to get it to sync the first time.
0
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 36536659
The only thing that springs to mind, is that the NTP service was not running or hung.

Meinberg NTP software has helped us many times, install it on a PC or Server, point to your internal NTP host, and it will create graphs, and warn if down or accuracy.

http://www.meinberg.de/english/sw/ntp.htm

We have found in the past when using Cisco routers, if the Upstream NTP source was down, the Cisco routers did not output correct time, and was ignored by ESX servers, hence why have now moved over to our own NTP servers, which sync from multiple sources, or Symmetricom NTP appliances

http://www.symmetricom.com/products/ntp-servers/ntp-network-appliances/

If using a GPS based device, you can be guaranteed of a correct time source, 24x7, 365 days a year, rather than relying on internet based time sources.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question