From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 22 19:18:35 2005 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3615B16A4CE for ; Fri, 22 Apr 2005 19:18:35 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84D3B43D41 for ; Fri, 22 Apr 2005 19:18:25 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j3MJJt5b002551; Fri, 22 Apr 2005 13:19:55 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <42694D33.2090207@samsco.org> Date: Fri, 22 Apr 2005 13:14:59 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tuc at Beach House References: <200504221855.j3MItHbB037577@himinbjorg.tucs-beachin-obx-house.com> In-Reply-To: <200504221855.j3MItHbB037577@himinbjorg.tucs-beachin-obx-house.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-scsi@freebsd.org Subject: Re: da0 became da1 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 19:18:35 -0000 Tuc at Beach House wrote: > Hi, > > I currently have a server with an ADAPTEC SCSI controller, and > an LSI Symbios one. Previously when I set the machine up, da0 was the > Adaptec and all was good. Now that I plugged in something to the LSI > controller, that now has become da0 and my boot disk is now da1. > > How would I tell the system to always make ADAPTEC the da0? > > Thanks, Tuc You need to use the FreeBSD kernel feature called 'scsi device wiring'. It's described in /sys/conf/NOTES. As an example (assuming you're talking about FreeBSD 5.x/6.0 here): device ahc device sym hint.scbus.0.at="ahc0" hint.da.0.at="scbus0" hint.da.0.target="0" hint.da.0.unit="0" This ensures that the logical bus 'scbus0' is associated with the first ahc controller found, and that da0 is associated with target,lun 0,0 on scbus0. The wiring syntax works both compiled into the kernel via the normal kernel config file, or by inserting it into /boot/device.hints. Scott