Subject: Re: Setting dumpdev as part of the boot process?
To: Jarle Greipsland <>
From: Luke Mewburn <>
List: tech-userlevel
Date: 05/13/2002 00:29:01
On Sun, May 12, 2002 at 04:01:13PM +0200, Jarle Greipsland wrote:
  | I've been experimenting with setting up RAID partitions on a
  | couple of systems, and used the information found on
  | as a very useful
  | resource.  A system configured as described in that document ends
  | up having the root file system on raid0a, while the swap
  | partition resides on raid1b (and is set up in /etc/fstab).  Since
  | raid0 != raid1, a kernel with the default {root,dump,swap}=?
  | configuration file entries will not by itself find the
  | dump device.  This presumably also holds for configurations like
  | root on sd0a, swap on sd1b.
  | I figure this can be solved in (at least) 3 ways:
  | [...]
  | o Create a separate /etc/rc.d/dumpdev script that will use
  |   'swapctl -D $dumpdevice' to set up the device.  Should
  |   include a 'BEFORE: savecore' statement. 
  | What's the correct approach?  Or maybe there already is a
  | different way to do this?

Add another line to /etc/fstab, similar to your existing raid1b swap
entry, but in the fourth field, replace "sw" with "dp".

E.g, if you had
	/dev/raid1b	none	swap	sw	0 0
	/dev/raid1b	none	swap	dp	0 0

/etc/rc.d/swap1 should set this at boot.  Run "swapctl -z" after boot
to see what the system thinks is the dump device.