1 Sep 2004 03:41
how to enable write back cache on SATA drive?
Brett Russ <russb <at> emc.com>
2004-09-01 01:41:02 GMT
2004-09-01 01:41:02 GMT
A coworker is trying to get this done to no avail. He's tried hdparm,
blktool, sginfo, and scsiinfo without luck--drives appear in write
through cache mode and performance testing confirms. I've not been
directly involved but need to see progress. I had the most hope for
blktool but that failed with "BLKFLSBUF: Operation not supported"
Devices are Maxtor 250G connected to ICH6R in Enhanced non-AHCI mode
using Garzik's 2.6.8.1 libata bk kernel tree (last sync'd ~20040820).
See results of some commands below...all snippets from emails to me.
===> blktool
linux:~/blktool-4 # ./blktool /dev/sda wcache on
BLKFLSBUF: Operation not supported
===> scsiinfo
I can't seem to write the caching mode page back:
# scsiinfo -cRX /dev/sda 1 1 0 0 0 0 0 0 0
Unable to store Caching Page 08h
18 00 00 00 18 00 00 00 70 00 05 00 00 00 00 06
00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Thinking I was calling it incorrectly, I installed the xscsi rpm to use
the recommended scsi-config command, and that fails when it tries to
run this command:
# /usr/bin/scsiinfo -c -X -m /dev/sda
Unable to read Caching Page 08h
(Continue reading)
RSS Feed