Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2001 10:21:14 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Ken Menzel <kenm@icarz.com>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: 'ch' Errors using chio w-sony changer
Message-ID:  <20010409102114.A82661@panzer.kdm.org>
In-Reply-To: <00c201c0c100$b25bdf20$711663cf@icarz.com>; from kenm@icarz.com on Mon, Apr 09, 2001 at 10:23:49AM -0400
References:  <00c201c0c100$b25bdf20$711663cf@icarz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 09, 2001 at 10:23:49 -0400, Ken Menzel wrote:
> Hi All,
>   I have looked at the man pages and manual and archives and source
> for chio.  My 'guess' is that there is soemthing in the return of the
> status of the drive that the 'ch' driver doesn't like.  The error is a
> follows:
> 
> janeway# chio return drive 0
> chio: /dev/ch0: CHIOGSTATUS: Invalid argument
> 
> And /var/log/messages gets:
> 
> Apr  9 10:17:54 janeway /kernel: (ch0:ahc0:0:6:1): READ ELEMENT
> STATUS. CDB: b8
> 30 0 1 0 1 0 0 4 0 0 0
> Apr  9 10:17:54 janeway /kernel: (ch0:ahc0:0:6:1): ILLEGAL REQUEST
> asc:24,0
> Apr  9 10:17:54 janeway /kernel: (ch0:ahc0:0:6:1): Invalid field in
> CDB sks:cc,1

Have you tried 'chio move'?

> However:
> janeway# chio status
> picker 0:
> slot 0: <ACCESS>
> slot 1: <ACCESS,FULL>
> slot 2: <ACCESS,FULL>
> slot 3: <ACCESS,FULL>
> slot 4: <ACCESS,FULL>
> slot 5: <ACCESS,FULL>
> slot 6: <ACCESS,FULL>
> slot 7: <ACCESS,FULL>
> drive 0: <ACCESS,FULL>

Can you send the output of 'chio status -S'?

> dmesg reports:
> ch0 at ahc0 bus 0 target 6 lun 1
> ch0: <SONY TSL-11000 L0u6> Removable Changer SCSI-2 device
> ch0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
> ch0: 8 slots, 1 drive, 1 picker, 0 portals
> 
>  chio params
> /dev/ch0: 8 slots, 1 drive, 1 picker
> /dev/ch0: current picker: 0
> janeway#
> 
> The only thing I can't seem to do is move a tape!  Can anyone point me
> in the right direction?  The kernel is compiled with CAMDEBUG if that
> helps.

Well, first off, you can only 'return' something if it has a valid source
address.  chio status -S will likely tell you if that is the case.

If it doesn't have a valid source address (this can happen if the drive
doesn't support source element addresses or if the changer was powered on
or reset after the element made it into its current location), you can't
return it.

chio move should always work, as long as the source and destination are
valid.

Ken
-- 
Kenneth Merry
ken@kdm.org

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?20010409102114.A82661>