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 thoughts on “Enable Write Cache in Linux/ESX 5.5 on HP Servers”
Thanks a lot !
Was wondering how to enable that damn cache.
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.