From owner-freebsd-questions@FreeBSD.ORG Tue Mar 18 23:09:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04EAD106568A for ; Tue, 18 Mar 2008 23:09:13 +0000 (UTC) (envelope-from pcloches@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id E09158FC1B for ; Tue, 18 Mar 2008 23:09:12 +0000 (UTC) (envelope-from pcloches@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so114449waf.3 for ; Tue, 18 Mar 2008 16:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LO8Wzn8gKTVgu4eVdbTNE6PbR0e5fBt9W+9CoImdlBk=; b=VRGbtMvnEHqcFW7IVZz8Uap4biZF2rXavRR9qPP+6yxD6qWeWJJZ4Yj6PL/CXBiwfUUcS8ln+a53RFWMNDgmaIPR3V+P0db6bmiC7FLgg9TgFFKHQk/dbDhPchDa1Nx996KVA1ReIF54IDGi33Kb+WewC0PImg2xia7XVEZySho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qsC2wjosp1fMhMyo+4VtAP2SEoYhB9xzmN1ebGhLpMz7Hb2ukl92WaLS2KfTvj9Vou0u7vclzRSISfkccQCQLkWHOR0yHlaRApC3iHG7V4KoUElGgBSvp2V918bIhTqVhnyF9r/cN1MhTBqPnmSU1XZF2+18ghMJkyZE6YZ6vh0= Received: by 10.114.171.1 with SMTP id t1mr142564wae.83.1205881752544; Tue, 18 Mar 2008 16:09:12 -0700 (PDT) Received: by 10.114.195.4 with HTTP; Tue, 18 Mar 2008 16:09:12 -0700 (PDT) Message-ID: <34394a3a0803181609g78284b32l3785c07557295a88@mail.gmail.com> Date: Tue, 18 Mar 2008 16:09:12 -0700 From: "Patrick C" To: "John A." In-Reply-To: <1ddef2670803181537m23fee42ar5bdd61d3c51da248@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1ddef2670803181537m23fee42ar5bdd61d3c51da248@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Problem with multiple scsi adapters and drive assignments X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 23:09:13 -0000 This is exactly what labeling your disks solves. Please see info on 'tunefs' and 'glabel' which provide labels to devices. Basically, when you insert a device not only does it get its scan-order-based /dev/___, it also gets a named entry in either /dev/ufs/ or /dev/label (tunefs/geom). You then use the label to mount the drive. -Patrick On 18/03/2008, John A. wrote: > I've searched all over (not totally exhaustive, but close) and can't find an > answer that I thought would have come up before. Basically, I need to > change the order that the kernel assigns drive names on bootup. > > It all started out with an old Intel server board with NCR/Symbios scsi > builton. I added a QLogic QLA2100 fibre controller and everything was fine > except that it was a little slow and couldn't hold enough ram. I took > another (newer) Intel server board and put it in the case. This board has > an Adaptec AIC7896 builtin. My custom kernel didn't have the aic driver so > I took the opportunity to upgrade to 7.0 and built a new kernel. Everything > was fine until I turned on the external fibre chassis and found that my da0 > became da7. The board is in a rack-mount case so I cant put the QLA into a > different slot and the bios doesn't have any way to change irq settings on > the pci slots. > > I my mind, the logical answer is to tell FBSD to scan ahc0 before isp0. > Through all my searching through docs and the mailing list archives, I can't > find any mention of how to do this. I did find one mention of turning off > the bios on the offending scsi card (it was a system with 2 Adaptecs). Been > there, tried that, didn't work. Feel free to slap my face and call me > stupid as long as you point my to the proper info if I somehow missed it. > Here are the relevant parts of dmesg if that helps (I didn't include the > drives themselves since I can't get it boot with the external chassis turned > on): > > FreeBSD 7.0-RELEASE #1: Mon Mar 17 14:43:04 EDT 2008 > john@media:/usr/obj/usr/src/sys/MYKERN > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel Pentium III (596.92-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x681 Stepping = 1 > > Features=0x383fbff > real memory = 2139029504 (2039 MB) > avail memory = 2087882752 (1991 MB) > ACPI APIC Table: > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xc08-0xc0b on acpi0 > cpu0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > agp0: on hostb0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pcib2: at device 15.0 on pci1 > pci2: on pcib2 > isp0: port 0x2000-0x20ff mem > 0xf4500000-0xf4500fff irq 19 at device 9.0 on pci0 > firmware_get: failed to load firmware image isp_2100 > isp0: [ITHREAD] > isp0: Board Type 2100, Chip Revision 0x3, resident F/W Revision 1.15.21 > pci0: at device 11.0 (no driver attached) > ahc0: port 0x2400-0x24ff mem > 0xf4501000-0xf4501fff irq 19 at device 12.0 on pci0 > ahc0: [ITHREAD] > aic7896/97: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs > ahc1: port 0x2800-0x28ff mem > 0xf4502000-0xf4502fff irq 19 at device 12.1 on pci0 > ahc1: [ITHREAD] > aic7896/97: Ultra2 Wide Channel B, SCSI Id=15, 32/253 SCBs > > > Thanks in advance for your help, the archives of this list have been very > helpful over the past 5 years. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >