From owner-freebsd-current@FreeBSD.ORG Tue Jun 2 08:24:24 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BACC31065677; Tue, 2 Jun 2009 08:24:24 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (router.rabson.org [80.177.232.241]) by mx1.freebsd.org (Postfix) with ESMTP id 7824A8FC13; Tue, 2 Jun 2009 08:24:23 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from [IPv6:2001:470:909f:1:225:ff:feed:9426] (unknown [IPv6:2001:470:909f:1:225:ff:feed:9426]) by itchy.rabson.org (Postfix) with ESMTP id 032FE5CD3; Tue, 2 Jun 2009 09:23:54 +0100 (BST) Message-Id: From: Doug Rabson To: Henri Hennebert In-Reply-To: <4A23ABF2.3070601@restart.be> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 2 Jun 2009 09:23:52 +0100 References: <4A23ABF2.3070601@restart.be> X-Mailer: Apple Mail (2.935.3) Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: /boot/loader can't load kernel if too many pool/devices X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 08:24:25 -0000 On 1 Jun 2009, at 11:22, Henri Hennebert wrote: > Hello, > > During my tests (succesful) to directly boot from ZFS (with zfsboot > and gptzfsboot) I encounter the error "can't boot 'kernel'" if too > many devices/pools are connected to the machine. In my case: > > 2 SAS disks with 2 pools > 2 SATA disks with 2 pools > 1 USB key with one pool > > `heap` command: > > Active Allocations: 171/173 > 536576 bytes reserved 527800 bytes allocated > > `ls` command: > > open '/' failed: too many open files > > If I reboot without the USB key all is OK. > > If I reboot from the USB key after disconnecting 2 disks all is OK. > > By the way, the /boot/loader in 7.2-STABLE don't work, complains > about forth not found. > > The previous tests were made with 7.2-STABLE (May 31) with /boot/ > loader from 8.0-CURRENT. I recently increased the number of file descriptors available for / boot/loader. Could you rebuild and try again please. Make sure you rebuild libstand.a as well as /boot/loader.