* Put harddrives in standby mode to prevent raid rebuilds
@ 2004-04-16 14:42 Eric Wood
0 siblings, 0 replies; only message in thread
From: Eric Wood @ 2004-04-16 14:42 UTC (permalink / raw)
To: linux-raid
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-16 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 14:42 Put harddrives in standby mode to prevent raid rebuilds Eric Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox