Subject: Re: reboot vs shutdown -r
To: Marcin Jessa <firstname.lastname@example.org>
From: Garrett D'Amore <email@example.com>
Date: 02/13/2006 07:50:09
Marcin Jessa wrote:
> Hi guy.
> I wondered if reboot could be made "RAID safe" ?
> says to allways use shutdown since "reboot will not properly run
> shutdown RC scripts and will not safely disable swap. This will cause
> dirty parity at every reboot."
> It seems like my RAID1 on two SATA drives was damaged after I
> accidently used reboot instead of shutdown -r. My kernel panics trying
> to read raid drives after boot. The reason I typed reboot was just
> becouse I allways used to and I forgot RAID would need shutdown instead.
I'm ignorant about raid, but is there some reason that it cannot be made
to use the in-kernel shutdown/reboot/poweroff hooks to do the right
thing? It seems like relying on a userland shutdown script to take care
of things might be a poor choice here.
Of course, those hooks get run with interrupts blocked, so there could
be a problem there. Not sure what actions raid shutdown actually needs.
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
Phone: 951 325-2134 Fax: 951 325-2191