Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 11:21:19 +0200
From:      Frederic Chardon <chardon.frederic@gmail.com>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Some ZFS questions
Message-ID:  <CAMODbkncavbdNAK58YpzOKdt95GTRB2YmzXirrguk0dQ83cXdQ@mail.gmail.com>
In-Reply-To: <CAMODbkk7=53=4Uji0o7G_M_MnQojpqiBRHQObhPq5g3jHKfyfw@mail.gmail.com>
References:  <c81a1c46-e3c5-f7ab-deb2-fa2a45493b23@netfence.it> <CAMODbknNZBiVdxDbVMxdFfcRd1wW0BXHbqGkiARKo%2BD=F6XfvQ@mail.gmail.com> <CAMODbkk7=53=4Uji0o7G_M_MnQojpqiBRHQObhPq5g3jHKfyfw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

Le 17 avr. 2017 20:42, "Andrea Venturoli" <ml@netfence.it> a =C3=A9crit :



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 /?


It's a setup for Boot Environment (just google that ;)). If you install
sysutils/beadm you can then have in parallel several root fs. It's not
mandatory but so useful that's is enabled by default. The boot menu allow
you to choose from which root you want to boot. Personnaly I make a new BE
after each installworld and/or big port update (I put /usr/local and some
of /var inside the BE as well). If something break I have always a working
system.
But it's really up to you.



>
This times I manually created the following structure:

> #zfs list
> NAME            ...     MOUNTPOINT
> zroot           ...     /
> zroot/usr       ...     /usr
> zroot/var       ...     /var
>

In fact, from a Live USB key, I can now simply issue "zpool import -R /mnt/
-f zroot" and I'll see all of my filesystems on /mnt.

Anything wrong with this setup?

Nothing wrong.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMODbkncavbdNAK58YpzOKdt95GTRB2YmzXirrguk0dQ83cXdQ>