Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 1998 12:53:49 -0700 (MST)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        andreas@klemm.gtn.com (Andreas Klemm)
Cc:        scsi@FreeBSD.ORG
Subject:   Re: some timestamps in CAM for syslog missing, is it possible ?
Message-ID:  <199811271953.MAA26288@panzer.plutotech.com>
In-Reply-To: <19981127082201.A2134@klemm.gtn.com> from Andreas Klemm at "Nov 27, 98 08:22:01 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Andreas Klemm wrote...
> Hi !
> 
> I inserted a new tape into my TDC4222 device.
> It lasts some seconds, 'til the device has loaded the QIC
> tape ... I immediately typed in mt retension, and this
> command seemed to timeout ... 
> 
> Messages:
> 
> (sa0:ahc0:0:4:0): SCB 0x1 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0
> SEQADDR == 0xb
> SSTAT1 == 0xa
> (sa0:ahc0:0:4:0): Queuing a BDR SCB
> (sa0:ahc0:0:4:0): Bus Device Reset Message Sent
> (sa0:ahc0:0:4:0): no longer in timeout, status = 34b
> ahc0: Bus Device Reset on A:4. 1 SCBs aborted
> (sa0:ahc0:0:4:0): LOAD UNLOAD. CDB: 1b 0 0 0 3 0 
> (sa0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> (sa0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> (sa0:ahc0:0:4:0): SCB 0x1 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0
> SEQADDR == 0x8
> SSTAT1 == 0xa
> (sa0:ahc0:0:4:0): Queuing a BDR SCB
> (sa0:ahc0:0:4:0): Bus Device Reset Message Sent
> (sa0:ahc0:0:4:0): no longer in timeout, status = 34b
> ahc0: Bus Device Reset on A:4. 1 SCBs aborted

It looks like the retension timeout is too short for your drive.   Go into
sys/cam/scsi/scsi_sa.c, and in the function saretension(), adjust the
timeout in the scsi_load_unload() function call to something that is
more likely to work with your drive.

The units are thousandths of a second, so 60000 == 1 minute.

Once you find a reasonable minimum time for the retension command on your
tape drive, send mail back to the SCSI list again, so we can perhaps adjust
the default timeout.

> After that I repeated the command ... in the middle of retensioning
> I got ...
> 
> (sa0:ahc0:0:4:0): LOAD UNLOAD. CDB: 1b 0 0 0 3 0 
> (sa0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> (sa0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> 
> Well, it's difficult to exactly determine, which message belongs
> to which action I did on the command line. Is it possible to
> display timestamps as well ?

Well, when you do a retension, it's really just a load/unload with another
bit set.  So, the command above is "load unload".  It looks like there was
a pending unit attention condition.

If you want a timestamp on things, look in /var/log/messages.  


Ken
-- 
Kenneth Merry
ken@plutotech.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811271953.MAA26288>