I'm trying to use an external HDD for backups. In case it's relevant: this is a SATA drive in an enclosure w/ eSATA and USB 2 interfaces (which shows up as "JMicron JM20336 SATA, USB Combo" in dmesg). The jack on the computer is USB 1, however. I'm currently running i386 4.4-stable with raidframe.
Initializing with fdisk and partitioning with disklabel worked fine, but several attempts to newfs have caused crashes, with messages like the following: umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED I didn't see anything mentioned on openbsd.org/plus45.html or openbsd.org/errata45.html about an update to umass. Did I miss something, so that this problem could be fixed by upgrading to 4.5? Otherwise, any ideas on how to fix this? The output of fdisk, disklabel, newfs, trace, ps, and the subsequent boot messages follows. Thanks! # fdisk sd0 Disk: sd0 geometry: 121601/255/63 [1953525168 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused *3: A6 0 1 1 - 121600 254 63 [ 63: 1953520002 ] OpenBSD # disklabel -p g sd0 # Inside MBR partition 3: type A6 start 63 size 1953520002 # /dev/rsd0c: type: SCSI disk: SCSI disk label: EADS-00M2B0 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 121601 total bytes: 931.5G rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 500.0G 0.0G 4.2BSD 2048 16384 1 c: 931.5G 0.0G unused 0 0 # umount /home # mount /dev/wd0a on / type ffs (local, softdep) /dev/wd0d on /tmp type ffs (local, nodev, nosuid, softdep) /dev/wd0f on /usr type ffs (local, nodev, softdep) /dev/wd0e on /var type ffs (local, nodev, nosuid, softdep) # newfs sd0a /dev/rsd0a: 512001.2MB in 1048578552 sectors of 512 bytes 2529 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED disk_unbusy: sd0: dk_busy < 0 pool scxspl: putting with none out panic: pool_do_put Stopped at Debugger+0x4: leave RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC! DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION! ddb> trace Debugger(d08308fc,50,d83c7d4c,d08c2ec0,d62ab000) at Debugger+0x4 panic(d074c741,d0772c02,d83c7d8c,6295,d83c7d74) at panic+0x55 pool_do_put(d08c2ec0,d62ab000,0,7df7,d0e68b00) at pool_do_put+0x193 pool_put(d08c2ec0,d62ab000,d83c7dec,d0506936,d0e95630) at pool_put+0x27 scsi_free_xs(d62ab000,1,d0e5d000,0) at scsi_free_xs+0x3c scsi_done(d62ab000,d0e68c00,d83c7e4c,d06a1e6a,0) at scsi_done+0xb3 umass_scsi_cb(d0e95800,d62ab000,2000,3,d0e95800) at umass_scsi_cb+0x8a umass_detach(d0e95800,1,10,d06a249f,d0e68880) at umass_detach+0xfb config_detach(d0e95800,1,d83c7f0c,d06a2a18,d0e68880) at config_detach+0x228 usb_disconnect_port(d0e687b0,d0e65500,10) at usb_disconnect_port+0x65 uhub_explore(d0e68880,d06a0b08,d83c7f8c,d06a0bbd,0) at uhub_explore+0x205 usb_discover(d0e68900,78,d09f3e78,d0200936,d62a86b8) at usb_discover+0x36 usb_event_thread(d0e68900) at usb_event_thread+0x91 Bad frame pointer: 0xd09f3e78 ddb> ps PID PPID PGRP UID S FLAGS WAIT COMMAND 14469 60 14469 0 2 0x4002 newfs 60 1 60 0 3 0x4082 pause ksh 25272 1 25272 0 3 0x4082 ttyin getty 20404 1 20404 0 3 0x4082 ttyin getty 5680 1 5680 0 3 0x4082 ttyin getty 18113 1 18113 0 3 0x4082 ttyin getty 29327 1 29327 0 3 0x4082 ttyin getty 5215 1 5215 0 3 0x80 select cron 4794 1 12275 0 3 0x82 nanosleep perl 21395 19976 19976 0 3 0x181 pause smbd 7185 1 7185 0 3 0x81 select nmbd 19976 1 19976 0 3 0x181 select smbd 1613 1 1613 0 3 0x80 select sshd 21487 1 21487 0 3 0x40180 select sendmail 9935 1 9935 0 3 0x180 select inetd 10423 30553 30553 83 3 0x180 poll ntpd 30553 1 30553 0 3 0x80 poll ntpd 15757 4005 4005 73 2 0x180 syslogd 4005 1 4005 0 3 0x88 netio syslogd 16 0 0 0 3 0x100200 bored crypto 15 0 0 0 3 0x100200 aiodoned aiodoned --db_more-- 14 0 0 0 3 0x100200 syncer update 13 0 0 0 3 0x100200 cleaner cleaner 12 0 0 0 3 0x100200 reaper reaper 11 0 0 0 3 0x100200 pgdaemon pagedaemon 10 0 0 0 3 0x100200 rfwcond raid0 9 0 0 0 3 0x100200 pftm pfpurge 8 0 0 0 3 0x100200 usbevt usb1 7 0 0 0 3 0x100200 usbtsk usbtask * 6 0 0 0 7 0x100200 usb0 5 0 0 0 3 0x100200 apmev apm0 4 0 0 0 3 0x100200 bored syswq 3 0 0 0 3 0x100200 idle0 2 0 0 0 3 0x100200 kmalloc kmthread 1 0 1 0 3 0x4080 wait init 0 -1 0 0 3 0x80200 scheduler swapper ddb> boot sync syncing disks... 3 2 done WARNING: not updating battery clock raid0 detached panic: mtx_enter: locking against myself Stopped at Debugger+0x4: leave RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC! DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION! ddb> trace Debugger(d08a20b0,d084de00,6,d0e68b00,d08c2ec0) at Debugger+0x4 panic(d02021ee,d83c79e4,d03c2a19,d08c2ec0,d83c7a24) at panic+0x55 mtx_enter(d08c2ec0,d83c7a24,d83c79f4,d0339ce9,d084df90) at mtx_enter+0x5a pool_get(d08c2ec0,0,d83c7a44,d0339c3c) at pool_get+0x15 scsi_get_xs(d0e68b00,103,d089fc00,d0,0) at scsi_get_xs+0x68 scsi_scsi_cmd(d0e68b00,d83c7a7c,a,0,0,4,186a0,0,103,30,d83c7a94,d03beec0) at sc si_scsi_cmd+0x27 sd_flush(d0e95600,3,d83c7af4,c00df) at sd_flush+0x59 sd_shutdown(d0e95600,2e9b,d83c7af4,d064adc5) at sd_shutdown+0x2f dohooks(d0830560,1,d83c7b14,d04ed7b5) at dohooks+0x6b boot(4800,0,d83c7b54,0,0) at boot+0x67 db_boot_crash_cmd(d04ea9d8,0,ffffffff,d83c7b5c,d082b820) at db_boot_crash_cmd db_command(d082b820,d082b640,d83c7c64,d034257d,50) at db_command+0xff db_command_loop(0,d83c7cec,d83c7ca4,d04ea827,1) at db_command_loop+0x8a db_trap(1,0,c,d83c7ca8,d064aaaa) at db_trap+0x90 kdb_trap(1,0,d83c7cec,50) at kdb_trap+0xab trap() at trap+0x95 --- trap (number 1) --- Debugger(d08308fc,50,d83c7d4c,d08c2ec0,d62ab000) at Debugger+0x4 panic(d074c741,d0772c02,d83c7d8c,6295,d83c7d74) at panic+0x55 pool_do_put(d08c2ec0,d62ab000,0,7df7,d0e68b00) at pool_do_put+0x193 pool_put(d08c2ec0,d62ab000,d83c7dec,d0506936,d0e95630) at pool_put+0x27 --db_more-- scsi_free_xs(d62ab000,1,d0e5d000,0) at scsi_free_xs+0x3c scsi_done(d62ab000,d0e68c00,d83c7e4c,d06a1e6a,0) at scsi_done+0xb3 umass_scsi_cb(d0e95800,d62ab000,2000,3,d0e95800) at umass_scsi_cb+0x8a umass_detach(d0e95800,1,10,d06a249f,d0e68880) at umass_detach+0xfb config_detach(d0e95800,1,d83c7f0c,d06a2a18,d0e68880) at config_detach+0x228 usb_disconnect_port(d0e687b0,d0e65500,10) at usb_disconnect_port+0x65 uhub_explore(d0e68880,d06a0b08,d83c7f8c,d06a0bbd,0) at uhub_explore+0x205 usb_discover(d0e68900,78,d09f3e78,d0200936,d62a86b8) at usb_discover+0x36 usb_event_thread(d0e68900) at usb_event_thread+0x91 Bad frame pointer: 0xd09f3e78 ddb> ps PID PPID PGRP UID S FLAGS WAIT COMMAND 14469 60 14469 0 2 0x4002 newfs 60 1 60 0 3 0x4082 pause ksh 25272 1 25272 0 3 0x4082 ttyin getty 20404 1 20404 0 3 0x4082 ttyin getty 5680 1 5680 0 3 0x4082 ttyin getty 18113 1 18113 0 3 0x4082 ttyin getty 29327 1 29327 0 3 0x4082 ttyin getty 5215 1 5215 0 3 0x80 select cron 4794 1 12275 0 2 0x482 perl 21395 19976 19976 0 3 0x181 pause smbd 7185 1 7185 0 2 0x81 nmbd 19976 1 19976 0 3 0x181 select smbd 1613 1 1613 0 3 0x80 select sshd 21487 1 21487 0 2 0x40580 sendmail 9935 1 9935 0 3 0x180 select inetd 10423 30553 30553 83 3 0x180 poll ntpd 30553 1 30553 0 3 0x80 poll ntpd 15757 4005 4005 73 2 0x180 syslogd 4005 1 4005 0 3 0x88 netio syslogd 16 0 0 0 3 0x100200 bored crypto 15 0 0 0 3 0x100200 aiodoned aiodoned --db_more-- 14 0 0 0 2 0x100200 update 13 0 0 0 2 0x100200 cleaner 12 0 0 0 3 0x100200 reaper reaper 11 0 0 0 3 0x100200 pgdaemon pagedaemon 10 0 0 0 2 0x100200 raid0 9 0 0 0 2 0x100600 pfpurge 8 0 0 0 3 0x100200 usbevt usb1 7 0 0 0 3 0x100200 usbtsk usbtask * 6 0 0 0 7 0x100200 usb0 5 0 0 0 2 0x100200 apm0 4 0 0 0 3 0x100200 bored syswq 3 0 0 0 3 0x100200 idle0 2 0 0 0 3 0x100200 kmalloc kmthread 1 0 1 0 3 0x4080 wait init 0 -1 0 0 3 0x80200 scheduler swapper ddb> boot sync rebooting... >> OpenBSD/i386 BOOT 3.02 boot> booting hd0a:/bsd: \|/-\6593152|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+1085876 [52+331408\|/-\|/-\|/-\|/-\|/-+317809\|/-\|/-\|/-\|/-\|/-]=0x7f15e0 entry point at 0x200120 [ using 649644 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2008 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.4-stable (GENERIC-RAID) #1: Sun Apr 19 14:10:54 CDT 2009 r...@athena.olympus:/usr/src/sys/arch/i386/compile/GENERIC-RAID cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class, 512KB L2 cache) 751 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR real mem = 267993088 (255MB) avail mem = 250277888 (238MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/12/00, BIOS32 rev. 0 @ 0xf0680, SMBIOS rev. 2.3 @ 0xf1f20 (48 entries) bios0: vendor Award Software, Inc. version "ASUS K7V ACPI BIOS Revision 1005a" date 05/12/2000 bios0: ASUSTeK Computer INC. <K7V> apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf0000/0xef2 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0e50/160 (8 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 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "VIA VT82C691 PCI" rev 0x02 ppb0 at pci0 dev 1 function 0 "VIA VT82C598 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "3DFX Interactive Voodoo3" rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) agp0 at vga1: v2, aperture at 0xe4000000, size 0x10000000 drm at vga1 unsupported pcib0 at pci0 dev 4 function 0 "VIA VT82C686 ISA" rev 0x22 pciide0 at pci0 dev 4 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <WDC WD205AA-00BAA0> wd0: 16-sector PIO, LBA, 19569MB, 40079088 sectors atapiscsi0 at pciide0 channel 0 drive 1 scsibus0 at atapiscsi0: 2 targets, initiator 7 cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CD-R/RW SW-240B, R401> ATAPI 5/cdrom removable wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 wd1 at pciide0 channel 1 drive 0: <WDC WD2500AAJB-00J3A0> wd1: 16-sector PIO, LBA48, 238475MB, 488397168 sectors wd2 at pciide0 channel 1 drive 1: <WDC WD2500JB-75GVC0> wd2: 16-sector PIO, LBA48, 238418MB, 488281250 sectors wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4 wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4 uhci0 at pci0 dev 4 function 2 "VIA VT83C572 USB" rev 0x10: irq 5 uhci1 at pci0 dev 4 function 3 "VIA VT83C572 USB" rev 0x10: irq 5 viaenv0 at pci0 dev 4 function 4 "VIA VT82C686 SMBus" rev 0x30: HWM disabled: 24-bit timer at 3579545Hz puc0 at pci0 dev 10 function 0 "US Robotics 3CP5610" rev 0x01: ports: 1 com com3 at puc0 port 0 irq 12: ns16550a, 16 byte fifo com3: probed fifo depth: 0 bytes xl0 at pci0 dev 11 function 0 "3Com 3c905 100Base-TX" rev 0x00: irq 10, address 00:60:08:c2:45:60 nsphy0 at xl0 phy 24: DP83840 10/100 PHY, rev. 1 emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 11 ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3) ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D audio0 at emu0 "Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console 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 midi0 at pcppi0: <PC speaker> 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 fd1 at fdc0 drive 1: density unknown usb0 at uhci0: USB revision 1.0 uhub0 at usb0 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1 biomask e365 netmask e765 ttymask f7ff mtrr: Pentium Pro MTRR support Kernelized RAIDframe activated umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron JM20336 SATA, USB Combo" rev 2.00/1.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <WDC WD10, EADS-00M2B0, > SCSI2 0/direct fixed sd0: 953869MB, 121601 cyl, 255 head, 63 sec, 512 bytes/sec, 1953525168 sec total ugen0 at uhub0 port 2 "APC Back-UPS ES 350 FW:800.e5.D USB FW:e5" rev 1.10/1.06 addr 3 umass0: BBB reset failed, IOERROR raid0 at root: (RAID Level 1) total number of sectors is 486913920 (237750 MB) softraid0 at root softraid0: wd1d can not read metadata version 0, expected 3 softraid0: wd2d can not read metadata version 0, expected 3 root on wd0a swap on wd0b dump on wd0b WARNING: / was not properly unmounted wd0a: aborted command, interface CRC error reading fsbn 514144 of 514144-514175 (wd0 bn 514207; cn 32 tn 2 sn 1), retrying wd0: transfer error, downgrading to Ultra-DMA mode 3 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3 cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 wd0a: aborted command, interface CRC error reading fsbn 514144 of 514144-514175 (wd0 bn 514207; cn 32 tn 2 sn 1), retrying wd0: soft error (corrected) raid0: Device already configured! raidctl: ioctl (RAIDFRAME_CONFIGURE) failed raid0: Parity status: clean Automatic boot in progress: starting file system checks. /dev/rwd0a: 2312 files, 24158 used, 228761 free (193 frags, 28571 blocks, 0.1% fragmentation) /dev/rwd0a: MARKING FILE SYSTEM CLEAN /dev/rraid0a: file system is clean; not checking /dev/rwd0d: 4 files, 4 used, 516275 free (27 frags, 64531 blocks, 0.0% fragmentation) /dev/rwd0d: MARKING FILE SYSTEM CLEAN /dev/rwd0f: 463025 files, 2334600 used, 2826973 free (42117 frags, 348107 blocks, 0.8% fragmentation) /dev/rwd0f: MARKING FILE SYSTEM CLEAN /dev/rwd0e: 906 files, 141499 used, 2956392 free (392 frags, 369500 blocks, 0.0% fragmentation) /dev/rwd0e: MARKING FILE SYSTEM CLEAN setting tty flags machdep.allowaperture: 0 -> 2 starting network starting system logger starting initial daemons: ntpd. savecore: no core dump checking quotas: done. building ps databases: kvm dev. clearing /tmp starting pre-securelevel daemons:. setting kernel security level: kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sendmail inetd sshd. Setting local environment variables Enabling SMART monitoring for local disks starting local daemons: nut smbd nmbd ddclient. standard daemons: cron.