Has anyone using Root on RAID managed to point their dumpdev at a swap space,
either within a RAID array or on a standard swap partition?

I have not, and a search of the archives only came up with one posting, with
a similar question, but no answer: 

http://marc.theaimsgroup.com/?l=openbsd-misc&m=111763609916743&w=2

I'm running -current on i386, and have just successfully implemented RAID 
level 1 mirroring.  I am using two Autoconfig devices: 

        raid0 (ffs partitions) which is also set as the Root partition
        raid1 (swap).

My kernel configuration is GENERIC plus RAIDframe, which means that my
config line reads:

config          bsd     swap generic

When booting normally, with raid0a as root, I get this kernel message right
before init starts:

swapmount: no device

and then during rc I get:

savecore: no core dump

I have tried modifying the config line.  If I use:

config          bsd     root on wd0a swap on wd0b

then I do get an unmirrored partition as my swap_device, and it is also a
dump device.  But ... adding /dev/raid1b doesn't work -- adding this device 
to /etc/fstab seems to be ignored, and "swapctl -a /dev/raid1b" fails with 
"file not found."  raid1b is an unacceptable keyword for kernel config. 

Anyone with a successful swap/dump setup who might be able to point me to
what I'm missing?

----------------------

Kernel config file:

include "/usr/src/sys/arch/i386/conf/GENERIC"
pseudo-device   raid    4
option  RAID_AUTOCONFIG
makeoptions     DEBUG="-g"

----------------------

wd0 disklabel. wd0d is a component of raid0, wd0g is a component of raid1:


#             size        offset  fstype [fsize bsize  cpg]
  a:        409185            63  4.2BSD   2048 16384  328 # Cyl     0*-   405 
  b:       2097648      73829952    swap                   # Cyl 73244 - 75324 
  c:     160836480             0  unused      0     0      # Cyl     0 -159559 
  d:      69206256        409248    RAID                   # Cyl   406 - 69062 
  g:       3805200      69615504    RAID                   # Cyl 69063 - 72837 

----------------------

raid0 disklabel:

#             size        offset  fstype [fsize bsize  cpg]
  a:        204737            63  4.2BSD   2048 16384  199 # Cyl     0*-   199 
  c:      69206144             0  unused      0     0      # Cyl     0 - 67584*
  d:       2097152        204800  4.2BSD   2048 16384  323 # Cyl   200 -  2247 
  e:      20971520       2301952  4.2BSD   2048 16384  323 # Cyl  2248 - 22727 
  f:      45932672      23273472  4.2BSD   2048 16384  323 # Cyl 22728 - 67584*

raid1 disklabel:

#             size        offset  fstype [fsize bsize  cpg]
  b:       3804993            63    swap                   # Cyl     0*-  3715*
  c:       3805056             0  unused      0     0      # Cyl     0 -  3715*

----------------------

dmesg:

OpenBSD 4.0-beta (JGGIMI) #2: Sat Aug 26 18:46:46 EDT 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/JGGIMI
cpu0: AMD Sempron(tm) 2600+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.84 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 502820864 (491036K)
avail mem = 450252800 (439700K)
using 4256 buffers containing 25243648 bytes (24652K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(37) BIOS, date 01/07/05, BIOS32 rev. 0 @ 0xfb9b0, 
SMBIOS rev. 2.2 @ 0xf0000 (44 entries)
bios0: ASUS A7VT
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xda84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfda10/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 3 5 10 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x7e00 0xc8000/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8378 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA VT8378 VGA" rev 0x01: aperture at 
0xe4000000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
dc0 at pci0 dev 8 function 0 "Lite-On PNIC-II" rev 0x25: irq 10, address 
00:a0:cc:e3:42:d6
dcphy0 at dc0 phy 31: internal PHY
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 3
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
iic0 at viapm0
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <ExcelStor Technology J880>
wd0: 16-sector PIO, LBA48, 78533MB, 160836480 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LITE-ON, DVDRW SHW-160P6S, PS01> SCSI0 5/cdrom 
removable
wd1 at pciide0 channel 1 drive 1: <Maxtor 6Y080P0>
wd1: 16-sector PIO, LBA, 78167MB, 160086528 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 6
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 5
ac97: codec id 0x41445368 (Analog Devices AD1888)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auvia0
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: irq 11, address 
00:11:2f:85:b1:90
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI 
0x004063, model 0x0032
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
raid0 (root): (RAID Level 1) total number of sectors is 69206144 (33792 MB) as 
root
raid1 (root): (RAID Level 1) total number of sectors is 3805056 (1857 MB)
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: vendor 0x062a product 0x0000, rev 1.10/0.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
swapmount: no device

Reply via email to