<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: VMware stretched cluster and VM swap file placement	</title>
	<atom:link href="https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/feed/" rel="self" type="application/rss+xml" />
	<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/</link>
	<description></description>
	<lastBuildDate>Wed, 29 Jan 2014 06:33:14 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: magander3		</title>
		<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-258</link>

		<dc:creator><![CDATA[magander3]]></dc:creator>
		<pubDate>Wed, 29 Jan 2014 06:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=2814#comment-258</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-257&quot;&gt;Bjorn&lt;/a&gt;.

Hi Björn,
no problem. Yeah in your situation it sounds like a good idea to investigate putting VM swap on local SSD disk. Investigate the different options i mentioned in my previous reply and make sure you got enough bandwidth when you do vMotion within one site and between site if you put some data in the swap file. Just perform vMotion operations when using local SSD drives to hold the VM swap file and when the VM swap file is located on your NetApp storage.

regards,
Magnus]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-257">Bjorn</a>.</p>
<p>Hi Björn,<br />
no problem. Yeah in your situation it sounds like a good idea to investigate putting VM swap on local SSD disk. Investigate the different options i mentioned in my previous reply and make sure you got enough bandwidth when you do vMotion within one site and between site if you put some data in the swap file. Just perform vMotion operations when using local SSD drives to hold the VM swap file and when the VM swap file is located on your NetApp storage.</p>
<p>regards,<br />
Magnus</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bjorn		</title>
		<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-257</link>

		<dc:creator><![CDATA[Bjorn]]></dc:creator>
		<pubDate>Thu, 23 Jan 2014 16:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=2814#comment-257</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-256&quot;&gt;magander3&lt;/a&gt;.

Hello Magnus and thank you for your thorough reply!

Ah right, dedup is recommended as well. 

Since we currently only have a NetApp MetroCluster as our only storage with all aggregates replicated, it will still be fairly expensive disk. And the dedicated swap store has not done much for our pretty low deduplication levels (on other hands, we have a lot large databases and other stuff messing up dedup stats). I will investigate putting VM swap on local SSDs, but we also have a need for a vFRC for some workloads. 

Thanks.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-256">magander3</a>.</p>
<p>Hello Magnus and thank you for your thorough reply!</p>
<p>Ah right, dedup is recommended as well. </p>
<p>Since we currently only have a NetApp MetroCluster as our only storage with all aggregates replicated, it will still be fairly expensive disk. And the dedicated swap store has not done much for our pretty low deduplication levels (on other hands, we have a lot large databases and other stuff messing up dedup stats). I will investigate putting VM swap on local SSDs, but we also have a need for a vFRC for some workloads. </p>
<p>Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: magander3		</title>
		<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-256</link>

		<dc:creator><![CDATA[magander3]]></dc:creator>
		<pubDate>Tue, 21 Jan 2014 12:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=2814#comment-256</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-255&quot;&gt;Bjorn&lt;/a&gt;.

Hi Björn,
well in this case it is a recommendation from the storage vendor to use a separate datastore for the VM swap files. It has to do with both backup and deduplication.

The VM swap file is actually created, in its full size, when you power on the VM so that is a parameter you need to include when you calculate the storage required for your environment. So from a vSphere perspective the files are created but different storage vendors manage zeroes differently.

In a stretched cluster scenario you will configure your system to have enough capacity from a vSphere HA perspective to manage one site failure but this is not the same as it will never be any overcommitment of RAM.
Remember, vSphere HA, is not about performance. It&#039;s about guaranteeing VMs to be powered on.

If VM swap has happen (based on physical RAM constraints during day 2 operation, VM boot storm or misconfiguration) the swap file will not be cleared meaning data will no be moved into physical RAM until the VM needs the actual data.
This means you might need to swap in memory form the VM swap file but it&#039;s not available since the RAM in the swap file was swapped out a long time ago.

You might consider using e.g. Swap to host cache aka swap to SSD or putting VM swap files on local SSDs instead of shared storage area when the storage vendor recommends a split between VM swap file and the rest of the VM files.
The connection between the ESXi hosts when performing vMotion will come into play in such a configuration and also the size (RAM) of the VM.

