xfs
[Top] [All Lists]

Re: disabling write cache on SATA drives

To: Christian Rice <xian@xxxxxxxxxxx>
Subject: Re: disabling write cache on SATA drives
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 24 Feb 2006 07:52:18 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <43FE07AF.30101@tippett.com>; from xian@tippett.com on Thu, Feb 23, 2006 at 11:06:23AM -0800
References: <43DE74E7.6070306@tippett.com> <43FE07AF.30101@tippett.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Thu, Feb 23, 2006 at 11:06:23AM -0800, Christian Rice wrote:
> Perhaps no one else is using XFS as a root filesystem on SATA drives, 
> but I've been giving it a go.  And I've been lucky to NOT experience a 
> power failure in my machine room, I guess.
> 
> I've tried blktool and sdparm, both RPMS and compiled locally, but 
> nothing can turn off the write cache.  I'm using multiple motherboards, 
> different drive manufactureres, but no avail.
> 
> Has anyone had success with this issue?  Am I forced to continue on with 
> PATA drives for the foreseeable future?
> 
> Any informed responses would be a huge help.

Another option is to use the "barrier" mount option from current
kernels, which implements write barriers.  This is fairly recent
code (so you want a very recent kernel - like a 2.6.16-rcX) - we
saw one/two teething problems when this initially went in, which
is why its not on by default.  But there have been both XFS and
block layer fixes in this area since I last looked at this, so it
may have all the wrinkles ironed out now.

Please report back if you find any problems with it.

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>