Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2009 06:47:24 -0700
From:      George Hartzell <hartzell@alerce.com>
To:        Ollivier Robert <roberto@keltia.freenix.fr>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Booting from ZFS raidz
Message-ID:  <18920.34924.2076.295983@already.local>
In-Reply-To: <20090417131443.GD96263@keltia.freenix.fr>
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> <20090417131443.GD96263@keltia.freenix.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Ollivier Robert writes:
 > 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.

Did you build the loader with LOADER_ZFS_SUPPORT=YES enabled?

I just threw that line in my /etc/make.conf and rebuilt everything.

g.



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