<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>thinking sysadmin &#187; timekeeping</title>
	<atom:link href="http://andyleonard.com/tag/timekeeping/feed/" rel="self" type="application/rss+xml" />
	<link>http://andyleonard.com</link>
	<description>qstat -u aleonard -s z</description>
	<lastBuildDate>Sun, 22 Jan 2012 03:46:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VMware Tools Upgrade on CentOS Enables Host Time Sync (plus fix)</title>
		<link>http://andyleonard.com/2010/11/12/vmware-tools-upgrade-on-centos-enables-host-time-sync-plus-fix/</link>
		<comments>http://andyleonard.com/2010/11/12/vmware-tools-upgrade-on-centos-enables-host-time-sync-plus-fix/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 18:53:22 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[virtualization]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[time sync]]></category>
		<category><![CDATA[timekeeping]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware tools]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=540</guid>
		<description><![CDATA[After bringing some CentOS guests from an ESX 3.5 environment to an ESXi 4.1 environment and performing a VMware Tools upgrade, I noticed log messages on the VMs similar to the following: Along with console messages about the cmos clock such as: Inspecting the affected VMs, the clock appeared to be losing almost a second [...]]]></description>
			<content:encoded><![CDATA[<p>After bringing some CentOS guests from an ESX 3.5 environment to an ESXi 4.1 environment and performing a VMware Tools upgrade, I noticed log messages on the VMs similar to the following:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
Nov 12 09:07:18 node01 ntpd[2574]: time reset +175.995101 s
</pre>
<p>Along with console messages about the cmos clock such as:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
time.c can't update cmos clock from 0 to 59
</pre>
<p>Inspecting the affected VMs, the clock appeared to be losing almost a second each second, despite ntpd being up and running and kernel options set appropriately.  Further investigation revealed that &#8220;Synchronize guest time with host&#8221; had been silently enabled for the guest during the Tools upgrade, contrary to VMware&#8217;s <a href="http://kb.vmware.com/kb/1006427">Timekeeping best practices</a>.</p>
<p>To be fair, I don&#8217;t know how widespread this problem is &#8211; it could be particular to CentOS, ESX 3.5 to 4.1 migrations, the fact that the virtual hardware hasn&#8217;t yet been upgraded from version 4 to version 7, or even my method of upgrading the tools.  However, once you know to look for this issue, the resolution is simple: Disable host time sync.  You can do this manually, or, if you use Puppet to manage your Linux VMs, the following manifest snippet will automate this for you (assuming you have a &#8220;vmware-tools&#8221; Service):</p>
<pre class="brush: plain; title: ; notranslate">
exec { &quot;Disable host time sync&quot;:
  onlyif =&gt; &quot;/usr/bin/test `/usr/bin/vmware-toolbox-cmd timesync status` = 'Enabled'&quot;,
  command =&gt; &quot;/usr/bin/vmware-toolbox-cmd timesync disable&quot;,
  require =&gt; Service[&quot;vmware-tools&quot;],
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2010/11/12/vmware-tools-upgrade-on-centos-enables-host-time-sync-plus-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links, 9/10/2008</title>
		<link>http://andyleonard.com/2008/09/10/links-9102008/</link>
		<comments>http://andyleonard.com/2008/09/10/links-9102008/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 19:57:08 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[link dump]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[timekeeping]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=80</guid>
		<description><![CDATA[Timekeeping best practices for Linux &#8211; &#8220;This article presents best practices for Linux timekeeping. These recommendations include specifics on the particular kernel command line options to use for the Linux operating system of interest. There is also a description of the recommended settings and usage for NTP time sync, configuration of VMware Tools time synchronization, [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1006427">Timekeeping best practices for Linux</a> &#8211; &#8220;This article presents best practices for Linux timekeeping. These recommendations include specifics on the particular kernel command line options to use for the Linux operating system of interest. There is also a description of the recommended settings and usage for NTP time sync, configuration of VMware Tools time synchronization, and Virtual Hardware Clock configuration, to achieve best timekeeping results.&#8221;  Where has this document been since I started deploying VMware?  Oh, wait, looks like it may have been written on August 19th&#8230; Still, thanks, VMware &#8211; exactly what I wanted!</li>
<li><a href="http://viops.vmware.com/home/index.jspa">VI:OPS</a> &#8211; A new VMware site: &#8220;We created VI:OPS to widen the discussion beyond pure, deep technical by adding five topics that VMware staff, partners and customers talk about all the time but where there is no online collaboration facility for these topics.&#8221;  I found the above link through a post on this site.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/09/10/links-9102008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What I Think You Ought to Read, 6/20/2008</title>
		<link>http://andyleonard.com/2008/06/20/what-i-think-you-ought-to-read-6202008/</link>
		<comments>http://andyleonard.com/2008/06/20/what-i-think-you-ought-to-read-6202008/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 19:14:52 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[link dump]]></category>
		<category><![CDATA[10GbE]]></category>
		<category><![CDATA[emc]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[infiniband]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[netapp]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[time sync]]></category>
		<category><![CDATA[timekeeping]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=35</guid>
		<description><![CDATA[Red Hat adopts KVM: what happens to Xen now? &#8211; I work in a VMware ESX shop right now (other than all those Solaris Zones and FreeBSD Jails and OpenVZ VEs, that is) &#8211; no Xen or KVM. However, given the serious pain in the butt that timekeeping is in Linux guests on ESX, I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.virtualization.info/2008/06/red-hat-adopts-kvm-what-happens-to-xen.html">Red Hat adopts KVM: what happens to Xen now?</a> &#8211; I work in a VMware ESX shop right now (other than all those Solaris Zones and FreeBSD Jails and OpenVZ VEs, that is) &#8211; no Xen or KVM.  However, given the serious pain in the butt that <a href="http://www.vmware.com/vmtn/resources/238">timekeeping</a> is in Linux guests on ESX, I&#8217;ve been sorely tempted to look at running Xen for some Linux virtuals under CentOS 5, in the hopes that this isn&#8217;t a problem there.  Guess I&#8217;ll hold off on that now.  (Yeah, I&#8217;ve read <a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&#038;docType=kc&#038;externalId=2219&#038;sliceId=2&#038;docTypeID=DT_KB_1_1&#038;dialogID=10042001&#038;stateId=1%200%2010038992">all</a> <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1420">the</a> <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1518">docs</a>, and Linux time sync generally sorta kinda usually works until it doesn&#8217;t &#8211; it just shouldn&#8217;t be that much of a flail.)</li>
<li><a href="http://virtualgeek.typepad.com/virtual_geek/2008/06/10-gigabit-ethe.html">10 Gigabit Ethernet and VMware &#8211; A Match Made in Heaven</a> &#8211; Lengthy and interesting article on 10GbE, VMware, consolidation and datacenter Ethernet &#8211; dismissive of Infiniband&#8217;s chances of becoming the One True Network Fabric.</li>
<li><a href="http://www.blocksandfiles.co.uk/article/5663">Blocks and Files: Between a server or storage array place</a> &#8211; More <a href="http://andyleonard.com/2008/06/20/emcs-flash-blind-spot/">commentary</a> on <a href="http://chucksblog.typepad.com/chucks_blog/2008/06/more-examples-o.html">Chuck&#8217;s commentary</a> on HP&#8217;s flash announcement.  Quote: &#8220;Another aspect of this is that a flash SSD cache for a servers needs to plug in to the server&#8217;s bus and the supplier doesn&#8217;t have to worry about getting a Fibre Channel interface onto flash SSDs which is needed to plug them into existing Fibre Channel slots in a storage array. STEC has an effective monopoly on this (with EMC having its own mini-monopoly because of its exclusivity deal with STEC which ends in a few months) until Emulex&#8217; SSD-tweaked SATA-to-FC bridge chip becomes available at the end of the year. &#8221;  Which is probably why NetApp recently announced <a href="http://www.netapp.com/us/products/storage-systems/performance-acceleration-module/">this</a> instead of flash drives.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/06/20/what-i-think-you-ought-to-read-6202008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

