<?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; vmswap</title>
	<atom:link href="http://andyleonard.com/tag/vmswap/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>ESX Swap on NFS or Not?</title>
		<link>http://andyleonard.com/2008/10/17/esx-swap-on-nfs-or-not/</link>
		<comments>http://andyleonard.com/2008/10/17/esx-swap-on-nfs-or-not/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 16:23:18 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[virtualization]]></category>
		<category><![CDATA[netapp]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[vmswap]]></category>
		<category><![CDATA[vmware esx]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=95</guid>
		<description><![CDATA[Scott Lowe recently linked to a VMware KB article entitled Storing swap files on VMFS when running virtual machines from NFS. The article (from 3/31/2008) is perhaps the latest word from VMware in the frustrating back-and-forth on whether placing an ESX VM&#8217;s swap on NFS is acceptable or not. The KB entry itself isn&#8217;t directly [...]]]></description>
			<content:encoded><![CDATA[<p>Scott Lowe recently <a href="http://blog.scottlowe.org/2008/10/14/virtualization-short-take-19/">linked</a> to a VMware KB article entitled <a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&#038;docType=kc&#038;externalId=1004082&#038;sliceId=1&#038;docTypeID=DT_KB_1_1&#038;dialogID=2709533&#038;stateId=0%200%202711273">Storing swap files on VMFS when running virtual machines from NFS</a>.  The article (from 3/31/2008) is perhaps the latest word from VMware in the frustrating back-and-forth on whether placing an ESX VM&#8217;s swap on NFS is acceptable or not.<br />
<span id="more-95"></span><br />
The KB entry itself isn&#8217;t directly about (not) placing VM swap on NFS &#8211; it details how to specify the location of swap in a VM&#8217;s config file.  Regarding the question of swap location, the article (weakly) recommends against placing swap on NFS:</p>
<blockquote><p>
This articles describes changing the default location for your virtual machines [sic] swap files. You <em>may</em> need to use this if you are running virtual machines from NFS storage.<br />
Note: VMware <em>recommends</em> storing your swap on a VMFS3 volume, when running virtual machines on NFS storage.</p></blockquote>
<p>(Emphasis mine.)  The article provides none of the reasoning behind this recommendation, and a search of the VMware Knowledge Base for &#8220;nfs swap&#8221; only returns this article.  There are quite a few mentions of not putting swap on NFS in the VMware Communities forums, citing performance reasons, but, as far as I could find, no support for the performance issue assertion.</p>
<p>Personally, I&#8217;m not buying the performance claims without substantiation &#8211; NFS and iSCSI to the same filer should be nearly equally <a href="http://boulter.com/blog/2004/08/19/performant-is-not-a-word/">performant</a>.  I could imagine a difference in locking behavior, but I&#8217;m having trouble imagining a scenario where lock contention with a VM swap file would become an issue.</p>
<p>On the other side of the issue, I&#8217;ve been hearing from a few folks &#8211; mostly NetApp employees or users &#8211; that placing swap on NFS is okay.  On the viops site, Steve Chambers writes in a <a href="http://viops.vmware.com/home/docs/DOC-1157">preview of VMworld TA 2784</a> (which I did not attend) that &#8220;there is no need to place swap space on non IP storage.&#8221;  IP storage could mean iSCSI here, of course, but in the <a href="http://vmetc.com/2008/09/16/joint-vmware-and-netapp-best-practices-for-running-vi3-on-ip-based-storage-ta2784/">VM /ETC write up of TA 2784</a>, Rich Brambley&#8217;s notes state: &#8220;Do not place [swap] space on other storage – do not place the vswap on VMFS. Follow best practices and keep the swap on the NFS storage.&#8221;</p>
<p>So, who&#8217;s right here?  VMware or NetApp?  I suppose the conservative thing is to keep the swap on VMFS until VMware tells us otherwise, with the only negatives being the increased operational complexity and reduced storage utilization &#8211; that&#8217;s what I&#8217;m doing.  I can&#8217;t help but wonder if this is like VMware&#8217;s Linux timekeeping recommendations, though &#8211; conflicting information <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1006427">subject</a> <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">to</a> <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1420">change</a> &#8211; and hopefully clarification &#8211; at a later date.</p>
<p><strong>Update, 11/24/2008:</strong> <a href="http://andyleonard.com/2008/11/24/vmware-about-esx-swap-on-nfs-its-okay/">Keeping ESX swap on NFS with the VMhome directory is considered the current best practice</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/10/17/esx-swap-on-nfs-or-not/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

