-
+
Reliability and the Write-Ahead Log
And finally, most disk drives have caches. Some are write-through
while some are write-back, and the
same concerns about data loss exist for write-back drive caches as
- exist for disk controller caches. Consumer-grade IDE drives are
+ exist for disk controller caches. Consumer-grade IDE and SATA drives are
particularly likely to have write-back caches that will not survive a
power failure. To check write caching on
Linux> use
hdparm -I>; it is enabled if there is a *> next
- to Write cache>. hdparm -W> can to turn off
+ to Write cache>. hdparm -W> to turn off
write caching. On
FreeBSD> use
atacontrol>. (For SCSI disks use
url="http://sg.torque.net/sg/sdparm.html">
sdparm>