From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 18 12:12:32 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A6681065673 for ; Thu, 18 Sep 2008 12:12:32 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8B18FC0A for ; Thu, 18 Sep 2008 12:12:32 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so4684898rvf.43 for ; Thu, 18 Sep 2008 05:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=3oM+uDtMWsSRWUUT4oPFCfnMjsBx8ZyduLfa/+qlPC4=; b=tuTwDFzID2BeWnhKkV1SSvX1ZPbXH4Yw60rw3kqopgp8bPpD5GeqRpfBS8THMi/g8i /M/cXlX1IMTLIaxl4IavEeR+f3VuoT4vQwIMFmDjiSyvJNs5bnZej24CWW3piIanrTRi kAvUDxHcvvfj+m3vzUG3rJVnIl4oJHNYLDGZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=mR2OyQLLFBjDGvgEI7mcaRLlRxP8xxb6cqRBsA+5B6MUq5aJ3Can7hPt1ZvuhF7fWa wb3GbzH2ho172LF73V8tF37jlvHYPLiilBwNQ20CkUQYsirvDTeVrdGZIEuzdMJ8Q6o2 gd4es5IBai3ZfFfSURChIusubSCO+yLRtxTpE= Received: by 10.140.171.18 with SMTP id t18mr7393763rve.22.1221739952072; Thu, 18 Sep 2008 05:12:32 -0700 (PDT) Received: by 10.141.136.21 with HTTP; Thu, 18 Sep 2008 05:12:32 -0700 (PDT) Message-ID: <3c0b01820809180512v178154a6h6d1190a300a5d519@mail.gmail.com> Date: Thu, 18 Sep 2008 08:12:32 -0400 From: "Alexander Sack" To: "Dan Nelson" In-Reply-To: <20080916222415.GA66380@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48CFC480.804@vvisions.com> <20080916222415.GA66380@dan.emsphone.com> Cc: freebsd-scsi@freebsd.org Subject: Re: scsi errors when trying to move tapes. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2008 12:12:32 -0000 On Tue, Sep 16, 2008 at 6:24 PM, Dan Nelson wrote: > In the last episode (Sep 16), Jason Selwitz said: >> For some reason I can query status and get Barcode information back from the changer with both chio and mtx however when I try to move media into the drive I get errors see below. >> >> valbbacula# camcontrol devlist >> at scbus0 target 0 lun 0 (sa0,pass0) >> at scbus0 target 0 lun 1 (ch0,pass1) >> >> vvalbbacula# chio params >> /dev/ch0: 50 slots, 1 drive, 1 picker >> /dev/ch0: current picker: 0 >> >> vvalbbacula# chio status -a >> picker 0: sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <> intaddr: <1> scsi: >> slot 0: sense: <0x00/0x00> voltag: <027734L4:8224> avoltag: <:0> source: <> intaddr: <4096> scsi: > [...] >> slot 49: sense: <0x00/0x00> voltag: <029135L4:8224> avoltag: <:0> source: <> intaddr: <4145> scsi: >> drive 0: sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <> intaddr: <256> scsi: >> >> vvalbbacula# chio move slot 0 drive 0 >> chio: /dev/ch0: CHIOMOVE: Device not configured >> >> vvalbbacula# tail /var/log/messages >> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): MOVE MEDIUM. CDB: a5 0 0 1 10 0 1 0 0 0 0 0 >> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): CAM Status: SCSI Status Error >> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): SCSI Status: Check Condition >> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): ILLEGAL REQUEST asc:25,0 >> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): Logical unit not supported >> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): Unretryable error > > Depending on how smart the changer is, you may have to split that move > into two: > > move slot 0 picker 0 > move picker 0 drive 0 > > SCSI Mode page 1F has a table of bits that tell you what source and > destinations are allowed in a MOVE MEDIUM command. If you have a T-50 > loader, then according to > > http://www.spectralogic.com/index.cfm?fuseaction=home.displayFile&DocID=286 > > , the ST->DT bit should be set to 1, so your original command should > have worked. The ->MT bits are all zero, though, as if there really > isn't a picker at all, so my suggestion to split the command may not > work, either. > > -- > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > I agree with the above too. I'm not sure about splitting the commands up though (I also thought the right picker would just be automatically chosen based on the drive). Because though he is getting LUN unit not supported I'm wondering if there is an issue with configuring the tape on the FC fabric itself. I mean most of the commands that do go through I believe are mandatory (INQUIRY, etc.). You mentioned the tape can be put into several modes - can you consult the documentation about the recommended way the tape should be set up? I'm speculating here since I'm not familiar with your device. -aps