lkml.org 
[lkml]   [2005]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: raid over sata - write barrier
On Friday December 16, slobo@t-online.hu wrote:
> I've found that ext3 + sata + kernel 2.6.12 supports the write barrier mount
> option (-o barrier=1)
> (found it here: http://marc.10east.com/?l=linux-scsi&m=112019898711806)
>
> is write barrier supported with RAID (md) over sata, with ext3? (which
> kernel version?)
> (or we have to disable write cache in HD in this case?)

From 2.6.14 md has at least minimal support for write barriers.
'Minimal support' means that it will tell the filesystem, that write
barriers aren't supported so it should do explicit cache flushes
(however I don't believe that all filesystems to the explicit cache
flushes that they should).

From 2.6.15, md/raid1 has better support for write barriers, in that
if every underlying device supports them, it will preserve the
write-barrier flag in requests passed down.

So you should be ok with the write cache if you use raid1 and 2.6.15
(which isn't out yet, I know, but a late -rc should be fine). But if
you want a different raid level, you should ask the ext3 developers
if there is a reason they don't call blkdev_issue_flush if barriers
aren't supported...

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-18 21:51    [from the cache]
©2003-2011 Jasper Spaans