[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Disable write cache on ESX 2.5 virtual machine

Posted on 2008-06-25
4
Medium Priority
?
1,511 Views
Last Modified: 2010-04-21
I have a virtual machine (W2K3 SP2 + SQL server) running on an ESX 2.54 host. I want to disable the write cache on the disk which contains the SQL database.
The option which I normally use in the Windows OS is set to "Optimize for performance" and is grayed out to prevent change.
How can I disable the write cache.

Any help is very much appriciated!

Rob
0
Comment
Question by:robv73
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:agriesser
ID: 21864886
From the virtual machine side, set the disk type to be independent/persistent, that way, all the changes are permanently and immediately written to the disk.

If you want to disable it inside the guest, you need to modify your .vmx file and probably reboot the guest too:

diskLib.dataCacheMaxSize = "0"
0
 

Author Comment

by:robv73
ID: 21865591
I added this line to the VM config (vmx) file and restarted the VM.
But when I check the "Policies" tab of the disk properties. The option is still set to "Optimize for performance"......which should mean: write cache enabled...

Is this ok?!
0
 
LVL 14

Accepted Solution

by:
agriesser earned 2000 total points
ID: 21865798
According to some forum entries at vmware.com, it shouldn't matter wheter this option is greyed out or not. Windows asks the SCSI disk driver for its features and if the driver (in this case the Virtual VmSCSI driver) does not support write caching on a per-hardware base (which it simply can't support), the option in windows is greyed out. Telling the disklib to not cache data at all should do the trick although it might seem to still be disabled inside the VM.

I don't know how to test if that works, do you see any difference with this option being set?
0
 

Author Closing Comment

by:robv73
ID: 31470511
Thanks for your quick response / help !
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question