Miroslav Lachman
2008-Sep-03 08:08 UTC
external HDD disconnects - umass1: BBB reset failed, IOERROR (FreeBSD 6.3)
Hi, I tried to use 1TB HDD (SAMSUNG HD103UJ) in external enclosure connected by USB 2.0 to my old machine with FreeBSD 6.3-RELEASE-p1 GENERIC i386. It connects OK, I can read & write to disk (shown as /dev/da1). But my dd command test failed after 50 minutes: root@amanda ~/# dd if=/dev/da1 of=/dev/da1 bs=1m dd: /dev/da1: Invalid argument 20435+0 records in 20435+0 records out 21427650560 bytes transferred in 2963.876996 secs (7229602 bytes/sec) Usr: 0.092s Krnl: 10.689s Totl: 49:23.87s CPU: 0.3% swppd: 0 I/O: 0+0 relevant part of /var/log/messages Sep 2 20:06:15 amanda kernel: umass1: Sunplus Technology Co.,Ltd. USB to Serial-ATA bridge, rev 2.00/1.12, addr 3 Sep 2 20:06:15 amanda kernel: da1 at umass-sim1 bus 1 target 0 lun 0 Sep 2 20:06:15 amanda kernel: da1: <SAMSUNG HD103UJ > Fixed Direct Access SCSI-2 device Sep 2 20:06:15 amanda kernel: da1: 40.000MB/s transfers Sep 2 20:06:15 amanda kernel: da1: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C) Sep 2 20:06:46 amanda login: ROOT LOGIN (root) ON ttyv0 Sep 2 20:07:29 amanda ntpd[845]: kernel time sync enabled 6001 Sep 2 20:24:32 amanda ntpd[845]: kernel time sync enabled 2001 Sep 2 20:58:06 amanda kernel: umass1: BBB reset failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-in clear stall failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-out clear stall failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: BBB reset failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-in clear stall failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-out clear stall failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: BBB reset failed, IOERROR Sep 2 20:58:06 amanda kernel: umass1: at uhub2 port 1 (addr 3) disconnected Sep 2 20:58:06 amanda kernel: (da1:umass-sim1:1:0:0): lost device Sep 2 20:58:06 amanda kernel: (da1:dead_sim0:0:0:0): Synchronize cache failed, status == 0x8, scsi status == 0x0 Sep 2 20:58:06 amanda kernel: (da1:dead_sim0:0:0:0): removing device entry Sep 2 20:58:06 amanda kernel: umass1: detached I have another disk (500GB) with different enclosure connected to another USB port as /dev/da0 without any problem for more than 3 month and using it for nightly rsync backups. I tried to reattache it again without reboot, without success. root@amanda ~/# camcontrol rescan all Re-scan of bus 0 was successful Re-scan of bus 1 was successful root@amanda ~/# camcontrol devlist -v scbus0 on umass-sim0 bus 0: <Hitachi VFK401R41N V56O> at scbus0 target 0 lun 0 (pass0,da0) scbus1 on sbp0 bus 0: < > at scbus1 target -1 lun -1 () scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) root@amanda ~/# camcontrol reset 1 Reset of bus 1 returned error 0x6 Does anybody know what causes this problem? Miroslav Lachman root@amanda ~/# pciconf -l -v agp0@pci0:0:0: class=0x060000 card=0x80ac1043 chip=0x01e010de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce2 AGP Controller' class = bridge subclass = HOST-PCI none0@pci0:0:1: class=0x050000 card=0x80ac1043 chip=0x01eb10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce2 Memory Controller 1' class = memory subclass = RAM none1@pci0:0:2: class=0x050000 card=0x80ac1043 chip=0x01ee10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce2 Memory Controller 4' class = memory subclass = RAM none2@pci0:0:3: class=0x050000 card=0x80ac1043 chip=0x01ed10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce2 Memory Controller 3' class = memory subclass = RAM none3@pci0:0:4: class=0x050000 card=0x80ac1043 chip=0x01ec10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce2 Memory Controller 2' class = memory subclass = RAM none4@pci0:0:5: class=0x050000 card=0x80ac1043 chip=0x01ef10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce2 Memory Controller 5' class = memory subclass = RAM isab0@pci0:1:0: class=0x060100 card=0x80ad1043 chip=0x006010de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP2 ISA Bridge' class = bridge subclass = PCI-ISA none5@pci0:1:1: class=0x0c0500 card=0x0c111043 chip=0x006410de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP-T SMBus Controller' class = serial bus subclass = SMBus ohci0@pci0:2:0: class=0x0c0310 card=0x0c111043 chip=0x006710de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP2 OpenHCI USB Controller' class = serial bus subclass = USB ohci1@pci0:2:1: class=0x0c0310 card=0x0c111043 chip=0x006710de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP2 OpenHCI USB Controller' class = serial bus subclass = USB ehci0@pci0:2:2: class=0x0c0320 card=0x0c111043 chip=0x006810de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP2 EHCI USB 2.0 Controller' class = serial bus subclass = USB nve0@pci0:4:0: class=0x020000 card=0x80a71043 chip=0x006610de rev=0xa1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP-T Ethernet Adapter Chip 10/100/HD/FD-Autosense' class = network subclass = ethernet none6@pci0:5:0: class=0x040100 card=0x0c111043 chip=0x006b10de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP-T? Audio Processing Unit (Dolby Digital)' class = multimedia subclass = audio none7@pci0:6:0: class=0x040100 card=0x80951043 chip=0x006a10de rev=0xa1 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP-T Audio Codec Interface' class = multimedia subclass = audio pcib1@pci0:8:0: class=0x060400 card=0x00000000 chip=0x006c10de rev=0xa3 hdr=0x01 vendor = 'Nvidia Corp' device = 'nForce MCP-T CPU to PCI Bridge' class = bridge subclass = PCI-PCI atapci1@pci0:9:0: class=0x01018a card=0x0c111043 chip=0x006510de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP2 EIDE Controller' class = mass storage subclass = ATA fwohci0@pci0:13:0: class=0x0c0010 card=0x809a1043 chip=0x006e10de rev=0xa3 hdr=0x00 vendor = 'Nvidia Corp' device = 'nForce MCP2 OHCI Compliant IEEE 1394 Controller' class = serial bus subclass = FireWire pcib2@pci0:30:0: class=0x060400 card=0x00000000 chip=0x01e810de rev=0xc1 hdr=0x01 vendor = 'Nvidia Corp' device = 'nForce2 AGP Host to PCI Bridge' class = bridge subclass = PCI-PCI skc0@pci1:4:0: class=0x020000 card=0x811a1043 chip=0x432011ab rev=0x13 hdr=0x00 vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)' device = 'Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet none8@pci1:9:0: class=0x030000 card=0x8a015333 chip=0x8a015333 rev=0x01 hdr=0x00 vendor = 'S3 Graphics Co., Ltd' device = '86C375 ViRGE/DX, 86C385 ViRGE/GX' class = display subclass = VGA atapci0@pci1:11:0: class=0x010400 card=0x61121095 chip=0x31121095 rev=0x02 hdr=0x00 vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' device = 'SiI 3112 SATALink/SATARaid Controller' class = mass storage subclass = RAID dmesg: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 13 02:40:56 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC mptable_probe: Unable to map end of MP Config Table ACPI APIC Table: <Nvidia AWRDACPI> Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 1800+ (1531.03-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!> real memory = 536805376 (511 MB) avail memory = 515878912 (491 MB) ioapic0 <Version 1.1> irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Feb 13 2008 02:40:39) acpi0: <Nvidia AWRDACPI> on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: <ACPI CPU> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 Correcting nForce2 C1 CPU disconnect hangs agp0: <NVIDIA nForce2 AGP Controller> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pci0: <memory, RAM> at device 0.1 (no driver attached) pci0: <memory, RAM> at device 0.2 (no driver attached) pci0: <memory, RAM> at device 0.3 (no driver attached) pci0: <memory, RAM> at device 0.4 (no driver attached) pci0: <memory, RAM> at device 0.5 (no driver attached) isab0: <PCI-ISA bridge> at device 1.0 on pci0 isa0: <ISA bus> on isab0 pci0: <serial bus, SMBus> at device 1.1 (no driver attached) ohci0: <OHCI (generic) USB controller> mem 0xed081000-0xed081fff irq 20 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: <OHCI (generic) USB controller> on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: <OHCI (generic) USB controller> mem 0xed084000-0xed084fff irq 21 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: <OHCI (generic) USB controller> on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered ehci0: <NVIDIA nForce2 USB 2.0 controller> mem 0xed085000-0xed0850ff irq 22 at device 2.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: <NVIDIA nForce2 USB 2.0 controller> on ehci0 usb2: USB revision 2.0 uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 6 ports with 6 removable, self powered umass0: JMicron JM20336 SATA, USB Combo, rev 2.00/1.00, addr 2 nve0: <NVIDIA nForce MCP2 Networking Adapter> port 0xe400-0xe407 mem 0xed080000-0xed080fff irq 20 at device 4.0 on pci0 nve0: Ethernet address 00:0e:a6:2b:e5:3d miibus0: <MII bus> on nve0 rlphy0: <RTL8201L 10/100 media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto nve0: Ethernet address: 00:0e:a6:2b:e5:3d pci0: <multimedia, audio> at device 5.0 (no driver attached) pci0: <multimedia, audio> at device 6.0 (no driver attached) pcib1: <ACPI PCI-PCI bridge> at device 8.0 on pci0 pci1: <ACPI PCI bus> on pcib1 skc0: <Marvell Gigabit Ethernet> port 0xa000-0xa0ff mem 0xe9000000-0xe9003fff irq 17 at device 4.0 on pci1 skc0: Marvell Yukon Lite Gigabit Ethernet rev. A3(0x7) sk0: <Marvell Semiconductor, Inc. Yukon> on skc0 sk0: Ethernet address: 00:0e:a6:2b:d9:82 miibus1: <MII bus> on sk0 e1000phy0: <Marvell 88E1011 Gigabit PHY> on miibus1 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto pci1: <display, VGA> at device 9.0 (no driver attached) atapci0: <SiI SiI 3112 SATA150 controller> port 0xa400-0xa407,0xa800-0xa803,0xac00-0xac07,0xb000-0xb003,0xb400-0xb40f mem 0xe9004000-0xe90041ff irq 18 at device 11.0 on pci1 ata2: <ATA channel 0> on atapci0 ata3: <ATA channel 1> on atapci0 atapci1: <nVidia nForce2 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 9.0 on pci0 ata0: <ATA channel 0> on atapci1 ata1: <ATA channel 1> on atapci1 fwohci0: <1394 Open Host Controller Interface> mem 0xed086000-0xed0867ff,0xed087000-0xed08703f irq 20 at device 13.0 on pci0 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:e0:18:00:00:4f:c4:90 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 fwe0: <Ethernet over FireWire> on firewire0 if_fwe0: Fake Ethernet address: 02:e0:18:4f:c4:90 fwe0: Ethernet address: 02:e0:18:4f:c4:90 fwe0: if_start running deferred for Giant sbp0: <SBP-2/SCSI over FireWire> on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci3: <ACPI PCI bus> on pcib2 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff,0xcc000-0xcd7ff,0xce000-0xcefff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1531026903 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected. acd0: CDRW <CD-W58E/1.0A> at ata0-master PIO4 ad2: 152627MB <Seagate ST3160023A 3.01> at ata1-master UDMA100 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Hitachi VFK401R41N V56O> Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) Trying to mount root from ufs:/dev/ad2s1a sk0: link state changed to UP
Miroslav Lachman
2008-Sep-04 12:24 UTC
external HDD disconnects - umass1: BBB reset failed, IOERROR (FreeBSD 6.3)
I am sorry for the noise, it was caused by failure of enclosures power supply. Miroslav Lachman wrote:> Hi, > > I tried to use 1TB HDD (SAMSUNG HD103UJ) in external enclosure connected > by USB 2.0 to my old machine with FreeBSD 6.3-RELEASE-p1 GENERIC i386. > > It connects OK, I can read & write to disk (shown as /dev/da1). > But my dd command test failed after 50 minutes: > > root@amanda ~/# dd if=/dev/da1 of=/dev/da1 bs=1m > dd: /dev/da1: Invalid argument > 20435+0 records in > 20435+0 records out > 21427650560 bytes transferred in 2963.876996 secs (7229602 bytes/sec) > > Usr: 0.092s Krnl: 10.689s Totl: 49:23.87s CPU: 0.3% swppd: 0 I/O: 0+0 > > relevant part of /var/log/messages > > Sep 2 20:06:15 amanda kernel: umass1: Sunplus Technology Co.,Ltd. USB > to Serial-ATA bridge, rev 2.00/1.12, addr 3 > Sep 2 20:06:15 amanda kernel: da1 at umass-sim1 bus 1 target 0 lun 0 > Sep 2 20:06:15 amanda kernel: da1: <SAMSUNG HD103UJ > Fixed Direct > Access SCSI-2 device > Sep 2 20:06:15 amanda kernel: da1: 40.000MB/s transfers > Sep 2 20:06:15 amanda kernel: da1: 953869MB (1953525168 512 byte > sectors: 255H 63S/T 121601C) > Sep 2 20:06:46 amanda login: ROOT LOGIN (root) ON ttyv0 > Sep 2 20:07:29 amanda ntpd[845]: kernel time sync enabled 6001 > Sep 2 20:24:32 amanda ntpd[845]: kernel time sync enabled 2001 > Sep 2 20:58:06 amanda kernel: umass1: BBB reset failed, IOERROR > Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-in clear stall failed, > IOERROR > Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-out clear stall failed, > IOERROR > Sep 2 20:58:06 amanda kernel: umass1: BBB reset failed, IOERROR > Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-in clear stall failed, > IOERROR > Sep 2 20:58:06 amanda kernel: umass1: BBB bulk-out clear stall failed, > IOERROR > Sep 2 20:58:06 amanda kernel: umass1: BBB reset failed, IOERROR > Sep 2 20:58:06 amanda kernel: umass1: at uhub2 port 1 (addr 3) > disconnected > Sep 2 20:58:06 amanda kernel: (da1:umass-sim1:1:0:0): lost device > Sep 2 20:58:06 amanda kernel: (da1:dead_sim0:0:0:0): Synchronize cache > failed, status == 0x8, scsi status == 0x0 > Sep 2 20:58:06 amanda kernel: (da1:dead_sim0:0:0:0): removing device entry > Sep 2 20:58:06 amanda kernel: umass1: detached[...]