zfs_enable vs zfs_load in loader.conf (but neither works)

krad kraduk at gmail.com
Mon Sep 9 12:55:24 UTC 2013


you will find without 'zfs_enable="YES" ' set a lot of the zfs datasets
might not get mounted


On 9 September 2013 07:16, Matthew Seaman
<m.seaman at infracaninophile.co.uk>wrote:

> On 09/09/2013 02:02, J David wrote:
> > Under 9.1 it had in loader.conf:
> >
> > zfs_load="YES"
> > vfs.root.mountfrom="zfs:data/root"
> >
> > Under 9.2-RC3, the same config results in a panic:
> >
> > Trying to mount root from zfs:data/root []…
> > init: not found in path
> > /sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall
> > panic: no init
> >
> > If this is changed (as many Google hits recommend) to:
> >
> > zfs_enable="YES"
> > vfs.root.mountfrom="zfs:data/root"
> >
> > It seems like ZFS doesn't get loaded, so it fails instead with:
> >
>
> zfs_load="YES" is correct in /boot/loader.conf -- it causes the zfs
> modules to be loaded into the kernel early in the boot process.
>
> zfs_enable="YES" is correct in /etc/rc.conf -- it enables various ZFS
> related stuff run by the rc scripts.
>
> You want both.
>
>         Cheers,
>
>         Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.
>
> PGP: http://www.infracaninophile.co.uk/pgpkey
> JID: matthew at infracaninophile.co.uk
>
>


More information about the freebsd-fs mailing list