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

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Sep 9 06:17:06 UTC 2013


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 268 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20130909/e414a9af/attachment.sig>


More information about the freebsd-fs mailing list