MPECS Inc. Blog: Hyper-V VM: Set Up PDCe NTP Time Server plus other DC’s time service |
Hyper-V VM: Set Up PDCe NTP Time Server plus other DC’s time service
Posted: 09 Sep 2014 10:11 AM PDT When we are running a greenfield deployment, a migration, or a domain reconfiguration one of the key configurations to get right is the Domain Time setup. We’ve had situations where anomalies in the time setup have brought down clusters (node’s time was out of whack). In Hyper-V Management disable time integration for the DC(s). On the primary DC (PDCe) VM that will be the time authority for the domain we run the following steps (please copy and paste into NotePad to clean up): w32tm /config /syncfromflags:manual “/manualpeerlist:0.ca.pool.ntp.org,0x1 1.ca.pool.ntp.org,0x1 2.ca.pool.ntp.org,0x1 3.ca.pool.ntp.org,0x1” /reliable:yes If you hit ENTER after the last line above and copy from the line underneath to the beginning of the first line and paste into an elevated CMD all of the steps will run automagically. Note that the NTP.ORG servers are Canadian localized. There are servers for most regions in the world. On every other DC in the domain we run the following steps in an elevated CMD: Note that the above step(s) may need to be run a couple of times to get the settings to seat. If it has run the above steps again to reseat the settings. NOTE: For SQL or high load VMs that tend to skew time, we’ve seen situations where the VM’s time skews before our eyes, then set up a BATCH file with the following in it: Set it to run in the VM’s Task Scheduler every five minutes. If time still gets too far out of whack then decrease the time increment until the VM keeps its time as much as possible. Philip Elder |