Hi, I'm currently trying to set up a root-on-raid server using RAIDframe. Compiling a suitable kernel and building the array didn't cause much problems, but somehow I can't get the setup to be persistent across reboots -- the spare drive on which the mirror was reconstructed just doesn't get incorporated into the array :
Before reboot: # raidctl -s raid0 raid0 Components: component0: spared /dev/wd1d: optimal Spares: /dev/wd0d: used_spare Parity status: clean Reconstruction is 100% complete. Parity Re-write is 100% complete. Copyback is 100% complete. # After reboot: # raidctl -s raid0 raid0 Components: component0: failed /dev/wd1d: optimal No spares. Parity status: clean Reconstruction is 100% complete. Parity Re-write is 100% complete. Copyback is 100% complete. I suspect this is due to a problem with the raidframe label on wd0d, but I have no clue on how to fix this : # raidctl -g /dev/wd0d raid0 raidctl: ioctl (RAIDFRAME_GET_COMPONENT_LABEL) failed # raidctl -g /dev/wd1d raid0 Component label for /dev/wd1d: Row: 0, Column: 1, Num Rows: 1, Num Columns: 2 Version: 2, Serial Number: 2008071301, Mod Counter: 829714127 Clean: No, Status: 0 sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1 Queue size: 100, blocksize: 512, numBlocks: 78064512 RAID Level: 1 Autoconfig: Yes Root partition: Yes Last configured as: raid0 # I tried rebooting on a non-RAID setup (wd0a) and recreating the array from there, to no avail. Any hint ? Simon ----- raid0.conf ## ARRAY SECTION START array # Rows Cols Spare 1 2 0 ## DISK SECTION START disks # Components of the array # Was wd2d at creation time, I suspect this is part of the problem /dev/wd0d /dev/wd1d ## SPARE SECTION START spare # Spare devices ## LAYOUT SECTION START layout # SectPerSU SUsPerParityUnit SUsPerReconUnit RaidLevel 128 1 1 1 ## QUEUE SECTION START queue fifo 100 ----- dmesg OpenBSD 4.3-stable (RAID-43-orbis-sjv1.MP) #1: Sun Jul 13 12:17:55 CEST 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAID-43-orbis-sjv1.MP cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 449 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR real mem = 268001280 (255MB) avail mem = 254795776 (242MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/16/00, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.2 @ 0xfb5e0 (83 entries) bios0: vendor Dell Computer Corporation version "A14" date 08/16/00 bios0: Dell Computer Corporation Precision WorkStation 410 MT acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfcab0/192 (10 entries) pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc0000/0x8000! 0xc8000/0x800 0xc8800/0x3800 mainbus0: Intel MP Specification (Version 1.4) cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 99MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 449 MHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR mainbus0: bus 0 is type PCI mainbus0: bus 1 is type PCI mainbus0: bus 2 is type PCI mainbus0: bus 3 is type ISA ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02 agp0 at pchb0: aperture at 0xf0000000, size 0x4000000 ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02 pci1 at ppb0 bus 1 vga0 at pci1 dev 0 function 0 "Matrox MGA G200 AGP" rev 0x01 wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02 pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <Maxtor 6E040L0> wd0: 16-sector PIO, LBA, 39205MB, 80293248 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 wd1 at pciide0 channel 1 drive 0: <Maxtor 6E040L0> wd1: 16-sector PIO, LBA, 39205MB, 80293248 sectors wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: apic 2 int 19 (irq 11) piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMBus disabled xl0 at pci0 dev 17 function 0 "3Com 3c905B 100Base-TX" rev 0x00: apic 2 int 19 (irq 11), address 00:c0:4f:68:b2:64 exphy0 at xl0 phy 24: 3Com internal media interface ppb1 at pci0 dev 19 function 0 "DEC 21152 PCI-PCI" rev 0x03 pci2 at ppb1 bus 2 ahc0 at pci2 dev 14 function 0 "Adaptec AIC-7880" rev 0x01: apic 2 int 18 (irq 10) scsibus0 at ahc0: 16 targets cd0 at scsibus0 targ 3 lun 0: <MATSHITA, CD-ROM CR-8008, 8.0e> SCSI2 5/cdrom removable isa0 at piixpcib0 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 spkr0 at pcppi0 midi0 at pcppi0: <PC speaker> lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: 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 isapnp0 at isa0 port 0x279: read port 0x203 wss0 at isapnp0 "CS4236B, CSC0000, , WSS/SB" port 0x534/4,0x388/4,0x220/16 irq 5 drq 1,0: CS4236/CS4236B (vers 0) audio0 at wss0 joy0 at isapnp0 "CS4236B, CSC000F, , Game" port 0x3a0/8 "CS4236B, CSC0010, , Ctrl" at isapnp0 port 0xf00/8 not configured usb0 at uhci0: USB revision 1.0 uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 mtrr: Pentium Pro MTRR support Kernelized RAIDframe activated ahc0: target 3 synchronous at 5.0MHz, offset = 0xf cd0(ahc0:3:0): Check Condition (error 0x70) on opcode 0x0 SENSE KEY: Not Ready ASC/ASCQ: Medium Not Present raid0 at root: (RAID Level 1) total number of sectors is 78064512 (38117 MB) as root softraid0 at root swapmount: no device