MOLNAR Ingo <[EMAIL PROTECTED]> writes:
> > We should remove the raidstop commands from our reboot/halt scripts - it's
> > no longer needed? What about halt, especially?
> yep, it should all work magically. halt too.
Sorry to be a dumbass, but I want to make this 100% clear to myself
before I do something stupid..
When I upgrade to raid-19981215 chain (I haven't yet had a chance to
reboot the machine), and make sure all the RAID partitions are set to
type 0xfd, I can take the following patches out of my startup/shutdown
scripts?
I have in /etc/rc.d/rc.sysinit (Red Hat 5.1):
## LOCAL ADDITION: START RAID ##
if ! /sbin/raidstart -a; then
echo
echo
echo "*** An error occurred during RAID initialization."
echo "*** Dropping you to a shell; the system will reboot"
echo "*** when you leave the shell."
PS1="(RAID error) \#"; export PS1
sulogin
echo "Unmounting file systems"
umount -a
mount -n -o remount,ro /
echo "Automatic reboot in progress."
reboot
fi
## END OF LOCAL ADDITION ##
and in /etc/rc.d/init.d/halt
## LOCAL ADDITION: STOP RAID ##
echo -n "Stopping software RAID devices: "
for md in `awk '/ active / { print $1; }' </proc/mdstat`; do
echo -n "$md "
while ! /sbin/raidstop /dev/$md ; do
echo -n "ERR "
sleep 2
done
echo "done"
done
## END OF LOCAL ADDITION ##
--
"When you are in it up to your ears, keep your mouth shut."
Osma Ahvenlampi <[EMAIL PROTECTED]>