Disk write cache is enabled
Hi
I got a warning for each of my disks in our Acronis Cyber Infrastructure. I need to disable the write cache on my disks.
I followed the following article:
https://kb.acronis.com/node/63144
The write cache is enabled:
[root@node1 ~]# sdparm -g WCE /dev/sdf
/dev/sdf: ATA WDC WD6002FRYZ-0 1M02
WCE 1 [cha: y]
When I try to disable it, I get the following error:
[root@node1 ~]# sdparm -c WCE /dev/sdf -S
/dev/sdf: ATA WDC WD6002FRYZ-0 1M02
change_mode_page: mode page indicates it is not savable but
'--save' option given (try without it)
When I remove the -S it does not disable it.
How can I disable the write cache on my WD disks?
Regards
Michael

- Log in to post comments

Hi Alexey
Thanks a lot, I just tested this with hdparm, also here I have the same problem:
[root@node1 ~]# hdparm -W0 /dev/sdf
/dev/sdf:
setting drive write-caching to 0 (off)
SG_IO: bad/missing sense data, sb[]: 70 00 01 00 00 00 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 70 00 01 00 00 00 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]: 70 00 01 00 00 00 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
write-caching = 1 (on)
[root@node1 ~]# hdparm -W /dev/sdf
/dev/sdf:
write-caching = 1 (on)
- Log in to post comments

Hello Michael.
This means that you should check manual guide of your hardware how to disable write cache on a disk controller level and only after that disable it using hdparm.
- Log in to post comments