Solved

NTP server periodically desyncs

Posted on 2013-06-04
5
1,106 Views
Last Modified: 2013-12-02
Some time ago our NTP server (on Win SBS 2011 Std) started to desync occasionally. It can get 8 minutes slow overnight. Then after running w32tm /resync /rediscover it works fine for some time.
Configuration and status output (sorry that some of it is messed up. SBS doesn't allow changing the output language once it's been set up):
PS C:\Windows\system32> w32tm /query /configuration /verbose
[¿¿¿¿¿¿¿¿¿]

EventLogFlags: 2 (¿¿¿¿¿¿¿¿)
AnnounceFlags: 5 (¿¿¿¿¿¿¿¿)
TimeJumpAuditOffset: 28800 (¿¿¿¿¿¿¿¿)
MinPollInterval: 6 (¿¿¿¿¿¿¿¿)
MaxPollInterval: 10 (¿¿¿¿¿¿¿¿)
MaxNegPhaseCorrection: 3600 (¿¿¿¿¿¿¿¿)
MaxPosPhaseCorrection: 3600 (¿¿¿¿¿¿¿¿)
MaxAllowedPhaseOffset: 300 (¿¿¿¿¿¿¿¿)

FrequencyCorrectRate: 4 (¿¿¿¿¿¿¿¿)
PollAdjustFactor: 5 (¿¿¿¿¿¿¿¿)
LargePhaseOffset: 50000000 (¿¿¿¿¿¿¿¿)
SpikeWatchPeriod: 900 (¿¿¿¿¿¿¿¿)
LocalClockDispersion: 10 (¿¿¿¿¿¿¿¿)
HoldPeriod: 5 (¿¿¿¿¿¿¿¿)
PhaseCorrectRate: 7 (¿¿¿¿¿¿¿¿)
UpdateInterval: 100 (¿¿¿¿¿¿¿¿)

FileLogName:  (¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿)
FileLogEntries:  (¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿)
FileLogSize: 0 (¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿)
FileLogFlags: 0 (¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿)

[TimeProviders]

NtpClient (¿¿¿¿¿¿¿¿)
DllName: C:\Windows\system32\w32time.dll (¿¿¿¿¿¿¿¿)
Enabled: 1 (¿¿¿¿¿¿¿¿)
InputProvider: 1 (¿¿¿¿¿¿¿¿)
CrossSiteSyncFlags: 0 (¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿)
AllowNonstandardModeCombinations: 1 (¿¿¿¿¿¿¿¿)
ResolvePeerBackoffMinutes: 15 (¿¿¿¿¿¿¿¿)
ResolvePeerBackoffMaxTimes: 7 (¿¿¿¿¿¿¿¿)
CompatibilityFlags: 2147483648 (¿¿¿¿¿¿¿¿)
EventLogFlags: 1 (¿¿¿¿¿¿¿¿)
LargeSampleSkew: 3 (¿¿¿¿¿¿¿¿)
SpecialPollInterval: 900 (¿¿¿¿¿¿¿¿)
Type: NTP (¿¿¿¿¿¿¿¿)
NtpServer: time.windows.com,0x1 (¿¿¿¿¿¿¿¿)

NtpServer (¿¿¿¿¿¿¿¿)
DllName: C:\Windows\system32\w32time.dll (¿¿¿¿¿¿¿¿)
Enabled: 1 (¿¿¿¿¿¿¿¿)
InputProvider: 0 (¿¿¿¿¿¿¿¿)
AllowNonstandardModeCombinations: 1 (¿¿¿¿¿¿¿¿)
EventLogFlags: 0 (¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿ ¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿)

VMICTimeProvider (¿¿¿¿¿¿¿¿)
DllName: C:\Windows\System32\vmictimeprovider.dll (¿¿¿¿¿¿¿¿)
Enabled: 1 (¿¿¿¿¿¿¿¿)
InputProvider: 1 (¿¿¿¿¿¿¿¿)

Open in new window

PS C:\Windows\system32> w32tm /query /status /verbose
¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿: 0(¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿)
¿¿¿¿¿¿: 3 (¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿ - ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿ ¿¿¿¿¿¿¿ (S)NTP)
¿¿¿¿¿¿¿¿: -6 (15.625ms ¿¿ ¿¿¿¿ ¿¿¿¿¿¿¿)
¿¿¿¿¿¿¿¿ ¿¿¿¿¿: 0.2534276s
¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿: 6.2850124s
ReferenceId: 0x40040A21 (IP-¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿:  64.4.10.33)
Last Successful Sync Time: 05.06.2013 9:19:51
Source: time.windows.com,0x1
¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿: 6 (64s)

¿¿¿¿¿¿¿¿ ¿¿¿¿: 0.0000678s
¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿: 0.0156121s
¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿: 3 (¿¿¿¿¿)
¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿: 0 (¿¿¿)
Server Role: 576 (¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿¿¿)
Last Sync Error: 2 (The computer did not resync because only stale time data was available.)
Time since Last Good Sync Time: 162.4468032s

Open in new window

It says Last Successful Sync Time: 05.06.2013 9:19:51 but I checked shortly after this time and it was 8 minutes slow. Yesterday everything was okay. The server is the only time server and DC in our domain.
Why does this happen?
Thank you.
0
Comment
Question by:PavelTMN
[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
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 39221569
Is it virtual?

Do you have any other time-sync tools installed on it?
0
 
LVL 1

Author Comment

by:PavelTMN
ID: 39221629
No, it's not virtual and there aren't any time-sync tools except built-in ones.
0
 
LVL 14

Accepted Solution

by:
frankhelk earned 500 total points
ID: 39224840
Hmm - I've had hassle with W32time in NTP mode whenever I used it.

My recommendation would be to just disable W32time and use "the real thing" - a Windows port of the standard NTP implementation. See here for a list.

Furthermore I would recommend to use the service at pool.ntp.org for a selection of time servers. Try these time server entries in your ntp.conf:
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst

Open in new window

0
 
LVL 1

Author Comment

by:PavelTMN
ID: 39227907
I would recommend to use the service at pool.ntp.org
I changed the NTP server to one suggested by you and so far the errors have disappeared along with skewing.
w32tm /config /syncfromflags:manual /manualpeerlist:3.ru.pool.ntp.org
w32tm /config /update
w32tm /resync
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 39228201
Just to improve the quality of the NTP service even further, I would recommend to supply more server entries. That way W32time (if you persist to cling to it ...) or ntpd (the native NTP daemon) would be able to choose the best time source from a group of servers.

Just try

w32tm /config /syncfromflags:manual /manualpeerlist:0.ru.pool.ntp.org,1.ru.pool.ntp.org,2.ru.pool.ntp.org,3.ru.pool.ntp.org
w32tm /config /update
w32tm /resync

Open in new window

0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

This is my 3rd article on SCCM in recent weeks, the 1st (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html) dealing with installat…
You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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