Enable Write Cache in Linux/ESX 5.5 on HP Servers

If not running ESX, ignore the “esxcli” portion.

Get the Slot # of your controller


esxcli hpssacli cmd -q "controller all show detail"

Apply the change (this will force write cache even if the battery is low/missing)


esxcli hpssacli cmd -q "ctrl slot=1 modify dwc=enable forced"

Tested on an HP DL380 G5 (ESX 5.5)

2 Responses to “Enable Write Cache in Linux/ESX 5.5 on HP Servers”

  1. Jeff says:

    Thanks a lot !
    Was wondering how to enable that damn cache.

  2. If you’re running Linux, the hdparm utility allows to enable or disable write caching for IDE-based drives. Be very careful with hdparm, as it can do a lot of nasty stuff to your hard drive.

Leave a Reply to Jeff Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.