From owner-freebsd-fs@FreeBSD.ORG Thu Apr 16 17:09:44 2009 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 60C2F106566C for ; Thu, 16 Apr 2009 17:09:44 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (merlin.alerce.com [64.62.142.94]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC2E8FC08 for ; Thu, 16 Apr 2009 17:09:44 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id B189033C62; Thu, 16 Apr 2009 09:52:16 -0700 (PDT) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id 675C233C5B; Thu, 16 Apr 2009 09:52:16 -0700 (PDT) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18919.25164.567669.809759@already.local> Date: Thu, 16 Apr 2009 09:52:28 -0700 To: Ollivier Robert In-Reply-To: <20090416160128.GA831@keltia.freenix.fr> References: <9461581F-F354-486D-961D-3FD5B1EF007C@rabson.org> <20090416160128.GA831@keltia.freenix.fr> X-Mailer: VM 8.0.12 under 22.3.1 (i386-apple-darwin9.6.0) X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-fs@freebsd.org Subject: Re: Booting from ZFS raidz X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hartzell@alerce.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 17:09:44 -0000 Ollivier Robert writes: > According to Stefan Bethke: > > Created a GPT label and one partition on each of the three drives: > > > > gpart create -s gpt $1 > > gpart add -b 34 -s 128 -t freebsd-boot $1 > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $1 > > gpart add -b 512 -s 41900000 -t freebsd-zfs $1 > > gpart list $1 > > Coming back to this thread, I'm playing with this setup (and the script > mentioned in another thread). When I try to > > zpool set bootfs=tank > > with tank containing a raidz array, zpool refuses to set the property, > saying it is not available. Using the same commandline on a mirror works. In Doug's original email announcing raidz boot support, http://kerneltrap.org/mailarchive/freebsd-fs/2008/12/17/4441084 he says: Currently the ZFS kernel code refuses to allow you to set the bootfs pool property on raidz pools (because Solaris can't boot from them). This means that you are limited to booting from the root filesystem of the pool for now (it shouldn't be hard to relax this restriction). The root filesystem of the pool should contain a directory /boot with the usual contents which must include a /boot/loader which was built with the 'LOADER_ZFS_SUPPORT' make option. Which jsut means that you need a populated boot directory at the top of the tank (e.g. /data/boot). If you're using the create-zfsboot-gpt.sh file that was posted here recently, you'll need to rework it a bit, since it puts the root dir at /data/ROOT/data. g.