So here I am again talking about using a USB2 drive to do backups. So I have all the new hardware for this including two 250GB Hitachi drives, and this USB2-EIDE enclosure:

http://www.kingwin.com/pdut_detail.asp?LineID=&CateID=27&ID=248

First thing I tried was hooking up an old 3GB HD I had around. This had zero effect. I would put in the drive turn on the enclosure and OpenBSD would not recognize the drive at all. So I figured something is wrong with the drive. To verify that the enclosure was working I plugged in an IDE CD-ROM drive to it. And with that CD drive OpenBSD had no problems recognizing the drive immediately when turned on, giving a very helpful message about the usb device and scsi bus device it was using for the hot-plug drive. And it also managed to deactivate the devices when I turned it off, again with very helpful messages.

So now I try one of the 250GB drives. And as soon as I turn on the enclosure OpenBSD freezes, I don't mean it kernel panics, the machine literally stops. No response whatsoever, no keyboard, no network, nothing. My only choice is to hard reset, which entails a RAID parity rebuild of an hour. Trying to cover the bases at this point I think maybe it has problems with an unformatted drive. So I plug the enclosure into my Linux box. It has no problems recognizing the drive. So I format as ext2, as I intended to make the fs as portable as possible, and briefly test out the drive on Linux without problems. So again it doesn't look like an enclosure problem.

Now I take the enclosure and turn it off, and to avoid the possibility of RAID rebuild I halt my OpenBSD box before plugging it back onto the machine. I turn it on, and as soon as it gets to initializing the USB2 (ehci) interface and devices again it freezes the machine.

This is certainly not what I was expecting given Theo's previous comments about the stability of USB2 ;-) Any ideas on getting this past the hard freeze state are *most* welcome.

Since OpenBSD is not very helpful in this case I can only enclose the dmesg without the enclosure plugged in. But first here's the info for the enclosure as Linux sees it (dmesg):

====
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt Link [ALKB] enabled at IRQ 21
ACPI: PCI interrupt 0000:00:10.0[A] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
uhci_hcd 0000:00:10.0: irq 21, io base 0xb000
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:10.1[A] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
uhci_hcd 0000:00:10.1: irq 21, io base 0xb400
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:10.2[B] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#3)
uhci_hcd 0000:00:10.2: irq 21, io base 0xb800
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:10.3[B] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.3: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#4)
uhci_hcd 0000:00:10.3: irq 21, io base 0xbc00
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 1-2: new full speed USB device using uhci_hcd and address 2
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
ACPI: PCI interrupt 0000:00:10.4[C] -> GSI 21 (level, low) -> IRQ 21
ehci_hcd 0000:00:10.4: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.4: irq 21, pci mem 0xdd001000
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
ehci_hcd 0000:00:10.4: USB 2.0 initialized, EHCI 1.00, driver 26 Oct 2004
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
usb 5-2: new high speed USB device using ehci_hcd and address 2
scsi4 : SCSI emulation for USB Mass Storage devices
usb 1-2: USB disconnect, address 2
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
==and later on===
====
Attached scsi generic sg1 at scsi4, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
 /dev/scsi/host4/bus0/target0/lun0: unknown partition table
Attached scsi disk sda at scsi4, channel 0, id 0, lun 0
program parted is using a deprecated SCSI ioctl, please convert it to SG_IO
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
 /dev/scsi/host4/bus0/target0/lun0: p1 p2
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
 /dev/scsi/host4/bus0/target0/lun0: p1 p2
program parted is using a deprecated SCSI ioctl, please convert it to SG_IO
Current sda: sense key No Sense
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
 /dev/scsi/host4/bus0/target0/lun0: p1 p2
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
 /dev/scsi/host4/bus0/target0/lun0: p1 p2
usb 5-2: USB disconnect, address 2
usb 5-3: new high speed USB device using ehci_hcd and address 3
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
  Vendor: HDT72252  Model: 5DLAT80           Rev: V44O
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
SCSI device sda: 488397169 512-byte hdwr sectors (250059 MB)
sda: assuming drive cache: write through
 /dev/scsi/host5/bus0/target0/lun0: p1 p2
