From owner-freebsd-scsi@freebsd.org Tue May 15 20:19:43 2018 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5B6BEABFE5 for ; Tue, 15 May 2018 20:19:43 +0000 (UTC) (envelope-from ken@kdm.org) Received: from mithlond.kdm.org (mithlond.kdm.org [96.89.93.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mithlond.kdm.org", Issuer "mithlond.kdm.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 576B57C302 for ; Tue, 15 May 2018 20:19:42 +0000 (UTC) (envelope-from ken@kdm.org) Received: from mithlond.kdm.org (localhost [127.0.0.1]) by mithlond.kdm.org (8.15.2/8.14.9) with ESMTPS id w4FKJfeI036235 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 15 May 2018 16:19:41 -0400 (EDT) (envelope-from ken@mithlond.kdm.org) Received: (from ken@localhost) by mithlond.kdm.org (8.15.2/8.14.9/Submit) id w4FKJdEe036234; Tue, 15 May 2018 16:19:39 -0400 (EDT) (envelope-from ken) Date: Tue, 15 May 2018 16:19:39 -0400 From: "Kenneth D. Merry" To: Dirk-Willem van Gulik Cc: freebsd-scsi@freebsd.org Subject: Re: Scalar i40 tapechanger LUN appearing as a second tape drive Message-ID: <20180515201939.GA35140@mithlond.kdm.org> References: <47CCCC93-7168-47B8-8C80-248C90F8085C@webweaving.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47CCCC93-7168-47B8-8C80-248C90F8085C@webweaving.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mithlond.kdm.org [127.0.0.1]); Tue, 15 May 2018 16:19:41 -0400 (EDT) X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mithlond.kdm.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 20:19:43 -0000 On Sun, May 13, 2018 at 20:00:21 +0200, Dirk-Willem van Gulik wrote: > While having to re-surrect a Quantum Scalar i40 LTO5 unit - on a stock 11.1-RELEASE-p6 wired up with a external SAS cable to a HP Smart Array P222 I am seeing: > > camcontrol devlist > ... > at scbus3 target 4 lun 0 (sa0,pass1) > at scbus3 target 4 lun 1 (pass2,sa1) > .... > > rather than the tape drive on LUN 0 and the tape changer on LUN 1 (the control path is to this drive - the serial number matches - and in like with the web interface details). > > dmesg shows: > > ... > sa0 at ciss1 bus 32 scbus3 target 4 lun 0 > sa0: Serial Number C38CEFF000 > ... > sa1 at ciss1 bus 32 scbus3 target 4 lun 1 > ... > sa1: Serial Number C38CEFF000 > > The second drive (Serial C38CEFF004) is not wired up. Or if it is - it nicely shows up at the right (different) target and LUN0, without a second LUN. > > Does this ring a bell with any one ? The kernel has ch(4), sa(4) and pass(4) compiled in statically (and is known to work with other tape changers/libraries). > When you hooked other tape changers up, was it to the same machine, and also to the ciss(4) controller? Was the configuration the same? It looks like the array controller is moving things around. I would suggest taking a look at configuration options for the controller to see if you can adjust the way it does passthrough. Or, if you can find one, put a standard SAS controller in there (as opposed to a RAID controller) and hook that up to the tape library. It is unlikely that FreeBSD is causing this behavior. It really looks like the RAID controller is giving you multiple copies of the same tape drive. Ken -- Kenneth Merry ken@FreeBSD.ORG