From owner-freebsd-questions Mon Nov 29 12:47:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from jubilee.bbn.com (JUBILEE.bbn.com [171.78.41.103]) by hub.freebsd.org (Postfix) with ESMTP id 01FC315340 for ; Mon, 29 Nov 1999 12:47:31 -0800 (PST) (envelope-from mgelinas@scuzzlebutt.bbn.com) Received: from bbn.com (IDENT:root@scuzzlebutt.bbn.com [171.78.41.121]) by jubilee.bbn.com (8.9.2/8.9.2) with ESMTP id PAA03623 for ; Mon, 29 Nov 1999 15:47:30 -0500 (EST) Received: from scuzzlebutt.bbn.com (IDENT:mgelinas@localhost [127.0.0.1]) by bbn.com (8.9.3/8.8.5) with ESMTP id QAA02231 for ; Mon, 29 Nov 1999 16:06:42 -0500 Message-Id: <199911292106.QAA02231@bbn.com> X-Mailer: exmh version 2.0.2 To: freebsd-questions@FreeBSD.ORG Subject: Re: Multiple LUN support with Adaptec-789x controller In-Reply-To: Your message of "Mon, 29 Nov 1999 15:43:10 EST." <199911292043.PAA02157@bbn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 29 Nov 1999 16:06:42 -0500 From: "J. Maynard Gelinas" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Found the answer... sorry to bother the list: 12.5.2.3.6. Multiple LUN devices In some cases you come across devices that use multiple logical units (LUNs) on a single SCSI ID. In most cases FreeBSD only probes devices for LUN 0. An example are so called bridge boards that connect 2 non-SCSI harddisks to a SCSI bus (e.g. an Emulex MD21 found in old Sun systems). This means that any devices with LUNs != 0 are not normally found during device probe on system boot. To work around this problem you must add an appropriate entry in /sys/scsi/scsiconf.c and rebuild your kernel. Look for a struct that is initialized like below: { T_DIRECT, T_FIXED, "MAXTOR", "XT-4170S", "B5A", "mx1", SC_ONE_LU } For you Mumbletech BRIDGE2000 that has more than one LUN, acts as a SCSI disk and has firmware revision 123 you would add something like: { T_DIRECT, T_FIXED, "MUMBLETECH", "BRIDGE2000", "123", "sd", SC_MORE_LUS } The kernel on boot scans the inquiry data it receives against the table and acts accordingly. See the source for more info. > > DUH -- I should have noted that it's running FreeBSD-3.3: > > ocean# dmesg | more > Copyright (c) 1992-1999 FreeBSD Inc. > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999 > jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium III (451.02-MHz 686-class CPU) > [...] > > > Hello, > > I've got a FreeBSD box with an Adaptec-789x controller, SCSI RAID array, > > and various unrelated cards attached to the system bus. > > > > ahc0: rev 0x00 int a irq 10 on pci0.18.0 > > ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs > > > > OK, so the problem I've got is that I can't seem to get the kernel to detect > > the RAID, even though the Adaptec SCSI BIOS recognizes the array during boot. > > The RAID is set to ID 1 on LUN 1, and there's a boot disk on ID 0, LUN 0. > > Here's the drive detection output: > > > > Waiting 15 seconds for SCSI devices to settle > > pass1 at ahc0 bus 0 target 5 lun 0 > > pass1: Fixed Processor SCSI-2 device > > pass1: 3.300MB/s transfers > > changing root device to da0s1a > > da0 at ahc0 bus 0 target 0 lun 0 > > da0: Fixed Direct Access SCSI-3 device > > da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing > > Enabledda0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) > > xl0: selecting MII, 100Mbps, half duplex > > xl0: selecting MII, 100Mbps, full duplex > > > > So, what I think is going on here is that the ahc driver either doesn't > > handle multiple LUN support, or it needs to be configured for such. Otherwise, > > I'm at a loss... > > > > Any suggestions? TIA! > > --Maynard > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message