From: Ville Herva <vherva@niksula.hut.fi>
To: "Jeffrey E. Hundstad" <jeffrey@hundstad.net>
Cc: linux-kernel@vger.kernel.org
Subject: ide write cache issue? [Re: Something corrupts raid5 disks slightly during reboot]
Date: Sat, 1 Nov 2003 10:27:46 +0200 [thread overview]
Message-ID: <20031101082745.GF4640@niksula.cs.hut.fi> (raw)
In-Reply-To: <3FA30F4A.5030500@hundstad.net>
On Fri, Oct 31, 2003 at 07:41:30PM -0600, you [Jeffrey E. Hundstad] wrote:
> Try:
>
> hdparm -W0 /dev/hdX
>
> for each of your ide drives. This turns off write-caching which is
> usually a bad thing with ide drives anyway.
According to hdparm, write caching is indeed enabled for all the drives.
I find it somewhat odd if this was the cause, though. Before reboot, the
drives were not being written to for quite a while (the fs had been
unmounted and the raid array had been stopped.)
I suppose it _is_ possible that the drives were updating the ext2 superblock
from their write cache when power went off. The md5sum of first 1MB of the
drives was probably in sync before reboot because I got it from kernel's
cache (or drive's cache), although the up-to-date data had not been written
onto the platter yet. Also, as this is a raid5 array, one of the drives
could have been clean because the ext2 superblock (that I assume was being
updated) is physically located on only two of the drives.
I can try to turn of write caching well before next reboot. I don't
suppose there is a way to boot so that the write caching would be off all
the time - the best I can do is turn it off early in boot scripts, no?
Does anyone know if there is a crucial write caching / flushing fix in
2.4/2.6 that hasn't been merged into 2.2 (I am using the newest 2.4 ide
backport from Krzysztof Olêdzk (ide-2.2.21-06162002)).
I don't suppose there is a away to explicitly flush the IDE drive write
cache from user space?
Or is this likely to be a drive firmware problem (kernel tries to flush the
drives, but they don't do it early enough?) How long do ide drives normally
hold data in write cache if they are idle?
The drives are SAMSUNG SV8004H, FwRev=QR100-07, fwiw.
Turning off write caching permanently doesn't sound inviting though, as
it'll probably ruin the raid performance completely...
-- v --
v@iki.fi
next prev parent reply other threads:[~2003-11-01 8:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-31 19:08 Something corrupts raid5 disks slightly during reboot Ville Herva
2003-11-01 1:41 ` Jeffrey E. Hundstad
2003-11-01 1:57 ` Mike Fedyk
2003-11-01 8:33 ` Ville Herva
2003-11-01 8:27 ` Ville Herva [this message]
2003-11-01 15:56 ` ide write cache issue? [Re: Something corrupts raid5 disks slightly during reboot] Willy Tarreau
2003-11-01 18:25 ` Ville Herva
2003-11-01 19:01 ` Willy Tarreau
2003-11-01 21:02 ` Ville Herva
2003-11-02 6:05 ` Andre Hedrick
2003-11-02 8:28 ` Ville Herva
2003-11-02 20:57 ` Matthias Andree
2003-11-03 5:34 ` Andre Hedrick
2003-11-03 6:38 ` Ville Herva
2004-01-02 19:42 ` Something corrupts raid5 disks slightly during reboot Ville Herva
2004-01-02 20:02 ` Ville Herva
2004-01-14 14:46 ` Ville Herva
2004-01-14 22:22 ` Willy Tarreau
2004-01-14 22:46 ` Ville Herva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031101082745.GF4640@niksula.cs.hut.fi \
--to=vherva@niksula.hut.fi \
--cc=jeffrey@hundstad.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®