From: "Eric Wood" <eric@interplas.com>
To: linux-raid@vger.kernel.org
Subject: Put harddrives in standby mode to prevent raid rebuilds
Date: Fri, 16 Apr 2004 10:42:42 -0400 [thread overview]
Message-ID: <009a01c423c1$12ca88e0$b100000a@M145Primary> (raw)
After getting a raid-1 setup going (hda, hdc), I was dismayed that the raid
kept rebuilding each member after a reboot or shutdown. It's as though the
Shuttle system would power off prematurely before md had a chance to flush
it's data.
So, looking at the Fedora shutdown script /etc/rc.d/init.d/halt, I noticed I
could put halt parameters in there. Looking at the man page for halt:
# man halt
....
-h Put all harddrives on the system in standby mode just
before halt or poweroff.
....
So, I added a -h to the halt arguments and the system now flushes the md
data just before poweroff or reboot. No more raid rebuilds so I'm happy.
The side effect is that the drives quickly spin down, spin up, flush data,
go into standby, then power off. Reminds of Han Solo's Millenium Falcon
trying to fire up. Anyway, this workaround may help some people.
-Eric Wood
reply other threads:[~2004-04-16 14:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='009a01c423c1$12ca88e0$b100000a@M145Primary' \
--to=eric@interplas.com \
--cc=linux-raid@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