{"id":1390,"date":"2014-09-11T00:07:34","date_gmt":"2014-09-11T05:07:34","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=1390"},"modified":"2014-09-11T00:07:34","modified_gmt":"2014-09-11T05:07:34","slug":"mpecs-inc-blog-hyper-v-vm-set-up-pdce-ntp-time-server-plus-other-dcs-time-service","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=1390","title":{"rendered":"MPECS Inc. Blog: Hyper-V VM: Set Up PDCe NTP Time Server plus other DC&#8217;s time service"},"content":{"rendered":"<table width=\"100%\">\n<tbody>\n<tr>\n<td width=\"99%\">\n<h1><a href=\"http:\/\/blog.mpecsinc.ca\/\">MPECS Inc. Blog: Hyper-V VM: Set Up PDCe NTP Time Server plus other DC&#8217;s time service<\/a><\/h1>\n<\/td>\n<td width=\"1%\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td><a href=\"http:\/\/feedproxy.google.com\/~r\/MpecsIncBlog\/~3\/da5Phss1jXA\/hyper-v-vm-set-up-pdce-ntp-time-server.html?utm_source=feedburner&amp;utm_medium=email\"><strong>Hyper-V VM: Set Up PDCe NTP Time Server plus other DC&#8217;s time service<\/strong><\/a><\/p>\n<p>Posted: 09 Sep 2014 10:11 AM PDT<\/p>\n<p>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.<\/p>\n<p>We&#8217;ve had situations where anomalies in the time setup have brought down clusters (node&#8217;s time was out of whack).<\/p>\n<p>In Hyper-V Management disable time integration for the DC(s).<\/p>\n<p>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):<\/p>\n<p>w32tm \/config \/syncfromflags:manual &#8220;\/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&#8221; \/reliable:yes<br \/>\nw32tm \/config \/update<br \/>\nnet stop w32time &amp;&amp; net start w32time<br \/>\nw32tm \/resync \/force<br \/>\nw32tm \/query \/source<\/p>\n<p>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.<\/p>\n<p>On every other DC in the domain we run the following steps in an elevated CMD:<br \/>\nw32tm \/config \/syncfromflags:domhier \/reliable:no \/update<br \/>\nnet stop w32time &amp;&amp; net start w32time<br \/>\nw32tm \/resync \/force<br \/>\nw32tm \/query \/source<\/p>\n<p>Note that the above step(s)\u00a0may need to be run a couple of times to get the settings to seat.<br \/>\nOnce the above setup has been completed the domain&#8217;s time should remain on time. If there are any issues with time, that is it starts to slip or jumps ahead, check in Hyper-V Management to see if the IS setting for Time Sync has not somehow become enabled again.<\/p>\n<p>If it has run the above steps again to reseat the settings.<\/p>\n<p>NOTE: For SQL or high load VMs that tend to skew time, we&#8217;ve seen situations where the VM&#8217;s time skews before our eyes, then set up a BATCH file with the following in it:<br \/>\nw32tm \/resync \/force<\/p>\n<p>Set it to run in the VM&#8217;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.<\/p>\n<p>Philip Elder<br \/>\n<a href=\"http:\/\/bit.ly\/1h5KITm\"><strong>Microsoft Cluster MVP<\/strong><\/a><br \/>\nMPECS Inc.<br \/>\nCo-Author: SBS 2008 Blueprint Book<br \/>\nChef de partie in the SMBKitchen ASP Project<br \/>\nFind out more at<br \/>\n<a href=\"http:\/\/bit.ly\/OmRUzK\"><strong>Third Tier: Enterprise Solutions for Small Business<\/strong><\/a><\/p>\n<p><a href=\"http:\/\/feeds.feedburner.com\/MpecsIncBlog\"><strong>Subscribe in a reader<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MPECS Inc. Blog: Hyper-V VM: Set Up PDCe NTP Time Server plus other DC&#8217;s time service Hyper-V VM: Set Up PDCe NTP Time Server plus other DC&#8217;s time service Posted: 09 Sep 2014 10:11 AM PDT When we are running &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=1390\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1390","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1390"}],"version-history":[{"count":1,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1390\/revisions"}],"predecessor-version":[{"id":1391,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1390\/revisions\/1391"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1390"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}