PDCe 不接受外部时间源

PDCe 不接受外部时间源

我注意到我们的 PDCe 运行时间晚了 1 分 20 秒,当然,网络中的其他设备也一样。我尝试与外部时间源同步,但进展不顺利。

这是基于 XenServer 6.0.0 的虚拟 Windows Server 2008 R2。主机使用 ptbtime1.ptb.de 和 ptbtime2.ptb.de 作为 NTP 服务器,时间正确。PDCe(理论上)具有相同的 NTP 服务器,但时间大约晚了 80 秒。我说“理论上”是因为HKLM\SYSTEM\CurrentControlSet\services\W32Time\Parameters\NtpServer有值ptbtime1.ptb.de ptbtime2.ptb.de(我也试过,ptbtime1.ptb.de,0x1 ptbtime2.ptb.de,0x1但没有结果),但当我在 PowerShell 中尝试时

PS C:\>w32tm /query /peers
Number peers: 1

Peer:
Status: Pending
Time Remaining: 94.6710000s
Mode: 0 (Reserved)
Stratum: 0 (not specified)
Peer polling interval: 0 (not specified)
Host polling interval: 0 (not specified)

PS C:\>w32tm /query /configuration
[Configuration]

EventLogFlags: 2 (Directive)
AnnounceFlags: 10 (directive)
TimeJump Audit Offset: 28800 (Local)
MinPollInterval: 6 (Directive)
MaxPollInterval: 10 (directive)
MaxNegPhaseCorrection: 172800 (directive)
MaxPosPhaseCorrection: 172800 (directive)
MaxAllowedPhaseOffset: 300 (directive)

FrequencyCorrectRate: 4 (Policy)
PollAdjustFactor: 5 (directive)
LargePhaseOffset: 50000000 (directive)
SpikeWatchPeriod: 900 (directive)
Local Clock dispersion: 10 (directive)
Hold Period: 5 (directive)
PhaseCorrectRate: 1 (directive)
UpdateInterval: 100 (directive)


[Time Provider]

NtpClient (Local)
DllName: C: \ Windows \ system32 \ w32time.dll (Local)
Enabled: 1 (Local)
Input providers: 1 (Local)
CrossSiteSyncFlags: 2 (Directive)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (directive)
ResolvePeerBackoffMaxTimes: 7 (Directive)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 0 (directive)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (directive)
Type: NT5DS (directive)

NtpServer (Local)
DllName: C: \ Windows \ system32 \ w32time.dll (Local)
Enabled: 1 (Local)
Input providers: 0 (Local)
AllowNonstandardModeCombinations: 1 (Local)

VMICTimeProvider (Local)
DllName: C: \ Windows \ System32 \ vmictimeprovider.dll (Local)
Enabled: 1 (Local)
Input providers: 1 (Local)

我还尝试通过 cmdlet 设置HKLM\SYSTEM\CurrentControlSet\services\W32Time\Config\AnnounceFlagsNTP服务器并再次设置A5

PS C:\> w32tm.exe /config /manualpeerlist:"ptbtime1.ptb.de ptbtime2.ptb.de" /syncfromflags:manual /reliable:YES /update
PS C:\> w32tm /config /update
PS C:\> w32tm /resync
PS C:\> Restart-Service w32time

我不明白为什么服务器无法与外部 NTP 服务器同步。我不知道 XenServer 是否在这个问题中扮演了某种角色。无论如何,客户机中的时间与主机中的时间不一样。

更新 23.9

PS C: \> w32tm / query / configuration
[Configuration]

EventLogFlags: 2 (Directive)
AnnounceFlags: 10 (directive)
TimeJump Audit Offset: 28800 (Local)
MinPollInterval: 6 (Directive)
MaxPollInterval: 10 (directive)
MaxNegPhaseCorrection: 172800 (directive)
MaxPosPhaseCorrection: 172800 (directive)
MaxAllowedPhaseOffset: 300 (directive)

FrequencyCorrectRate: 4 (Policy)
PollAdjustFactor: 5 (directive)
LargePhaseOffset: 50000000 (directive)
SpikeWatchPeriod: 900 (directive)
Local Clock dispersion: 10 (directive)
Hold Period: 5 (directive)
PhaseCorrectRate: 1 (directive)
UpdateInterval: 100 (directive)


[Time Provider]

NtpClient (Local)
DllName: C: \ Windows \ system32 \ w32time.dll (Local)
Enabled: 1 (Local)
Input providers: 1 (Local)
CrossSiteSyncFlags: 2 (Directive)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (directive)
ResolvePeerBackoffMaxTimes: 7 (Directive)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 0 (directive)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (directive)
Type: NT5DS (directive)

NtpServer (Local)
DllName: C: \ Windows \ system32 \ w32time.dll (Local)
Enabled: 1 (Local)
Input providers: 0 (Local)
AllowNonstandardModeCombinations: 1 (Local)

VMICTimeProvider (Local)
DllName: C: \ Windows \ System32 \ vmictimeprovider.dll (Local)
Enabled: 1 (Local)
Input providers: 1 (Local)

答案1

Type: NT5DS (directive)- 告诉我 PDCe 正在与域层次结构同步,而不是与外部时间源同步。

您应该确保加入域的计算机(包括域控制器在内的所有计算机)未与 XenServer 主机同步时间。如果来宾上启用了与主机同步时间的时间同步集成服务/工具,则应禁用它。PDCe 应仅与外部时间源同步,所有其他域客户端应与域层次结构同步。

在 PDCe 上尝试以下命令:

W32tm /unregister
Net stop w32time
W32tm /register
Net start w32time
w32tm.exe /config /manualpeerlist: "ptbtime1.ptb.de ptbtime2.ptb.de" /syncfromflags:manual /reliable:YES /update
Net stop w32time
Net start w32time

相关内容