From owner-freebsd-stable@FreeBSD.ORG Fri Jan 22 01:23:20 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA5B41065672 for ; Fri, 22 Jan 2010 01:23:20 +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 839458FC16 for ; Fri, 22 Jan 2010 01:23:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id 01DEE5099F; Fri, 22 Jan 2010 01:23:19 +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 aGapP4BdoysY; Fri, 22 Jan 2010 01:23:18 +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 05ACE50823 ; Fri, 22 Jan 2010 01:23:17 +0000 (GMT) Message-ID: <4B58FE0B.3010001@langille.org> Date: Thu, 21 Jan 2010 20:23:23 -0500 From: Dan Langille User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: FreeBSD Stable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Dan Langille Subject: device.hints isn't setting what I want X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 01:23:20 -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