我有一个在 Windows Server 2016 主机上的 Hyper-V 中运行 Windows Server 2016 的域控制器。我的时间差了9分钟。我已配置以下命令来强制使用自定义 NTP 服务器:
w32tm /config /manualpeerlist:"0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.nt
p.org 3.us.pool.ntp.org" /syncfromflags:MANUAL /reliable:yes
w32tm /resync /rediscover
当我使用重新同步命令时,我的时间就会改变为正确的时间,然后几秒钟后它又恢复到错误的时间+9 分钟。
以下是查询对等体:
#Peers: 4
Peer: 0.us.pool.ntp.org
State: Active
Time Remaining: 0.0000000s
Mode: 1 (Symmetric Active)
Stratum: 2 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 6 (64s)
HostPoll Interval: 6 (64s)
Peer: 1.us.pool.ntp.org
State: Active
Time Remaining: 0.0000000s
Mode: 1 (Symmetric Active)
Stratum: 2 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 6 (64s)
HostPoll Interval: 6 (64s)
Peer: 3.us.pool.ntp.org
State: Active
Time Remaining: 0.0000000s
Mode: 1 (Symmetric Active)
Stratum: 3 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 6 (64s)
HostPoll Interval: 6 (64s)
Peer: 2.us.pool.ntp.org
State: Active
Time Remaining: 0.0000000s
Mode: 1 (Symmetric Active)
Stratum: 3 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 6 (64s)
HostPoll Interval: 6 (64s)
以下是查询配置:
[Configuration]
EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 6 (Local)
MaxPollInterval: 10 (Local)
MaxNegPhaseCorrection: 172800 (Local)
MaxPosPhaseCorrection: 172800 (Local)
MaxAllowedPhaseOffset: 300 (Local)
FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 7 (Local)
UpdateInterval: 100 (Local)
[TimeProviders]
NtpClient (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (Local)
Type: NTP (Local)
NtpServer: 0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org 3.us.pool.ntp.org (Local)
NtpServer (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 0 (Local)
AllowNonstandardModeCombinations: 1 (Local)
VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 0 (Local)
InputProvider: 1 (Local)
以下是主机上的查询对等点:
#Peers: 1
Peer: <dc>.<domain>.local
State: Active
Time Remaining: 116.5376093s
Mode: 3 (Client)
Stratum: 3 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 10 (1024s)
HostPoll Interval: 10 (1024s)
PS <user> w32tm /query /status
Leap Indicator: 0(no warning)
Stratum: 4 (secondary reference - syncd by (S)NTP)
Precision: -6 (15.625ms per tick)
Root Delay: 0.0004871s
Root Dispersion: 10.0527505s
ReferenceId: 0xC0A80116 (source IP: 192.168.1.22)
Last Successful Sync Time: 7/13/2019 9:16:13 AM
Source: <dc>.<domain>.local
Poll Interval: 10 (1024s)
无论我做什么,DC 上的时间都会不断恢复,这也会导致所有工作站的时间都错误。
任何意见均表示感谢。