ZFS Default ZFS setup and snapshots

longimanus

New Member

Reaction score: 1
Messages: 12

Can someone give me a sanity check here please. Running 12.0-RELEASE-p7 on a T480 laptop. It's my first experience with FreeBSD and, despite a few hurdles, has proved to be a pretty much painless process. I chose ZFS over UFS and am now trying to get to grips with the idea of snapshots.

I have looked at zfs list and see:
Code:
onemaisu% zfs list
NAME                 USED  AVAIL  REFER  MOUNTPOINT
zroot               23.8G   891G    88K  /zroot
zroot/ROOT          15.1G   891G    88K  none
zroot/ROOT/default  15.1G   891G  11.6G  /
zroot/tmp           1.70M   891G  1.70M  /tmp
zroot/usr           8.71G   891G    88K  /usr
zroot/usr/home      8.71G   891G  8.71G  /usr/home
zroot/usr/ports       88K   891G    88K  /usr/ports
zroot/usr/src         88K   891G    88K  /usr/src
zroot/var            936K   891G    88K  /var
zroot/var/audit       88K   891G    88K  /var/audit
zroot/var/crash       88K   891G    88K  /var/crash
zroot/var/log        456K   891G   456K  /var/log
zroot/var/mail       128K   891G   128K  /var/mail
zroot/var/tmp         88K   891G    88K  /var/tmp
Now both the handbook and Michael Lucas' book show the zroot should not be mounted? Is this something I need to rectify?

I then want to create a snapshot of the system that I can rollback to. Am I correct in assuming that I am going to sanpshot zroot/ROOT/default if I want the entire system? Is this best practice?

TIA
 
OP
OP
L

longimanus

New Member

Reaction score: 1
Messages: 12

Thanks. That looks like the job. Any idea why zroot is shown as mounted rather than none? Should I fix that?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,672
Messages: 30,574

If I recall correctly it's not actually mounted, it just has a mountpoint set.
 
Top