From owner-freebsd-stable@FreeBSD.ORG Tue Dec 18 16:26:32 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C293553 for ; Tue, 18 Dec 2012 16:26:32 +0000 (UTC) (envelope-from xenophon+freebsd@irtnog.org) Received: from mx1.irtnog.org (irtnog-1-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:cfb::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4CAD78FC12 for ; Tue, 18 Dec 2012 16:26:32 +0000 (UTC) Received: from cinep001bsdgw.irtnog.net (localhost [127.0.0.1]) by mx1.irtnog.org (Postfix) with ESMTP id 81A5B14E1A for ; Tue, 18 Dec 2012 11:26:31 -0500 (EST) X-Virus-Scanned: amavisd-new at irtnog.org Received: from mx1.irtnog.org ([127.0.0.1]) by cinep001bsdgw.irtnog.net (mx1.irtnog.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dFq8oOFWd2It for ; Tue, 18 Dec 2012 11:26:25 -0500 (EST) Received: from cinip100ntsbs.irtnog.net (irtnog.net [10.63.1.100]) by mx1.irtnog.org (Postfix) with ESMTP for ; Tue, 18 Dec 2012 11:26:25 -0500 (EST) Subject: RE: Custom Kernel for FreeBSD Installation Date: Tue, 18 Dec 2012 11:26:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-ID: Content-class: urn:content-classes:message In-Reply-To: <20121211220138.1f4bea85e278eca54b074daf@getmail.no> X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-TNEF-Correlator: Thread-Topic: Custom Kernel for FreeBSD Installation thread-index: Ac3X4tmlQ7kBPLabS8WcZygR/YNl1wFVahsQ References: <20121211220138.1f4bea85e278eca54b074daf@getmail.no> From: "xenophon\\+freebsd" To: X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2012 16:26:32 -0000 > From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd- > stable@freebsd.org] On Behalf Of Torfinn Ingolfsen > Sent: Tuesday, December 11, 2012 4:02 PM > > Not an answer to your question, but do you need to? > Can't the DL380 G3 boot from something else, like a usb image? The issue is with the ciss(4) driver restricting the maximum number of logical drives to 15 in order to limit the driver's memory requirements. If I understand it correctly, the driver allocates a certain amount of memory (under 4 GiB) for each logical drive for DMA. If an adapter exports more than 15 logical drives, the driver refuses to attach any of them and logs an error message like "adapter claims to report absurd number of logical drives (20 > 15)". On my server, I have 20 logical drives (20 single-disk RAID-0 arrays), so the driver won't work without modification. So, to close the loop on this, I modified the value of CISS_MAX_LOGICAL in src/sys/dev/ciss/cissvar.h and ran "make buildworld buildkernel". I think I had to install sysutils/cdrecord as well. Then, to create an installation CD from the newly built world, I ran "cd release; make cdrom -D NOPORTS -D NOSRC -D NODOC". This last step resulted in a file named "release.iso" in the "release" directory. I successfully booted the FreeBSD installer using the new image, and FreeBSD was able to detect and attach all 20 logical drives. Leon Kos suggested increasing the value of the CISS_MAX_LOGICAL constant (see http://www.freebsd.org/cgi/query-pr.cgi?pr=3D151564&cat=3Dkern), = but I think a boot-time tunable is a better approach. I'm currently testing this out and will submit patches if successful. Best wishes, Matthew --=20 I FIGHT FOR THE USERS