Subject: Re: swap and dump with cgd
To: None <netbsd-users@netbsd.org>
From: Eric d'Alibut <eric.halibut@gmail.com>
List: netbsd-users
Date: 05/06/2007 19:20:07
On 5/6/07, Lubomir Sedlacik <salo@xtrmntr.org> wrote:

> it shouldn't be.  how did you configure your swap on cgd(4)?

I began with a fresh install (-current 4.99.17):

/dev/sd0a		/	ffs	rw		 1 1
/dev/sd0b		none	swap	sw		 0 0
/dev/sd0e		/usr	ffs	rw		 1 2
/dev/sd0f		/var	ffs	rw		 1 2
/dev/sd0g		/home	ffs	rw		 1 2
/dev/sd0b		/tmp	mfs	rw,-s=131805
kernfs		/kern	kernfs	rw
procfs		/proc	procfs	rw,noauto

The disk after cgd install looks like this:

/dev/sd0a		/	ffs	rw		 1 1
/dev/cgd0b		none	swap	sw		 0 0
/dev/cgd0b		/tmp	mfs	rw,-s=131805
/dev/cgd0e		/usr	ffs	rw		 1 2
/dev/cgd0f		/var	ffs	rw		 1 2
/dev/cgd0g		/home	ffs	rw		 1 2
kernfs		/kern	kernfs	rw
procfs		/proc	procfs	rw,noauto

>   /dev/cgd0b none swap sw 0 0
>   /dev/cgd0b none swap dp 0 0

Yes, that seemed to work ok.

> note, however, that the dump is useless with swap on cgd(4) (you are
> using random key, aren't you?).  you might as well just disable it:
>
>  /etc/sysctl.conf:
>
>   kern.dump_on_panic=0

Yup. Of course. I need to have that in place.

Thanks,

-- 
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?