I tried to rebuild a single disk in a 4 disk raid-10 array using the following command:

# bioctl -R 0:3 sd0
bioctl: BIOCSETSTATE: invalid argument

What does this mean exactly?

I did rebuild the array via the MegaRAID BIOS utility. Are we able to rebuild arrays via bioctl?

# bioctl sd0
Volume  Status               Size Device
 ami0 0 Online        73494691840 sd0     RAID10
0 Online 36747345920 0:1.0 noencl <FUJITSU MAP3367NP 0108> 1 Online 36747345920 0:2.0 noencl <FUJITSU MAP3367NP 0108> 2 Online 36747345920 0:3.0 noencl <FUJITSU MAP3367NP 0108> 3 Online 36747345920 0:4.0 noencl <FUJITSU MAP3367NP 0108>

$ sysctl hw.sensors.ami0
hw.sensors.ami0.drive0=online (sd0), OK

$ dmesg | grep ^ami
ami0 at pci2 dev 4 function 0 "AMI MegaRAID" rev 0x20: apic 2 int 20 (irq 11)
ami0: AMI 475, 64b/lhc, FW 163D, BIOS v5.07, 32MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives


OpenBSD 4.8-current (GENERIC.MP) #385: Tue Sep 21 05:01:01 MDT 2010
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 1 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PSE36,SER,MMX,FXSR,SSE
real mem  = 2138599424 (2039MB)
avail mem = 2093604864 (1996MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/26/01, BIOS32 rev. 0 @ 0xfd7e3, SMBIOS rev. 2.1 @ 0xef840 (46 entries) bios0: vendor Intel Corporation version "L440GX0.86B.0133.P14.0103261759" date 03/26/01
bios0: Intel L440GX+
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices PCI0(S4) COMB(S4) USBC(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 1 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PSE36,SER,MMX,FXSR,SSE
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibtn0 at acpi0: SLPB
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xc9800/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82440BX AGP" rev 0x00
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82440BX AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 15 function 0 "DEC 21150-BC PCI-PCI" rev 0x06
pci2 at ppb1 bus 2
ami0 at pci2 dev 4 function 0 "AMI MegaRAID" rev 0x20: apic 2 int 20 (irq 11)
ami0: AMI 475, 64b/lhc, FW 163D, BIOS v5.07, 32MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 70090MB, 512 bytes/sec, 143544320 sec total
scsibus1 at ami0: 16 targets
ahc0 at pci0 dev 12 function 0 "Adaptec AIC-7896/7 U2" rev 0x00: apic 2 int 19 (irq 11)
scsibus2 at ahc0: 16 targets, initiator 7
ahc1 at pci0 dev 12 function 1 "Adaptec AIC-7896/7 U2" rev 0x00: apic 2 int 19 (irq 11)
scsibus3 at ahc1: 16 targets, initiator 7
em0 at pci0 dev 13 function 0 "Intel PRO/1000MT (82546EB)" rev 0x01: apic 2 int 17 (irq 11), address 00:04:23:ac:66:d2 em1 at pci0 dev 13 function 1 "Intel PRO/1000MT (82546EB)" rev 0x01: apic 2 int 22 (irq 5), address 00:04:23:ac:66:d3 fxp0 at pci0 dev 14 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 21 (irq 10), address 00:03:47:11:2e:58
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ohci0 at pci0 dev 16 function 0 "NEC USB" rev 0x43: apic 2 int 16 (irq 11), version 1.0 ohci1 at pci0 dev 16 function 1 "NEC USB" rev 0x43: apic 2 int 21 (irq 10), version 1.0
ehci0 at pci0 dev 16 function 2 "NEC USB" rev 0x04: apic 2 int 22 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1
piixpcib0 at pci0 dev 18 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 18 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus4 at atapiscsi0: 2 targets
cd0 at scsibus4 targ 0 lun 0: <SONY, DVD RW DRU-720A, JY02> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 18 function 2 "Intel 82371AB USB" rev 0x01: apic 2 int 21 (irq 10)
piixpm0 at pci0 dev 18 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 512MB SDRAM registered ECC PC100CL2
spdmem1 at iic0 addr 0x51: 512MB SDRAM registered ECC PC100CL2
spdmem2 at iic0 addr 0x52: 512MB SDRAM registered ECC PC100CL2
spdmem3 at iic0 addr 0x53: 512MB SDRAM registered ECC PC100CL2
vga1 at pci0 dev 20 function 0 "Cirrus Logic CL-GD5480" rev 0x23
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NEC OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "NEC OHCI root hub" rev 1.00/1.00 addr 1
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
usb3 at uhci0: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
ulpt0 at uhub3 port 2 configuration 1 interface 0 "Lexmark International, Inc. Lexmark Optra E312L" rev 1.00/1.00 addr 2
ulpt0: using bi-directional mode

Reply via email to