[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/dev/rst0 'Device busy' problem



I was using 'star' {star 1.4.1 (i386-unknown-openbsd3.2)} to restore 
files from a tape backup using:

  star -n -f /dev/rst0 list=list_of_files

I got an error (appended to this message along with 'dmesg' output) and 
now accesses to "/dev/rst0" always return 'Device busy'. 

# mt -f /dev/rst0 status
mt: /dev/rst0: Device busy
May  1 11:57:52 mysys /bsd: st0: already open
May  1 11:57:52 mysys /bsd: st0: already open

Short of restarting my system is there a way to clear "/dev/rst0" so it 
is no longer busy? I've tried killing (using 'kill -9') the 'star' 
process but that didn't work. The 'ps' information is:

# ps -aux
USER       PID %CPU %MEM   VSZ   RSS TT   STAT STARTED       TIME COMMAND
root      6671  0.0  0.0   168  8516 p0  DE    10:36AM    0:12.49 (star)

Anyone have any ideas?

Thanks,

Joe
===='star' result + error 
===================================================
x   35328 -rwxrw-rw-  user/group Sep 24 08:36 2002 home/...5.doc
x   35328 -rwxrw-rw-  user/group Sep 26 09:17 2002 home/...6.doc

May  1 11:26:22 mysys /bsd: st0(ahc1:1:0): SCB 0xe - timed out
May  1 11:26:22 mysys /bsd: st0(ahc1:1:0): SCB 0xe - timed out
May  1 11:26:22 mysys /bsd: ahc1: Dumping Card State while idle, at 
SEQADDR 0x9
May  1 11:26:22 mysys /bsd: ahc1: Dumping Card State while idle, at 
SEQADDR 0x9
May  1 11:26:22 mysys /bsd: ACCUM = 0x4, SINDEX = 0x17, DINDEX = 0x22, 
ARG_2 = 0x3
May  1 11:26:22 mysys /bsd: ACCUM = 0x4, SINDEX = 0x17, DINDEX = 0x22, 
ARG_2 = 0x3
May  1 11:26:22 mysys /bsd: HCNT = 0x0
May  1 11:26:22 mysys /bsd: HCNT = 0x0
May  1 11:26:22 mysys /bsd: SCSISEQ = 0x12, SBLKCTL = 0xa
May  1 11:26:22 mysys /bsd: SCSISEQ = 0x12, SBLKCTL = 0xa
May  1 11:26:22 mysys /bsd:  DFCNTRL = 0x0, DFSTATUS = 0x89
May  1 11:26:22 mysys /bsd:  DFCNTRL = 0x0, DFSTATUS = 0x89
May  1 11:26:22 mysys /bsd: LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 
0x80
May  1 11:26:22 mysys /bsd: LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 
0x80
May  1 11:26:22 mysys /bsd: SSTAT0 = 0x0, SSTAT1 = 0x8
May  1 11:26:22 mysys /bsd: SSTAT0 = 0x0, SSTAT1 = 0x8
May  1 11:26:22 mysys /bsd: SCSIPHASE = 0x0
May  1 11:26:22 mysys /bsd: SCSIPHASE = 0x0
May  1 11:26:22 mysys /bsd: STACK == 0x3, 0x66, 0x172, 0x0
May  1 11:26:22 mysys /bsd: STACK == 0x3, 0x66, 0x172, 0x0
May  1 11:26:22 mysys /bsd: SCB count = 16
May  1 11:26:22 mysys /bsd: SCB count = 16
May  1 11:26:22 mysys /bsd: Kernel NEXTQSCB = 15
May  1 11:26:22 mysys /bsd: Kernel NEXTQSCB = 15
May  1 11:26:22 mysys /bsd: Card NEXTQSCB = 15
May  1 11:26:22 mysys /bsd: Card NEXTQSCB = 15
May  1 11:26:22 mysys /bsd: QINFIFO entries: 
May  1 11:26:22 mysys /bsd: QINFIFO entries: 
May  1 11:26:22 mysys /bsd: Waiting Queue entries: 
May  1 11:26:22 mysys /bsd: Waiting Queue entries: 
May  1 11:26:22 mysys /bsd: Disconnected Queue entries: 0:14 
May  1 11:26:22 mysys /bsd: Disconnected Queue entries: 0:14 
May  1 11:26:22 mysys /bsd: QOUTFIFO entries: 
May  1 11:26:22 mysys /bsd: QOUTFIFO entries: 
May  1 11:26:22 mysys /bsd: Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 
May  1 11:26:22 mysys /bsd: Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 
May  1 11:26:22 mysys /bsd: Pending list: 14
May  1 11:26:22 mysys /bsd: Pending list: 14
May  1 11:26:22 mysys /bsd: Kernel Free SCB list: 13 12 11 10 9 8 7 6 5 4 
3 2 1 0 
May  1 11:26:22 mysys /bsd: Kernel Free SCB list: 13 12 11 10 9 8 7 6 5 4 
3 2 1 0 
May  1 11:26:22 mysys /bsd: Untagged Q(1): 14 
May  1 11:26:22 mysys /bsd: Untagged Q(1): 14 
May  1 11:26:22 mysys /bsd: FEATURES = 0x1def6, FLAGS = 0x485548, CHIP = 
0x40c BUGS =0x40
May  1 11:26:22 mysys /bsd: FEATURES = 0x1def6, FLAGS = 0x485548, CHIP = 
0x40c BUGS =0x40
May  1 11:26:22 mysys /bsd: sg[0] - Addr 0x7c97000 : Length 4096
May  1 11:26:22 mysys /bsd: sg[0] - Addr 0x7c97000 : Length 4096
May  1 11:26:22 mysys /bsd: sg[1] - Addr 0x7620000 : Length 4096
May  1 11:26:22 mysys /bsd: sg[1] - Addr 0x7620000 : Length 4096
May  1 11:26:22 mysys /bsd: sg[2] - Addr 0x17cc000 : Length 2048
May  1 11:26:22 mysys /bsd: sg[2] - Addr 0x17cc000 : Length 2048
May  1 11:26:22 mysys /bsd: st0(ahc1:1:0): Queuing a BDR SCB
May  1 11:26:22 mysys /bsd: st0(ahc1:1:0): Queuing a BDR SCB
May  1 11:26:23 mysys /bsd: st0(ahc1:1:0): no longer in timeout, status = 
0
May  1 11:26:23 mysys /bsd: st0(ahc1:1:0): no longer in timeout, status = 
0
May  1 11:26:23 mysys /bsd: st0: already open
May  1 11:26:23 mysys /bsd: st0: already open

star: Input/output error. Error reading '/dev/rst0'.
star: 354438 blocks + 0 bytes (total of 3629445120 bytes = 3544380.00k).
star: Device busy. Cannot open '/dev/rst0'.
=======================================================================
# dmesg
OpenBSD 3.2 (GENERIC) #25: Thu Oct  3 19:51:53 MDT 2002
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon Model 1 ("AuthenticAMD" 686-class) 599 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,MMX
real mem  = 133738496 (130604K)
avail mem = 118394880 (115620K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(86) BIOS, date 11/17/99, BIOS32 rev. 0 @ 
0xfd6d0
pcibios0 at bios0: rev. 2.1 @ 0xfd6d0/0x930
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf20/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A PCI-ISA" rev 
0x00)
pcibios0: PCI bus #1 is the last bus
...
ahc1 at pci0 dev 3 function 0 "Adaptec AHA-29160 U160" rev 0x02: irq 11
ahc1: aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs
scsibus0 at ahc1: 16 targets
...
ahc1: target 1 synchronous at 10.0MHz, offset = 0x1f
st0 at scsibus0 targ 1 lun 0: <ECRIX, VXA-1 V219191B, 0001> SCSI2 
1/sequential removable
st0: density code 0x80, 1024-byte blocks, write-enabled
...
st0: already open
st0: already open
st0(ahc1:1:0): Check Condition on opcode 0x8
    SENSE KEY: Media Error
   INFO FIELD: 10240
     ASC/ASCQ: Recorded Entity Not Found
st0(ahc1:1:0): Check Condition on opcode 0x10
    SENSE KEY: Media Error
     ASC/ASCQ: Write Append Error
st0(ahc1:1:0): SCB 0xe - timed out
ahc1: Dumping Card State while idle, at SEQADDR 0x9
ACCUM = 0x4, SINDEX = 0x17, DINDEX = 0x22, ARG_2 = 0x3
HCNT = 0x0
SCSISEQ = 0x12, SBLKCTL = 0xa
 DFCNTRL = 0x0, DFSTATUS = 0x89
LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80
SSTAT0 = 0x0, SSTAT1 = 0x8
SCSIPHASE = 0x0
STACK == 0x3, 0x66, 0x172, 0x0
SCB count = 16
Kernel NEXTQSCB = 15
Card NEXTQSCB = 15
QINFIFO entries: 
Waiting Queue entries: 
Disconnected Queue entries: 0:14 
QOUTFIFO entries: 
Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 
20 21 22 23 24 25 26 27 28 29 30 31 
Pending list: 14
Kernel Free SCB list: 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
Untagged Q(1): 14 
FEATURES = 0x1def6, FLAGS = 0x485548, CHIP = 0x40c BUGS =0x40
sg[0] - Addr 0x7c97000 : Length 4096
sg[1] - Addr 0x7620000 : Length 4096
sg[2] - Addr 0x17cc000 : Length 2048
st0(ahc1:1:0): Queuing a BDR SCB
st0(ahc1:1:0): no longer in timeout, status = 0
st0: already open
st0: already open
ahc1:A:1: no active SCB for reconnecting target - issuing BUS DEVICE RESET
SAVED_SCSIID == 0x17, SAVED_LUN == 0x0, ARG_1 == 0xe ACCUM = 0x0
SEQ_FLAGS == 0x10, SCBPTR == 0x0, BTT == 0xe, SINDEX == 0x31
SCSIID == 0x0, SCB_SCSIID == 0x17, SCB_LUN == 0x0, SCB_TAG == 0xff, 
SCB_CONTROL == 0x0
SCSIBUSL == 0x80, SCSISIGI == 0xe6
SXFRCTL0 == 0x88
SEQCTL == 0x10
ahc1: Dumping Card State in Message-in phase, at SEQADDR 0x1b5
ACCUM = 0x0, SINDEX = 0x31, DINDEX = 0xe4, ARG_2 = 0x3
HCNT = 0x0
SCSISEQ = 0x12, SBLKCTL = 0xa
 DFCNTRL = 0x0, DFSTATUS = 0x89
LASTPHASE = 0xe0, SCSISIGI = 0xe6, SXFRCTL0 = 0x88
SSTAT0 = 0x2, SSTAT1 = 0x11
SCSIPHASE = 0x8
STACK == 0x187, 0x172, 0x0, 0x14e
SCB count = 16
Kernel NEXTQSCB = 15
Card NEXTQSCB = 15
QINFIFO entries: 
Waiting Queue entries: 
Disconnected Queue entries: 
QOUTFIFO entries: 
Sequencer Free SCB List: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 
19 20 21 22 23 24 25 26 27 28 29 30 31 
Pending list: 
Kernel Free SCB list: 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
FEATURES = 0x1def6, FLAGS = 0x485548, CHIP = 0x40c BUGS =0x40
st0: already open
st0: already open
st0: already open
st0: already open
st0: already open
st0: already open



Joe Szedula
Email: szedula@mindspring.com