Write caching in linux

view full story

http://serverfault.com – I have read a lot on serverfault and searched on google about write caching, but still cant find the answer. I have an HP ProLiant DL380 G5 with HW raid with 512 MB Battery backed cache. I use debian linux. There are 3 write caches: 1. OS write cache 2. HW raid with 512 MB Battery backed cache 3. HDD caches My question is: How to configure them properly, so there will be no data loss during power loss? I was thinking that disabling the OS write cache and HDD caches would solve the problem and it will be still performing well because of HW raid cache. Am I right? The second question is ab (HowTos)