cant properly set up kernel to have root and swap on a RAIDframe device

Previous thread: What's wrong with httpd-1.3.x and suexec? by Bibby on Monday, November 5, 2007 - 5:36 pm. (2 messages)

Next thread: Re: avail mem is only 66% of real mem by Wade, Daniel on Monday, November 5, 2007 - 5:55 pm. (3 messages)
From: Boris Goldberg
Date: Monday, November 5, 2007 - 5:44 pm

Hello misc,

  I've  been  booting my system from RAIDframe partitions for a long while.
Small  partition  for kernel(s), raidctl -A root raid0 - and I have root on
raid0a and swap on raid0b.
  But with 4.2 I'm getting "swapmount: no device" error from the kernel and
"savecore:  no  core  dump  (no  dumpdev)" later. However, root is still on
raid0a (but no swap).

  I've  tried "config bsd root on raid0a swap on raid0b dumps on wd0b" in a
kernel config, but got:

# config GENERIC.MP.RAID
../../../../arch/i386/conf/GENERIC.RAID:45: bsd: can't make root device from `raid0a'
../../../../arch/i386/conf/GENERIC.RAID:45: bsd: can't make swap device from `raid0b'
GENERIC.MP.RAID has no configurations!
*** Stop.

  I  have  an idea about a (pretty nasty) workaround, but is there a way to
make it "right"?

  BTW, "config bsd root on wd0a swap on wd0b dumps on wd0b and wd1b" should
be ok (according to the main page), but config doesn't like "and wd1b".

# dmesg
OpenBSD 4.2-stable (GENERIC.MP.RAID) #0: Thu Oct 18 17:40:50 CDT 2007
    root@build.twopoint.com:/usr/src/sys/arch/i386/compile/GENERIC.MP.RAID
cpu0: Intel(R) Pentium(R) D CPU 3.00GHz ("GenuineIntel" 686-class) 3.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR
real mem  = 1071640576 (1021MB)
avail mem = 1028104192 (980MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf0000, SMBIOS rev. 2.3 @ 0xee000 (47 entries)
bios0: vendor HP version "W04" date 04/06/2007
bios0: HP ProLiant DL320 G5
pcibios0 at bios0: rev 3.0 @ 0xf0000/0x2000
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GB LPC" rev 0x00)
pcibios0: PCI bus #11 is the last bus
bios0: ROM list: 0xc0000/0xb000 0xcc400/0x3400! 0xcf800/0x1a00 0xe6000/0x2000!
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP SPCR MCFG HPET SPMI APIC SSDT
acpitimer0 ...
From: Kent Watsen
Date: Sunday, January 6, 2008 - 6:11 pm

I just set up RAIDframe for the first time using 4.2 following the 
instructions located here:

    http://www.eclectica.ca/howto/openbsd-software-raid-howto.php

When I booted into the raided system, I noticed the following output:

    <snip>
    Kernelized RAIDframe activated
    cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
        SENSE KEY: Not Ready
         ASC/ASCQ: Medium Not Present
    siop0: target 0 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
    siop0: target 1 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
    raid0 at root: (RAID Level 1) total number of sectors is 16732160 
(8170 MB) as root
    raid0 at root: (RAID Level 1) total number of sectors is 16732160 
(8170 MB) as root
    bootpath: /pci@1f,0/pci@1,0/scsi@8,0/disk@0,0
    swapmount: no device
    raid0: Device already configured!
    raidctl: ioctl (RAIDFRAME_CONFIGURE) failed
    raid0: Parity status: clean
    Automatic boot in progress: starting file system checks.
    /dev/rraid0a: file system is clean; not checking
    setting tty flags
    starting network
    starting system logger
    starting initial daemons: ntpd.
    savecore: no core dump (no dumpdev)
    <snip>

which shows both the "swapmount: no device" and "savecore: no core dump 
(no dumpdev)" issues Boris reported.

Here are my disklabel and fstab


   # disklabel raid0 | tail -4
   #                size           offset  fstype [fsize bsize  cpg]
     a:         15683584                0  4.2BSD   2048 16384    1
     b:          1048576         15683584    swap                   
     c:         16732160                0  unused      0     0     

   # cat 
/etc/fstab                                                              
   /dev/raid0a / ffs rw 1 1


Note: prior to booting in the raid set, I'd get : "root on sd0a swap on 
sd0b dump on sd0b"

Thanks,
Kent

Previous thread: What's wrong with httpd-1.3.x and suexec? by Bibby on Monday, November 5, 2007 - 5:36 pm. (2 messages)

Next thread: Re: avail mem is only 66% of real mem by Wade, Daniel on Monday, November 5, 2007 - 5:55 pm. (3 messages)