Salta al contenuto principale

Disk write cache is enabled

Thread needs solution
Forum Member
Messaggi: 20
Commenti: 33

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

 

 

 

 

 

0 Users found this helpful
Senior Support Engineer
Messaggi: 0
Commenti: 4

Hello Michael!

 

In this case please use hdparm:

hdparm -W0 /dev/sdf

 

Then check it disabled or not:

hdparm -W /dev/sdf

 

Additionally, it is required to make sure to have write cache disabled for those HDDs on disk controller level, consult with hardware vendor in case of questions.

Forum Member
Messaggi: 20
Commenti: 33

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)
 

Senior Support Engineer
Messaggi: 0
Commenti: 4

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.