From owner-freebsd-stable@FreeBSD.ORG Sun Aug 1 14:42:42 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 402F816A4CE for ; Sun, 1 Aug 2004 14:42:42 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEEDB43D45 for ; Sun, 1 Aug 2004 14:42:41 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from pooker.samsco.org (scottl@localhost [127.0.0.1]) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i71EnxAo030647; Sun, 1 Aug 2004 08:49:59 -0600 (MDT) (envelope-from scottl@freebsd.org) Received: from localhost (scottl@localhost)i71EnxjK030644; Sun, 1 Aug 2004 08:49:59 -0600 (MDT) (envelope-from scottl@freebsd.org) X-Authentication-Warning: pooker.samsco.org: scottl owned process doing -bs Date: Sun, 1 Aug 2004 08:49:58 -0600 (MDT) From: Scott Long Sender: scottl@pooker.samsco.org To: Pete French In-Reply-To: Message-ID: <20040801084545.T32601@pooker.samsco.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-stable@freebsd.org Subject: Re: How does CAM determine the order to number drives ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 14:42:42 -0000 On Sun, 1 Aug 2004, Pete French wrote: > > You can wire down particular devices to a given SCSI bus, target and > > LUN. Thus in your (4.x) kernel config you can say: > > > > device scbus0 at ahc0 > > device da0 at scbus0 target 0 unit 0 > > Thanks for this - it looked as though it was just what I needed. I built > a kernel with scbus0 placed at ahc? (ahc0 would not compile - but I only > have one Adaptec controller in the machine). I would have thought this > was sufficient as it would then scan scbus0 first and thus find the > Addapted conntected drive first. But it did not appear to do this - I > still had the ciss drives appearing first. You need to explicitely define 'ahc0' as so: device ahc device ahc0 /* declared for wiring */ device scbus device scbus0 at ahc0 Wiring down the controller number doesn't usually affect drive ordering. All drives on all controllers are scanned at once in parallel, and the first to respond on any controller, regardless of the controller number, get to be da0. Scott