From owner-freebsd-fs@FreeBSD.ORG Fri Apr 17 13:14:46 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 ADE561065670 for ; Fri, 17 Apr 2009 13:14:46 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.freenix.fr (keltia.freenix.org [IPv6:2001:660:330f:f820:213:72ff:fe15:f44]) by mx1.freebsd.org (Postfix) with ESMTP id 5AFEE8FC25 for ; Fri, 17 Apr 2009 13:14:46 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from localhost (localhost [127.0.0.1]) by keltia.freenix.fr (Postfix/TLS) with ESMTP id 49D223BDC6; Fri, 17 Apr 2009 15:14:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at keltia.freenix.fr Received: from keltia.freenix.fr ([127.0.0.1]) by localhost (keltia.freenix.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pZc4x4V3PJ7j; Fri, 17 Apr 2009 15:14:43 +0200 (CEST) Received: by keltia.freenix.fr (Postfix/TLS, from userid 101) id C2A483BD9D; Fri, 17 Apr 2009 15:14:43 +0200 (CEST) Date: Fri, 17 Apr 2009 15:14:43 +0200 From: Ollivier Robert To: George Hartzell Message-ID: <20090417131443.GD96263@keltia.freenix.fr> References: <9461581F-F354-486D-961D-3FD5B1EF007C@rabson.org> <20090416160128.GA831@keltia.freenix.fr> <18919.25164.567669.809759@already.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18919.25164.567669.809759@already.local> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 7 / Dell D820 SMP User-Agent: Mutt/1.5.19 (2009-01-05) 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 List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2009 13:14:47 -0000 According to George Hartzell: > 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. OK, following this, I managed the boot code to find loader & loader.conf. It stops when it can't find the root I want it to boot from though. The ? prompt shows me all devices (da{0,1,2}, da{0,1,2}p{1,2} and label/swap) but trying to use zfs:whatever does not seem to work. loader.conf is very small: ----- zfs_load="YES" geom_label_load="YES" vfs.root.mountfrom="zfs:tank/ROOT/tank" ----- I did zfs set mountpoint=/tank/ROOT/tank tank/ROOT/tank (aka the real root) the other fs are in their usual place zfs set mountpoint=/usr tank/usr zfs set mountpoint=/var tank/var Any other ideas. I'll try to summarize here and on the wiki when I'm done. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr In memoriam to Ondine : http://ondine.keltia.net/