Solved

Disable write cache on ESX 2.5 virtual machine

Posted on 2008-06-25
4
1,497 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
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…

864 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now