Attached scsi disk sda at scsi5, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi5, channel 0, id 0, lun 0,  type 0
====

And the dmesg for the OpenBSD box...

====
OpenBSD 3.7-stable (RED5OF5) #0: Tue Jun 21 09:59:30 CDT 2005

[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RED5OF5
cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class) 1.22 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 1073238016 (1048084K)
avail mem = 972267520 (949480K)
using 4278 buffers containing 53764096 bytes (52504K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(f8) BIOS, date 06/06/01, BIOS32 rev. 0 @ 0xf0f50
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x17d2
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf1720/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:04:0 ("VIA VT82C686 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xa000 0xcc000/0x2000 0xd0000/0x800 0xd4000/0x2000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 4 function 0 "VIA VT82C686 ISA" rev 0x40
pciide0 at pci0 dev 4 function 1 "VIA VT82C571 IDE" rev 0x06: ATA100, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 6L250R0>
wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SONY, CD-RW CRX100E, 1.0m> SCSI0 5/cdrom removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2
wd1 at pciide0 channel 1 drive 0: <IC35L020AVER07-0>
wd1: 16-sector PIO, LBA, 19623MB, 40188960 sectors
wd2 at pciide0 channel 1 drive 1: <ST320423A>
wd2: 32-sector PIO, LBA, 19536MB, 40011300 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 4 function 2 "VIA VT83C572 USB" rev 0x16: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 4 function 3 "VIA VT83C572 USB" rev 0x16: irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viaenv0 at pci0 dev 4 function 4 "VIA VT82C686 SMBus" rev 0x40: HWM disabled
ohci0 at pci0 dev 9 function 0 "NEC USB" rev 0x41: irq 10, version 1.0
usb2 at ohci0: USB revision 1.0
uhub2 at usb2
uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 9 function 1 "NEC USB" rev 0x41: irq 5, version 1.0
usb3 at ohci1: USB revision 1.0
uhub3 at usb3
uhub3: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 9 function 2 "NEC USB" rev 0x02: irq 10
ehci0: EHCI version 0.95
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 5 ports with 5 removable, self powered
xl0 at pci0 dev 10 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 5, address 00:04:76:1b:75:12
exphy0 at xl0 phy 24: 3Com internal media interface
"Future Domain TMC-18C30 (36C70)" rev 0x00 at pci0 dev 11 function 0 not configured
vga1 at pci0 dev 12 function 0 "3DFX Interactive Voodoo3" rev 0x01
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide1 at pci0 dev 17 function 0 "Promise PDC20265" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 10 for native-PCI interrupt
wd3 at pciide1 channel 0 drive 0: <IC35L020AVER07-0>
wd3: 16-sector PIO, LBA, 19623MB, 40188960 sectors
wd4 at pciide1 channel 0 drive 1: <ST320423A>
wd4: 32-sector PIO, LBA, 19536MB, 40011300 sectors
wd3(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd4(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 4
pciide1: channel 1 disabled (no drives)
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: 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
biomask ef65 netmask ef65 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
Kernelized RAIDframe activated
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: APC Back-UPS ES 725 FW:802.n2.D USB FW:n2, rev 1.10/1.06, addr 2, iclass 3/0
uhidev0: 123 report ids
uhid0 at uhidev0 reportid 1: input=0, output=0, feature=1
uhid1 at uhidev0 reportid 2: input=0, output=0, feature=1
uhid2 at uhidev0 reportid 3: input=0, output=0, feature=1
uhid3 at uhidev0 reportid 4: input=0, output=0, feature=1
uhid4 at uhidev0 reportid 5: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 6: input=1, output=0, feature=1
uhid6 at uhidev0 reportid 7: input=0, output=0, feature=2
uhid7 at uhidev0 reportid 8: input=0, output=0, feature=2
uhid8 at uhidev0 reportid 9: input=0, output=0, feature=2
uhid9 at uhidev0 reportid 10: input=0, output=0, feature=1
uhid10 at uhidev0 reportid 11: input=0, output=0, feature=1
uhid11 at uhidev0 reportid 12: input=3, output=0, feature=3
uhid12 at uhidev0 reportid 13: input=0, output=0, feature=1
uhid13 at uhidev0 reportid 14: input=0, output=0, feature=1
uhid14 at uhidev0 reportid 15: input=0, output=0, feature=1
uhid15 at uhidev0 reportid 16: input=0, output=0, feature=1
uhid16 at uhidev0 reportid 17: input=0, output=0, feature=1
uhid17 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid18 at uhidev0 reportid 22: input=4, output=0, feature=4
uhid19 at uhidev0 reportid 23: input=0, output=0, feature=2
uhid20 at uhidev0 reportid 24: input=0, output=0, feature=1
uhid21 at uhidev0 reportid 28: input=0, output=0, feature=3
uhid22 at uhidev0 reportid 32: input=0, output=0, feature=2
uhid23 at uhidev0 reportid 34: input=0, output=0, feature=1
uhid24 at uhidev0 reportid 35: input=0, output=0, feature=2
uhid25 at uhidev0 reportid 36: input=0, output=0, feature=2
uhid26 at uhidev0 reportid 37: input=0, output=0, feature=2
uhid27 at uhidev0 reportid 38: input=0, output=0, feature=2
uhid28 at uhidev0 reportid 39: input=0, output=0, feature=1
uhid29 at uhidev0 reportid 40: input=0, output=0, feature=4
uhid30 at uhidev0 reportid 48: input=0, output=0, feature=1
uhid31 at uhidev0 reportid 49: input=0, output=0, feature=1
uhid32 at uhidev0 reportid 50: input=0, output=0, feature=1
uhid33 at uhidev0 reportid 51: input=0, output=0, feature=1
uhid34 at uhidev0 reportid 52: input=0, output=0, feature=1
uhid35 at uhidev0 reportid 53: input=0, output=0, feature=1
uhid36 at uhidev0 reportid 54: input=0, output=0, feature=1
uhid37 at uhidev0 reportid 64: input=0, output=0, feature=1
uhid38 at uhidev0 reportid 65: input=0, output=0, feature=2
uhid39 at uhidev0 reportid 80: input=0, output=0, feature=1
uhid40 at uhidev0 reportid 81: input=0, output=0, feature=1
uhid41 at uhidev0 reportid 96: input=0, output=0, feature=2
uhid42 at uhidev0 reportid 97: input=0, output=0, feature=1
uhid43 at uhidev0 reportid 98: input=0, output=0, feature=4
uhid44 at uhidev0 reportid 120: input=0, output=0, feature=1
uhid45 at uhidev0 reportid 121: input=0, output=0, feature=1
uhid46 at uhidev0 reportid 122: input=0, output=0, feature=4
uhid47 at uhidev0 reportid 123: input=0, output=0, feature=2
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
dkcsum: wd2 matched BIOS disk 82
dkcsum: wd3 matched BIOS disk 83
dkcsum: wd4 matched BIOS disk 84
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
raid0: Component /dev/wd1a being configured at row: 0 col: 0
         Row: 0 Column: 0 Num Rows: 1 Num Columns: 3
         Version: 2 Serial Number: 555000 Mod Counter: -540118961
         Clean: Yes Status: 0
raid0: Component /dev/wd2a being configured at row: 0 col: 1
         Row: 0 Column: 1 Num Rows: 1 Num Columns: 3
         Version: 2 Serial Number: 555000 Mod Counter: -540118961
         Clean: Yes Status: 0
raid0: Component /dev/wd3a being configured at row: 0 col: 2
         Row: 0 Column: 2 Num Rows: 1 Num Columns: 3
         Version: 2 Serial Number: 555000 Mod Counter: -540118961
         Clean: Yes Status: 0
raid0 (root)wd3a: aborted command, interface CRC error writing fsbn 21945376 of 21945376-21945407
====


--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

Reply via email to