Solved

NTP server periodically desyncs

Posted on 2013-06-04
5
1,048 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
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Nagendra Pratap Singh
Comment Utility
Is it virtual?

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

Author Comment

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

Accepted Solution

by:
frankhelk earned 500 total points
Comment Utility
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
Comment Utility
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 13

Expert Comment

by:frankhelk
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now