Subject: Re: A RAIDframe problem with swap on RAID 1
To: dkwok <dkwok@iware.com.au>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 11/20/2001 22:42:18
On Wed, Nov 21, 2001 at 08:15:04AM +1100, dkwok wrote:
> 
> ----- Original Message ----- 
> From: "Martin J. Laubach" <mjl@emsi.priv.at>
> Newsgroups: emsi.netbsd.port.i386
> To: <port-i386@netbsd.org>
> Sent: Friday, November 02, 2001 8:09 PM
> Subject: Re: A RAIDframe problem with swap on RAID 1
> 
> 
> > |  all my RAID sets, which now pronounces raid0 and raid2 clean, but
> > |  rebuilds parity on raid1 (where swap is), on every boot.  This does
> > 
> >   Try putting a 
> > 
> > # KEYWORD: shutdown
> > 
> Sorry for my ignorance. 
> I have Raid5 set and would love to know.
> 
> Where do you put "shutdown"?
> 
> Is it after "start_cdm='swapctl -A -t blk'?

No, just after REQUIRE:
#!/bin/sh
#
# $NetBSD: swap1,v 1.4.4.1 2000/08/09 19:09:47 lukem Exp $
#

# PROVIDE: localswap
# REQUIRE: disks
# KEYWORD: shutdown

. /etc/rc.subr
[...]

--
Manuel Bouyer <bouyer@antioche.eu.org>
-