From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 18 02:18:43 2010 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 271C9106566B for ; Mon, 18 Jan 2010 02:18:43 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id F42218FC1A for ; Mon, 18 Jan 2010 02:18:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id A68C950830; Mon, 18 Jan 2010 02:18:42 +0000 (GMT) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RVd-3jJiav7W; Mon, 18 Jan 2010 02:18:41 +0000 (GMT) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id BF85750823 ; Mon, 18 Jan 2010 02:18:41 +0000 (GMT) Message-ID: <4B53C505.7050608@langille.org> Date: Sun, 17 Jan 2010 21:18:45 -0500 From: Dan Langille User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: device.hints isn't setting what I want 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: Mon, 18 Jan 2010 02:18:43 -0000 Folks, [please CC me on replies] First, see also my post: do I want ch0 or pass1? I have an external tape library and an external tape drive. They are not always powered up. My goal: always get the same devices regardless of whether or not the tape library is powered on at boot. After booting, with the tape library powered on, I have these devices: # camcontrol devlist at scbus0 target 5 lun 0 (sa0,pass0) at scbus1 target 0 lun 0 (ch0,pass1) at scbus1 target 5 lun 0 (sa1,pass2) at scbus2 target 0 lun 0 (cd0,pass3) at scbus5 target 0 lun 0 (da0,pass4) In /boot/devices, I have added these entries: hint.scbus.1.at="ahc0" hint.scbus.0.at="ahc1" hint.scbus.2.at="acd0" hint.scbus.5.at="umass0" The first two lines ensure I always get the QUANTUM drive at sa0, and the DEC at sa1. That part works. The second two lines aren't doing as expected. If the external tape library is not powered up, I get: # camcontrol devlist at scbus0 target 5 lun 0 (sa0,pass0) at scbus3 target 0 lun 0 (cd0,pass1) at scbus7 target 0 lun 0 (da0,pass2) Then, after powering up, and doing a rescan all, I get: # camcontrol devlist at scbus0 target 5 lun 0 (sa0,pass0) at scbus1 target 0 lun 0 (pass3,ch0) at scbus1 target 5 lun 0 (pass4,sa1) at scbus3 target 0 lun 0 (cd0,pass1) at scbus7 target 0 lun 0 (da0,pass2) So... I could keep the unit powered on all the time, but that's really not what I want to do. Clues please? Full dmesg output at http://www.langille.org/tmp/dmesg.boot