How to disable SCSI write cache on RHEL

From: Vishal Gupta <vishal_at_vishalgupta.com>
Date: Tue, 29 Sep 2009 22:06:24 -0400 (EDT)
Message-ID: <787DD2F284E39D4FA3C2ABD2DAF1AB2DA1B3_at_MAIL.vishalgupta.co.uk>



Hi,  

Does anyone know how to disable filesystem cache at Linux (RHEL4) level? I know it can be disable using filesytemio_options=directio|setall init.ora parameters. But that does not protect the other non-database files in case of server crash. We already have SAN attached disks, so there is plenty of SAN cache to speed up the things. I want to avoid the risk of filesytem corruption on linux server crash due to filesystem buffering/caching.  

Someone on internet mentioned, one of the way is by executing following command, but which is the config file which needs to be updated to make things more persistent.  

echo 1 > /proc/scsi/sg/allow_dio  

Regards,
Vishal Gupta

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Sep 29 2009 - 21:06:24 CDT

Original text of this message