NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: raidframe: Parity is dirty after every reboot
In article <g4di0c$1t93$1%nermal.rz1.convenimus.net@localhost>,
Christian Baer <christian.baer%uni-dortmund.de@localhost> wrote:
>Greg Oster wrote:
>
>> My guess is your cgd isn't getting unconfigured during shutdown...
>
>Your guess seems to be right. I didn't really think that it gets missed
>during shutdown, but you guys gave me the idea.
>
>If I umount the file system und unconfigure the cgd before rebooting,
>everything is fine; the parity is clean. If I just do a shutdown without
>unconfiguring the cgd on foot, I have a dirty parity.
>
>Any chance this will be added any time soon into the shutdown script?
Does this help?
Index: cgd
===================================================================
RCS file: /cvsroot/src/etc/rc.d/cgd,v
retrieving revision 1.5
diff -u -u -r1.5 cgd
--- cgd 2 Mar 2005 19:09:22 -0000 1.5
+++ cgd 1 Jul 2008 16:53:38 -0000
@@ -20,5 +20,13 @@
fi
}
+cgd_stop()
+{
+ if [ -f /etc/cgd/cgd.conf ]; then
+ echo "Unconfiguring CGD devices."
+ cgdconfig -C
+ fi
+}
+
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index