On Tue, May 31, 2011 at 11:05:08PM -0700, matt...@dempsky.org wrote:
> Date: Tue, 31 May 2011 23:05:08 -0700
> From: Matthew Dempsky <matt...@dempsky.org>
> To: tech@openbsd.org
> Subject: Testers needed for softraid diff
> 
> The diff below simplifies softraid(4) and makes it more like other
> SCSI HBA drivers.  Instead of attaching a scsibus(4) for each logical
> disk, it attaches just one scsibus(4) and attaches each logical disk
> to a unique target on the bus.  This also avoids the games softraid(4)
> currently plays to workaround not knowing the unit number that
> autoconf will assign when it attaches a device.
> 
> There shouldn't be any other functional/behavior changes.  But as with
> anything, please be sure to have backups in case of unexpected
> problems.
 

It works well for me.
This box had only one RAID1 array.  I created an additional one and ran
multiple dump|restore through it.


dmesg's diff:
--- dmesg.x2    Tue Jun  7 09:27:32 2011
+++ -   Tue Jun  7 14:34:39 2011
@@ -1,5 +1,5 @@
-OpenBSD 4.9-current (GENERIC.MP) #11: Wed May 25 12:33:51 MDT 2011
-    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
+OpenBSD 4.9-current (GENERIC.MP) #0: Tue Jun  7 09:33:55 CEST 2011
+    o...@x2.symacx.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 1072627712 (1022MB)
 avail mem = 1021857792 (974MB)
 mainbus0 at root
@@ -14,7 +14,7 @@
 acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
 acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
-cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2420.35 MHz
+cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2420.36 MHz
 cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
@@ -112,9 +112,11 @@
 vscsi0 at root
 scsibus0 at vscsi0: 256 targets
 softraid0 at root
+scsibus1 at softraid0: 256 targets
+softraid0: not all chunks were provided; attempting to bring volume 0 online
 softraid0: trying to bring up sd0 degraded
-scsibus1 at softraid0: 1 targets
 sd0 at scsibus1 targ 0 lun 0: <OPENBSD, SR RAID 1, 004> SCSI2 0/direct fixed
 sd0: 305082MB, 512 bytes/sec, 624809665 sec total
-softraid0: roaming device  -> wd1d
+sd1 at scsibus1 targ 1 lun 0: <OPENBSD, SR RAID 1, 004> SCSI2 0/direct fixed
+sd1: 305082MB, 512 bytes/sec, 624809072 sec total
 root on wd0a swap on wd0b dump on wd0b



full dmesg:
OpenBSD 4.9-current (GENERIC.MP) #0: Tue Jun  7 09:33:55 CEST 2011
    o...@x2.symacx.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1072627712 (1022MB)
avail mem = 1021857792 (974MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.2 @ 0xf0000 (41 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 05/17/2006
bios0: EPoX COMPUTER CO., LTD nForce4 DDR2: MF4 Series
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP SSDT MCFG APIC
acpi0: wakeup devices HUB0(S5) XVR0(S5) XVR1(S5) XVR2(S5) XVR3(S5) USB0(S4) 
USB2(S3) MMAC(S5) MMCI(S5) UAR1(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2420.36 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 220MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2420.07 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpitz0 at acpi0: critical temperature 85 degC
acpibtn0 at acpi0: PWRB
cpu0: PowerNow! K8 2420 MHz: speeds: 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0
"NVIDIA nForce4 DDR" rev 0xa4 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA nForce4 ISA" rev 0xb1
nviic0 at pci0 dev 1 function 1 "NVIDIA nForce4 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
iic1 at nviic0
ohci0 at pci0 dev 2 function 0 "NVIDIA nForce4 USB" rev 0xa2: apic 2 int 12, 
version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA nForce4 USB" rev 0xa4: apic 2 int 10
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
auich0 at pci0 dev 4 function 0 "NVIDIA nForce4 AC97" rev 0xa2: apic 2 int 5, 
nForce4 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
pciide0 at pci0 dev 6 function 0 "NVIDIA nForce4 IDE" rev 0xf3: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 7 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
pciide1: using apic 2 int 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <ST3320620AS>
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1 at pciide1 channel 1 drive 0: <ST3320620AS>
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
pciide2 at pci0 dev 8 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
pciide2: using apic 2 int 10 for native-PCI interrupt
wd2 at pciide2 channel 1 drive 0: <WDC WD20EARS-00MVWB0>
wd2: 16-sector PIO, LBA48, 1907729MB, 3907029168 sectors
wd2(pciide2:1:0): using PIO mode 4, Ultra-DMA mode 6
ppb0 at pci0 dev 9 function 0 "NVIDIA nForce4 PCI-PCI" rev 0xa2
pci1 at ppb0 bus 1
nfe0 at pci0 dev 10 function 0 "NVIDIA CK804 LAN" rev 0xa3: apic 2 int 11, 
address 00:04:61:46:d6:1e
eephy0 at nfe0 phy 1: 88E1116 Gigabit PHY, rev. 1
ppb1 at pci0 dev 11 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
pci2 at ppb1 bus 2
ppb2 at pci0 dev 12 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
pci3 at ppb2 bus 3
ppb3 at pci0 dev 13 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
pci4 at ppb3 bus 4
ppb4 at pci0 dev 14 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
pci5 at ppb4 bus 5
vga1 at pci5 dev 0 function 0 "ATI Radeon HD 4350" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 2 int 12
drm0 at radeondrm0
azalia0 at pci5 dev 0 function 1 "ATI Radeon HD 4000 HD Audio" rev 0x00: apic 2 
int 3
azalia0: no supported codecs
pchb0 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: core rev 
BH-F2
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 15 bytes
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
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Sun Microsystems Type 6 
Mouse" rev 1.00/1.02 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
softraid0: not all chunks were provided; attempting to bring volume 0 online
softraid0: trying to bring up sd0 degraded
sd0 at scsibus1 targ 0 lun 0: <OPENBSD, SR RAID 1, 004> SCSI2 0/direct fixed
sd0: 305082MB, 512 bytes/sec, 624809665 sec total
sd1 at scsibus1 targ 1 lun 0: <OPENBSD, SR RAID 1, 004> SCSI2 0/direct fixed
sd1: 305082MB, 512 bytes/sec, 624809072 sec total
root on wd0a swap on wd0b dump on wd0b


Thanks,

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com

Reply via email to