If you are absolutely sure that the swap file will never be used, maybe by setting 100% RAM reservation per VM, this will not be an issue but i have only implemented a very few environments using this concepts.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-255">Bjorn</a>.</p>
<p>Hi Björn,<br />
well in this case it is a recommendation from the storage vendor to use a separate datastore for the VM swap files. It has to do with both backup and deduplication.</p>
<p>The VM swap file is actually created, in its full size, when you power on the VM so that is a parameter you need to include when you calculate the storage required for your environment. So from a vSphere perspective the files are created but different storage vendors manage zeroes differently.</p>
<p>In a stretched cluster scenario you will configure your system to have enough capacity from a vSphere HA perspective to manage one site failure but this is not the same as it will never be any overcommitment of RAM.<br />
Remember, vSphere HA, is not about performance. It&#8217;s about guaranteeing VMs to be powered on.</p>
<p>If VM swap has happen (based on physical RAM constraints during day 2 operation, VM boot storm or misconfiguration) the swap file will not be cleared meaning data will no be moved into physical RAM until the VM needs the actual data.<br />
This means you might need to swap in memory form the VM swap file but it&#8217;s not available since the RAM in the swap file was swapped out a long time ago.</p>
<p>You might consider using e.g. Swap to host cache aka swap to SSD or putting VM swap files on local SSDs instead of shared storage area when the storage vendor recommends a split between VM swap file and the rest of the VM files.<br />
The connection between the ESXi hosts when performing vMotion will come into play in such a configuration and also the size (RAM) of the VM.</p>
<p>If you are absolutely sure that the swap file will never be used, maybe by setting 100% RAM reservation per VM, this will not be an issue but i have only implemented a very few environments using this concepts.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bjorn		</title>
		<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-255</link>

		<dc:creator><![CDATA[Bjorn]]></dc:creator>
		<pubDate>Tue, 21 Jan 2014 09:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=2814#comment-255</guid>

					<description><![CDATA[Hello Magnus and thank you for the post.

I think this particular setup with dedicated swap in metro cluster is interesting to discuss. All the recommendations and documentation I&#039;ve seen is not very clear, at least not to me. Would love to hear your view on it: 

Question:
Why should there be a dedicated datastore for VM swap in a vSphere Metro Cluster based infrastructure?

Why:
The primary reason (and only reason for vMSC)  I was advised and read is that swap can reside on a datastore that is not backed up and/or replicated. Therefore you can save the amount of provisioned VM memory in disk space = save money.

So if we back a few steps: To my understanding is that the VM swap file is not taking any disk space as long as the host memory is NOT over committed. True? At least, I have never seen a that any .vswp files takes any actual disk space at all in our environment. And if the VM does swap, there is obviously not a good user experience.

My point: 
As long as you have enough RAM in your ESXi the swap file will never take any real disk space. That makes the recommendation of a dedicated datastore for swap in a VMware vMSC not a valid one.  I can&#039;t see that a company invests in a stretched storage solution but have insufficient memory in their hosts. It will just complicate your environment a bit more and takes a bit of management.

Do you agree? Am I missing something here?

Thanks

Björn]]></description>
			<content:encoded><![CDATA[<p>Hello Magnus and thank you for the post.</p>
<p>I think this particular setup with dedicated swap in metro cluster is interesting to discuss. All the recommendations and documentation I&#8217;ve seen is not very clear, at least not to me. Would love to hear your view on it: </p>
<p>Question:<br />
Why should there be a dedicated datastore for VM swap in a vSphere Metro Cluster based infrastructure?</p>
<p>Why:<br />
The primary reason (and only reason for vMSC)  I was advised and read is that swap can reside on a datastore that is not backed up and/or replicated. Therefore you can save the amount of provisioned VM memory in disk space = save money.</p>
<p>So if we back a few steps: To my understanding is that the VM swap file is not taking any disk space as long as the host memory is NOT over committed. True? At least, I have never seen a that any .vswp files takes any actual disk space at all in our environment. And if the VM does swap, there is obviously not a good user experience.</p>
<p>My point:<br />
As long as you have enough RAM in your ESXi the swap file will never take any real disk space. That makes the recommendation of a dedicated datastore for swap in a VMware vMSC not a valid one.  I can&#8217;t see that a company invests in a stretched storage solution but have insufficient memory in their hosts. It will just complicate your environment a bit more and takes a bit of management.</p>
<p>Do you agree? Am I missing something here?</p>
<p>Thanks</p>
<p>Björn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: magander3		</title>
		<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-254</link>

		<dc:creator><![CDATA[magander3]]></dc:creator>
		<pubDate>Fri, 03 Jan 2014 16:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=2814#comment-254</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-253&quot;&gt;Nicolas&lt;/a&gt;.

Hi Nicolas, yes totally agree regarding the datastore setup and that is what i suggested in the post. Haven&#039;t tested the VM restart, just verified what happens when the datastore become unavailable. Don&#039;t know if the VM will be restarted when the datastore is offline. As far as i know the ESXi host should fail back to VM home directory when the specific swap datastore don&#039;t have any free space left. Hopefully it fails back the VM home directory when the swap directory is unavailable as well.

//Magnus]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-253">Nicolas</a>.</p>
<p>Hi Nicolas, yes totally agree regarding the datastore setup and that is what i suggested in the post. Haven&#8217;t tested the VM restart, just verified what happens when the datastore become unavailable. Don&#8217;t know if the VM will be restarted when the datastore is offline. As far as i know the ESXi host should fail back to VM home directory when the specific swap datastore don&#8217;t have any free space left. Hopefully it fails back the VM home directory when the swap directory is unavailable as well.</p>
<p>//Magnus</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nicolas		</title>
		<link>https://magander.se/vmware-stretched-cluster-and-vm-swap-file-placement/#comment-253</link>

		<dc:creator><![CDATA[Nicolas]]></dc:creator>
		<pubDate>Fri, 03 Jan 2014 15:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://magander.se/?p=2814#comment-253</guid>

					<description><![CDATA[I think if you restart the VM, thus recreating the swap file, it should be created in the VM folder by default - if the normal swap datastore is not available. Anyway there is no other option than the second swap datastore in DC01 for zero disruption in the event that access to the swap datastore is lost.]]></description>
			<content:encoded><![CDATA[<p>I think if you restart the VM, thus recreating the swap file, it should be created in the VM folder by default &#8211; if the normal swap datastore is not available. Anyway there is no other option than the second swap datastore in DC01 for zero disruption in the event that access to the swap datastore is lost.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Object Caching 19/60 objects using Disk
Page Caching using Disk: Enhanced 

Served from: magander.se @ 2026-06-27 11:55:53 by W3 Total Cache
-->