Solved default layout, /usr not mounted.

rigoletto@

Developer
Hi!

I have just installed the system and while looking and customizing the ZFS datasets I noticed
zroot/usr is not mounted, and so /usr/* are actually in zroot/ROOT/default.

Why? I mean, why the installer create that dataset by default but does not install the data in there?

Is /usr restricted to be used in a separated datase like /etc? I want to fix that in here. ;)

This is the complete layout:
Code:
NAME                            USED  AVAIL  REFER  MOUNTPOINT
zdata                           223G   227G   496K  none
zdata/home                      222G   227G    96K  /home
zdata/home/alex                 222G   227G   188G  /home/alex
zroot                          19.7G   254G    88K  /zroot
zroot/ROOT                     1.98G   254G    88K  none
zroot/ROOT/default             1.98G   254G  1.98G  /
zroot/poudriere                5.33G   254G    88K  /poudriere
zroot/poudriere/data           3.55G   254G    96K  /usr/local/poudriere/data
zroot/poudriere/data/.m          88K   254G    88K  /usr/local/poudriere/data/.m
zroot/poudriere/data/cache     32.7M   254G  32.7M  /usr/local/poudriere/data/cache
zroot/poudriere/data/logs      33.3M   254G  33.3M  /usr/local/poudriere/data/logs
zroot/poudriere/data/packages  3.48G   254G  3.48G  /usr/local/poudriere/data/packages
zroot/poudriere/data/wrkdirs     88K   254G    88K  /usr/local/poudriere/data/wrkdirs
zroot/poudriere/jails          1.78G   254G    88K  /poudriere/jails
zroot/poudriere/jails/dev103    862M   254G   862M  /usr/local/poudriere/jails/dev103
zroot/poudriere/jails/host      961M   254G   961M  /usr/local/poudriere/jails/host
zroot/tmp                       128K   254G   128K  /tmp
zroot/usr                      12.3G   254G    88K  /usr
zroot/usr/home                   88K   254G    88K  /usr/home
zroot/usr/local                6.13G   254G  6.12G  /usr/local
zroot/usr/local/etc            4.20M   254G  4.20M  /usr/local/etc
zroot/usr/obj                    88K   254G    88K  /usr/obj
zroot/usr/ports                6.17G   254G  6.17G  /usr/ports
zroot/usr/src                    88K   254G    88K  /usr/src
zroot/var                      62.1M   254G    88K  /var
zroot/var/db                   61.8M   254G  61.5M  /var/db
zroot/var/db/ports              292K   254G   292K  /var/db/ports
zroot/var/log                   232K   254G   232K  /var/log

Is there a way to create a single snapshot including all datasets at once?

Many thanks! :)
LBdM.
 
Is there a way to create a single snapshot including all datasets at once?
The -r flag recurses but the snapshots will be individual for each recursed filesystem. You won't get a single snapshot with all the datasets included.

So a zfs snapshot -r zdata@mytest for example, will create the snapshots zdata@mytest, zdata/home@mytest and zdata/home/alex@mytest.
 
I was aware of the recursive but I would like to take a monthly single entire one. But, if not possible, ok. :rolleyes:

Thanks!
 
Why? I mean, why the installer create that dataset by default but does not install the data in there?
It's for boot environments. Short intro here that should answer your questions: https://blather.michaelwlucas.com/archives/2363

Note that you already crippled boot environments by creating zroot/usr/local yourself. The data in /usr/local should be part of zroot/ROOT/default as well to make effective use of them. Right now if you update packages and something breaks in /usr/local you cannot simply "go back" by booting into another boot environment.
 
Back
Top