From owner-freebsd-scsi Mon Apr 9 9:21:41 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 7104737B424 for ; Mon, 9 Apr 2001 09:21:36 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id KAA82714; Mon, 9 Apr 2001 10:21:15 -0600 (MDT) (envelope-from ken) Date: Mon, 9 Apr 2001 10:21:14 -0600 From: "Kenneth D. Merry" To: Ken Menzel Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: 'ch' Errors using chio w-sony changer Message-ID: <20010409102114.A82661@panzer.kdm.org> References: <00c201c0c100$b25bdf20$711663cf@icarz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <00c201c0c100$b25bdf20$711663cf@icarz.com>; from kenm@icarz.com on Mon, Apr 09, 2001 at 10:23:49AM -0400 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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: > slot 1: > slot 2: > slot 3: > slot 4: > slot 5: > slot 6: > slot 7: > drive 0: Can you send the output of 'chio status -S'? > dmesg reports: > ch0 at ahc0 bus 0 target 6 lun 1 > ch0: 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