[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-users
Subject: Re: raidframe: Parity is dirty after every reboot
From: christos () astron ! com (Christos Zoulas)
Date: 2008-07-01 16:54:10
Message-ID: g4dnfi$imp$1 () ger ! gmane ! org
[Download RAW message or body]
In article <g4di0c$1t93$1@nermal.rz1.convenimus.net>,
Christian Baer <christian.baer@uni-dortmund.de> 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"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic