Solved

Disable write cache on ESX 2.5 virtual machine

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

705 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

18 Experts available now in Live!

Get 1:1 Help Now