Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Apr 2017 20:55:42 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Some ZFS questions
Message-ID:  <ad379c8b-6a54-13b0-47b8-b9437f3da01e@holgerdanske.com>
In-Reply-To: <c81a1c46-e3c5-f7ab-deb2-fa2a45493b23@netfence.it>
References:  <c81a1c46-e3c5-f7ab-deb2-fa2a45493b23@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/17/2017 11:41 AM, Andrea Venturoli wrote:
> Hello.
>
> I'm a novice to ZFS and right now I'm conducting some experiments on
> 10.3. I've got some questions which might be obvious or FAQs, but I can
> assure I looked for an afternoon and found no answer.

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/zfs.html

https://www.freebsd.org/cgi/man.cgi?query=zpool&apropos=0&sektion=8&manpath=FreeBSD+11.0-RELEASE+and+Ports&arch=default&format=html

https://www.freebsd.org/cgi/man.cgi?query=zfs&apropos=0&sektion=8&manpath=FreeBSD+11.0-RELEASE+and+Ports&arch=default&format=html

http://open-zfs.org/wiki/System_Administration

https://www.michaelwlucas.com/os/fmzfs

https://www.michaelwlucas.com/os/fmaz


> I first installed from the USB image and choose Auto-ZFS options when
> the installer came to partitioning.
> The install was succesful and "zfs list" would show something like the
> following (please note this is not an exact copy & paste, since I
> destroyed that install in the meantime):
>
>> zroot                781M  93.2G   144K  none
>> zroot/ROOT           777M  93.2G   144K  none
>> zroot/ROOT/default   777M  93.2G   777M  /
>> zroot/tmp            176K  93.2G   176K  /tmp
>> zroot/usr            616K  93.2G   144K  /usr
>> zroot/usr/home       184K  93.2G   184K  /usr/home
>> zroot/usr/ports      144K  93.2G   144K  /usr/ports
>> zroot/usr/src        144K  93.2G   144K  /usr/src
>> zroot/var           1.20M  93.2G   608K  /var
>> zroot/var/crash      148K  93.2G   148K  /var/crash
>> zroot/var/log        178K  93.2G   178K  /var/log
>> zroot/var/mail       144K  93.2G   144K  /var/mail
>> zroot/var/tmp        152K  93.2G   152K  /var/tmp
>
> What puzzles me is "zroot/ROOT": why do we need that? Why do we mount
> "zroot/ROOT/default" as root instead of simply mounting "zroot" at /?

Many data set properties are inheritable.  So, you could set some 
properties on zroot that affect the entire pool, set some properties on 
zroot/ROOT that affect all root file systems, and set some properties on 
zroot/ROOT/default for your default root environment.


I haven't tried it, but AFAIK it is possible to have multiple root data 
sets (e.g. "file systems").  So, if/when you create another root 
environment, say zroot/ROOT/custom, it will inherit such properties from 
zroot and zroot/ROOT.


I'm still a ZFS noob, so I'll pass on your other questions.


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad379c8b-6a54-13b0-47b8-b9437f3da01e>