NetBSD/etc/rc.d/raidframeparity
abs df86ef5a9f Split raidframe parity checking/rebuild out into raidframeparity, which is
called after quota so we don't end up with fsck and raidframe parity rebuild
taking forever after a crash/reboot.
While we are here check for raid[0-9].conf & raid[1-9][0-9].conf not
			    raid[0-9].conf & raid[0-9][0-9].conf
2002-09-03 15:35:51 +00:00

31 lines
450 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: raidframeparity,v 1.1 2002/09/03 15:35:55 abs Exp $
#
# REQUIRE: quota
. /etc/rc.subr
name="raidframeparity"
start_cmd="raidframeparity_start"
stop_cmd=":"
raidframeparity_start()
{
# Initiate parity/mirror reconstruction as needed, in the background.
#
(
for dev in `sysctl -n hw.disknames`; do
case $dev in
raid[0-9]*)
raidctl -P $dev
;;
esac
done
) &
}
load_rc_config $name
run_rc_command "$1"