Why do we need vfs.root.mountfrom for zfs

Andriy Gapon avg at FreeBSD.org
Sun Nov 18 19:43:46 UTC 2012


on 18/11/2012 21:38 Aldis Berjoza said the following:
> 
> 18.11.2012, 21:19, "Andriy Gapon" <avg at FreeBSD.org>:
>> on 18/11/2012 16:03 Aldis Berjoza said the following:
>>
>>>  I was wondering why oh, why do we need to set
>>>  vfs.root.mountfrom in /boot/loader.conf in order to boot from zfs.
>>
>> Who is 'we'?  And why do you think 'we' have to do that? :-)
>>
>>>  zpools have bootfs option.
>>>
>>>  This info is redundant.
>>>  I think one of two could be totally avoided at least in case when we boot form gptzfsboot.
>>>
>>>  What I'm missing?
>>
>> You don't miss anything.  The defaults work fine.  You don't have to set
>> vfs.root.mountfrom unless you want it to point to some non-default fs.
>>
>> More details:
>> http://ru.kyivbsd.org.ua/arhiv/2012/kyivbsd12-gapon-zfs.pdf?attredirects=0&d=1
>> Page 17 and one.

the above should have been "and on".

> 
> Thank you, thank you so very much.
> I never knew vfs.root.mountfrom was optional. All the turorials I've been reading said to set it.


Well, it used to be true that either an fstab "/" entry or vfs.root.mountfrom
had to be configured.  But now that's optional.

-- 
Andriy Gapon


More information about the freebsd-fs mailing list