Exabyte and file positioning...

Dario Alcocer dar at nucleus.mi.org
Fri Jun 8 06:51:34 AEST 1990


felix at warbucks.ai.sri.com (Felix Ingrand) writes:

>We are running 4.0.3 on a Sun-4/280.  Our Exabyte is on the SCSI port
>using the driver rst0. It looks like we are having some troubles with the
>file positioning on the tape. We are only using nrst0, and we are getting
>the following:

>Jun  5 13:22:43 sunset vmunix: st0:  illegal command
>Jun  5 13:22:43 sunset vmunix: st0:  failed cmd =  a  0  0  c8  0  0  
>Jun  5 13:22:43 sunset vmunix: st0 error:  sense key(0x5): illegal request
>Jun  5 13:22:43 sunset vmunix:            sense = 70  0  5  0  0  0  0  12  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  22  f3  99  0  0  
>Jun  5 13:22:43 sunset vmunix: 

>Felix

I'm not exactly sure what's the problem, but I have a few observations:

The command that failed was a WRITE command; 1st byte in cmd is the
operation code.  In the failed cmd, the 2nd byte is 0, implying that a
variable-length block write of 0xc800 bytes (3rd, 4th, and 5th bytes in
cmd) was requested.

However, if the length isn't between MINBLKLEN and MAXBLKLEN, you'll get
an illegal request sense key, as per the ANSI document.  Incidentlly,
according to the Exabyte docs (EXB-8200 User's Manual) I have, a maximum
variable length block can be at most 0x3c00, which is _smaller_ than
0xc800 bytes, may be a problem there, don't know what model you're using.

Also, the drive may have already been in fixed-length block mode, which
will also result in illegal request.  That's the SCSI end of things.  I'm
not sure as to tar and mt, I'm not familiar enough to know if there is
something they are doing to cause this.

Hope this helps somewhat.

Dario Alcocer                | Internet: dar at nucleus.mi.org
Associate Software Engineer  | voice: 619-673-2161, x5119
Emerald Systems              | Standard disclaimers apply.



More information about the Comp.sys.sun mailing list