From owner-freebsd-fs@FreeBSD.ORG Thu Nov 20 16:26:07 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B743106564A for ; Thu, 20 Nov 2008 16:26:07 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id DE1F98FC08 for ; Thu, 20 Nov 2008 16:26:06 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 11CAF90002; Thu, 20 Nov 2008 17:26:05 +0100 (CET) Received: from carrot.studby.ntnu.no (unknown [IPv6:2001:700:300:3::184]) by bene2.itea.ntnu.no (Postfix) with ESMTP id B95F090001; Thu, 20 Nov 2008 17:26:04 +0100 (CET) Date: Thu, 20 Nov 2008 18:26:34 +0100 From: Ulf Lilleengen To: Doug Rabson Message-ID: <20081120172634.GA1438@carrot.studby.ntnu.no> References: <367b2c980811191412h5e0af470k165b37edc2fc5853@mail.gmail.com> <16C31872-6A83-4FAB-AC85-213D604CDDE4@rabson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16C31872-6A83-4FAB-AC85-213D604CDDE4@rabson.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: freebsd-fs@freebsd.org Subject: Re: ZFSBoot try and bsdlabel bootstrap code X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2008 16:26:07 -0000 On Thu, Nov 20, 2008 at 04:07:50PM +0000, Doug Rabson wrote: > > On 19 Nov 2008, at 22:12, Olivier SMEDTS wrote: > > > Hello, > > > > I want to boot off a ZFS pool (version 13) on an USB stick for testing > > purposes. But I'm stuck with the bsdlabel bootstrap code size... > > I'm using a 2 hours old CURRENT. > > > > # kldload usb2_storage_mass > > # kldload zfs > > # dd if=/dev/zero of=/dev/da0 bs=512 count=32 > > # fdisk -BI da0 > > # dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 > > # bsdlabel -wB -b /boot/zfsboot da0s1 > > bsdlabel: boot code /boot/zfsboot is wrong size > > > > Is what I'm trying to do with bsdlabel wrong ? > > I previously tried with the default bootstrap code but I had an > > (expected) "boot: Not ufs" error at boot. > > > > PS : I'm not subscribed to this list. > > The process for install zfsboot is a bit manual (and undocumented). I see bsdlabel is restricted by BBSIZE. Could we perhaps increase it? or is this something that will break everything? I suspect it might be hard to maintain bsdlabel backwards compability with such a change. As an alternative, adding a flag for extended block size might be an option. -- Ulf Lilleengen