I'm having some trouble reading from my backup tapes. When I try to
run 'restore -i' it times out and after 3 attempts resets the SCSI
bus. After that I get 'mt: /dev/rst0: Input/output error' trying to
access the drive through mt and restore or dump don't do any better.
The only way I know to clear the problem is to reboot the machine.
That's not a good option so what I want to know is, how can I
clear/reset/re-initalize/whatever the SCSI bus without rebooting? I'm
running OpenBSD 3.2 which I know I should update but I'm reluctant to
do so until I trust my backups. It's a VXA-1 internal packet tape
drive. Ecrix has a VXATool for diagnostics but it's not built for
OpenBSD so I can't tell if tell if the drive is the problem. Anyone
knows a way to make it work or find a something that does the same
thing?
Here's a copy of /var/run/dmesg.boot:
cat /var/run/dmesg.boot
16 function 2 "VIA VT83C572 USB" rev 0x80: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
"VIA VT6202 USB 2.0" rev 0x82 at pci0 dev 16 function 3 not configured
pcib0 at pci0 dev 17 function 0 vendor "VIA", unknown product 0x3177
rev 0x00
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, CD-552E, T016> SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97 Audio" rev 0x50: irq
10
ac97: codec id 0x414c4720 (Avance Logic <20>)
ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auvia0
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: console keyboard, using wsdisplay0
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 9c40 netmask 9c40 ttymask 9cc2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
iop0: configuring...
ioprbs0 at iop0 tid 522: <ADAPTEC, RAID-5, 370L> direct access, fixed
scsibus2 at ioprbs0: 1 targets
sd0 at scsibus2 targ 0 lun 0: <I2O, Container #00, > SCSI2 0/direct
fixed
sd0: 117288MB, 14952 cyl, 255 head, 63 sec, 512 bytes/sec, 240205824
sec total
device (class 0x80) at iop0 tid 8 not configured
device (class 0x80) at iop0 tid 9 not configured
device (class 0x80) at iop0 tid 10 not configured
device (class 0x80) at iop0 tid 11 not configured
dkcsum: sd0 matched BIOS disk 80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
uhub0: port error, restarting port 1
uhub0: port error, restarting port 2
uhub1: port error, restarting port 1
uhub1: port error, restarting port 2
uhub2: port error, restarting port 1
uhub2: port error, restarting port 2
st0(adw0:0:0): timed out
st0(adw0:0:0): timed out
st0(adw0:0:0): Check Condition on opcode 0x8
SENSE KEY: Media Error
INFO FIELD: 32768
ASC/ASCQ: Unrecovered Read Error
st0(adw0:0:0): Check Condition on opcode 0x0
SENSE KEY: Not Ready
ASC/ASCQ: Medium Not Present
st0(adw0:0:0): Check Condition on opcode 0x8
SENSE KEY: Blank Check
INFO FIELD: 32768
ASC/ASCQ: End-Of-Data Detected
st0(adw0:0:0): Check Condition on opcode 0x8
SENSE KEY: Blank Check
INFO FIELD: 32768
ASC/ASCQ: End-Of-Data Detected
st0(adw0:0:0): Check Condition on opcode 0x8
SENSE KEY: Blank Check
INFO FIELD: 32768
ASC/ASCQ: End-Of-Data Detected
st0(adw0:0:0): Check Condition on opcode 0x1b
SENSE KEY: Media Error
ASC/ASCQ: No Additional Sense Information
st0(adw0:0:0): timed out
st0(adw0:0:0): timed out
st0(adw0:0:0): timed out AGAIN. Resetting SCSI Bus
syncing disks... done
shutting down iop devices... done.
rebooting...
OpenBSD 3.2-stable (ATALK) #3: Tue Oct 7 22:47:21 EDT 2003
kit@hades.kithalsted.com:/usr/src/sys/arch/i386/compile/ATALK
cpu0: AMD K7 (Athlon) ("AuthenticAMD" 686-class) 1.80 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SYS,MTRR,P GE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD
real mem = 536391680 (523820K)
avail mem = 491794432 (480268K)
using 4278 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 09/11/02, BIOS32 rev. 0 @
0xfdad0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf7f30/208 (11 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x1106 product
0x3177
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0xa800 0xca800/0x4000 0xd2800/0x6000!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8366 Host-PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8366 PCI-AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia Vanta" rev 0x15
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
adw0 at pci0 dev 5 function 0 "Advansys ABP-940UW" rev 0x00: irq 11
scsibus0 at adw0: 16 targets
adw0: target 0 using 8 bit 10.0 MHz 15 REQ/ACK offset xfers
st0 at scsibus0 targ 0 lun 0: <ECRIX, VXA-1 V219191B, 0001> SCSI2
1/sequential removable
st0: density code 0x80, 1024-byte blocks, write-enabled
ppb1 at pci0 dev 7 function 0 "DPT PCI-PCI bridge" rev 0x02
pci2 at ppb1 bus 2
iop0 at pci0 dev 7 function 1 "DPT SmartRAID (I2O)" rev 0x02: I2O
adapter <ADAPTEC 2400A>
iop0: interrupting at irq 10
nge0 at pci0 dev 10 function 0 "NS DP83820 1/10/100/1000" rev 0x00:
irq 12: address: 00:50:ba:38:ed:d8
nsgphy0 at nge0 phy 1: DP83861 10/100/1000 media interface, rev. 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 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 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 12
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
"VIA VT6202 USB 2.0" rev 0x82 at pci0 dev 16 function 3 not configured
pcib0 at pci0 dev 17 function 0 vendor "VIA", unknown product 0x3177
rev 0x00
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, CD-552E, T016> SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97 Audio" rev 0x50: irq
10
ac97: codec id 0x414c4720 (Avance Logic <20>)
ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auvia0
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: console keyboard, using wsdisplay0
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 9c40 netmask 9c40 ttymask 9cc2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
iop0: configuring...
ioprbs0 at iop0 tid 522: <ADAPTEC, RAID-5, 370L> direct access, fixed
scsibus2 at ioprbs0: 1 targets
sd0 at scsibus2 targ 0 lun 0: <I2O, Container #00, > SCSI2 0/direct
fixed
sd0: 117288MB, 14952 cyl, 255 head, 63 sec, 512 bytes/sec, 240205824
sec total
device (class 0x80) at iop0 tid 8 not configured
device (class 0x80) at iop0 tid 9 not configured
device (class 0x80) at iop0 tid 10 not configured
device (class 0x80) at iop0 tid 11 not configured
dkcsum: sd0 matched BIOS disk 80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
uhub0: port error, restarting port 1
uhub0: port error, giving up port 1
uhub0: port error, restarting port 2
uhub0: port error, giving up port 2
uhub1: port error, restarting port 1
uhub1: port error, giving up port 1
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
uhub2: port error, restarting port 1
uhub2: port error, giving up port 1
uhub2: port error, restarting port 2
uhub2: port error, giving up port 2