[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Booting from ZFS raidz
- To: Ollivier Robert <roberto_(_at_)_keltia_(_dot_)_freenix_(_dot_)_fr>
- Subject: Re: Booting from ZFS raidz
- From: George Hartzell <hartzell_(_at_)_alerce_(_dot_)_com>
- Date: Fri, 17 Apr 2009 06:47:24 -0700
- Cc: freebsd-fs_(_at_)_freebsd_(_dot_)_org
- Reply-to: hartzell_(_at_)_alerce_(_dot_)_com
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.
_______________________________________________
freebsd-fs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org