VMware Cloud Community
carrothospital
Contributor
Contributor
Jump to solution

Placing swapfile on NFS server - bad idea?

So, I was thinking of putting snapshots onto a NFS server, but I was under the impression that the snapshot files are stored in the same location as the swapfile. I just saw the option to change the swapfile location in the VM client and can choose my Drobo as the location. ESXi and the Drobo are both plugged into a gigabit switch. Would it cause a lot of performance problems when if I changed the swapfile location to a location on the network?

I'm not that worried about changing the location, but was wondering if it's a viable option.

0 Kudos
1 Solution

Accepted Solutions
weinstein5
Immortal
Immortal
Jump to solution

First off snapshots are stored in the same directory as the VMDK that has the snapshot so moving the swap file will not move the snapshot - yes you can store the swap file on your NAS/NFS datastore with out much problem since it is only used the vmkernel runs out of physical and can not meet the VMs memory requirements - but if this does occur the VM will come to a screeching halt -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

View solution in original post

0 Kudos
6 Replies
weinstein5
Immortal
Immortal
Jump to solution

First off snapshots are stored in the same directory as the VMDK that has the snapshot so moving the swap file will not move the snapshot - yes you can store the swap file on your NAS/NFS datastore with out much problem since it is only used the vmkernel runs out of physical and can not meet the VMs memory requirements - but if this does occur the VM will come to a screeching halt -

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
AlbertWT
Virtuoso
Virtuoso
Jump to solution

Hm... according to a best practice document that i read somewhere, is it true that by placing Swap file on different LUN than the current VMDK can actually perfroms better ?

cmiiw

Kind Regards,

AWT

/* Please feel free to provide any comments or input you may have. */
0 Kudos
Erik_Zandboer
Expert
Expert
Jump to solution

Hi,

Often the swapfile is placed on local storage. We have seen mayor issues with swapfiles on NFS. Not so much when just running VMs, but when you start a lot of VMs in parallel (like in a VDI environment) you can get into trouble. As Weinstein states, once the VMs are running you do not want any access to happen to the swapfile in the first place, so you should be allright in an environment where you only run server VMs.

Visit my blog at http://erikzandboer.wordpress.com

Visit my blog at http://www.vmdamentals.com
weinstein5
Immortal
Immortal
Jump to solution

Placing the swapfile on local will prevent vmotion though

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
savantsingh
Enthusiast
Enthusiast
Jump to solution

If you read Netapp's documentation they suggest to keep all the swapfiles on a seprate datastore.

There is no harm in doing that as long as the datastore is shared to all the hosts in the cluster.... the only draw would be as Erik suggested performance issues if multiple VM's would access the datastore at the same time. This would not happen untill all the VM's restart at the same time or you have a power outage...

Hope this helps!!

If you found this information useful, please consider awarding points for "Correct" or "Helpful".
carrothospital
Contributor
Contributor
Jump to solution

Thanks everyone for the feedback!

0 Kudos