Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2009 15:14:43 +0200
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        George Hartzell <hartzell@alerce.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Booting from ZFS raidz
Message-ID:  <20090417131443.GD96263@keltia.freenix.fr>
In-Reply-To: <18919.25164.567669.809759@already.local>
References:  <9461581F-F354-486D-961D-3FD5B1EF007C@rabson.org> <C3970DC5-43A8-4F04-AC55-292F27A30275@lassitu.de> <20090416160128.GA831@keltia.freenix.fr> <18919.25164.567669.809759@already.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090417131443.GD96263>