Solved

Disable write cache on ESX 2.5 virtual machine

Posted on 2008-06-25
4
1,504 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
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…

739 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