Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2004 18:22:45 +0100
From:      Ben Stuyts <ben@altesco.nl>
To:        freebsd-stable@freebsd.org
Subject:   mt stuck in cbwait
Message-ID:  <FA1C884C-2DBC-11D9-9256-000A959CFF76@altesco.nl>

next in thread | raw e-mail | index | archive | help
Hi,

During the nightly backup the tape drive gave some errors and now the 
mt process seems to be stuck in cbwait mode. ps -axl says:

     0 44326     1   0  -6  0   916  348 cbwait D     ??    0:00.00 mt 
-f /dev/nsa0 rewind

I tried several different KILL's but got nowhere. I manually ejected 
the tape and put another back in again, but that didn't wake it up 
either. Is there anything else I can try before rebooting the server 
and killing 198 days of uptime?

uname -a:
FreeBSD earth.altus-escon.com 4.10-BETA FreeBSD 4.10-BETA #12: Mon Apr 
19 06:48:13 CEST 2004     
root@earth.altus-escon.com:/home2/obj/usr/src/sys/EARTH  i386

Drive:
sa0 at ahc0 bus 0 target 3 lun 0
sa0: <BNCHMARK DLT1 5032> Removable Sequential Access SCSI-2 device
sa0: 20.000MB/s transfers (10.000MHz, offset 15, 16bit)

SCSI controller:
ahc0: <Adaptec 29160N Ultra160 SCSI adapter> port 0xa800-0xa8ff mem 
0xdfffa000-0xdfffafff irq 11 at device 9.0 on pci0

Errors:
Nov  3 02:46:22 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): WRITE 
FILEMARKS. CDB: 10 0 0 0 2 0
Nov  3 02:46:22 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): MEDIUM 
ERROR info:2 csi:0,0,87,42 asc:15,2
Nov  3 02:46:22 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): 
Positioning error detected by read of medium
Nov  3 02:46:22 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): failed to 
write terminating filemark(s)
...
Nov  3 03:02:37 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): tape is 
now frozen- use an OFFLINE, REWIND or MTEOM command to clear this 
state.
Nov  3 05:02:49 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): SCB 0x6 - 
timed out
Nov  3 05:02:49 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): Queuing a 
BDR SCB
Nov  3 05:02:49 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): Bus Device 
Reset Message Sent
Nov  3 05:02:49 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): no longer 
in timeout, status = 34b
Nov  3 07:02:49 <kern.crit> earth /kernel: (sa0:ahc0:0:3:0): SCB 0xe - 
timed out
etc...

With kind regards,
Ben



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FA1C884C-2DBC-11D9-9256-000A959CFF76>