Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2014 13:08:44 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        Gene <fbsd@bomgardner.net>, Freebsd Questions <FreeBSD-questions@freebsd.org>
Subject:   Re: FBSD 10, zfs, can't find mountpoint for /usr
Message-ID:  <5463A22C.7030006@sentex.net>
In-Reply-To: <20141112172332.M24598@brightstar.bomgardner.net>
References:  <20141112161610.M95499@brightstar.bomgardner.net> <54638E16.6070607@sentex.net> <20141112172332.M24598@brightstar.bomgardner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/12/2014 12:28 PM, Gene wrote:
> OK - so on the older system, if I wanted to take a snapshot of, say /usr/
> local/etc, I would have to snapshot /usr (/usr being the upstream
> mountpoint).

Yes, you would typically do a UFS snapshot like that.


> So now, if I want a similar snapshot of /usr/local/etc, any idea
> what the path would be? Can't do /usr, it's no longer a mountpoint.
> Ditto /usr/local. Snapshoting "/" maybe? Would that no longer capture the
> entire pool? Hmmmm....

Yes, it would indeed be /

ZFS snapshots are VERY efficient and fast. So dont worry about the space 
they take. If just a few MB changed, the space it takes to keep that 
snapshot wont be much bigger than the few MB. Here is one of my servers 
with a default install and daily snapshots. As you can see, / does not 
register as it doesnt get updated that often. /var does, which makes 
sense due to the logs. But even there, it seems quite efficient and 
economical.

# zfs list zroot
NAME    USED  AVAIL  REFER  MOUNTPOINT
zroot  7.24G  88.7G    96K  none
# zfs list -t snapshot
NAME                             USED  AVAIL  REFER  MOUNTPOINT
zroot@prev-1                        0      -    96K  -
zroot@5                             0      -    96K  -
zroot@6                             0      -    96K  -
zroot@0                             0      -    96K  -
zroot@1                             0      -    96K  -
zroot@2                             0      -    96K  -
zroot@3                             0      -    96K  -
zroot@4                             0      -    96K  -
zroot/ROOT@prev-1                   0      -    96K  -
zroot/ROOT@5                        0      -    96K  -
zroot/ROOT@6                        0      -    96K  -
zroot/ROOT@0                        0      -    96K  -
zroot/ROOT@1                        0      -    96K  -
zroot/ROOT@2                        0      -    96K  -
zroot/ROOT@3                        0      -    96K  -
zroot/ROOT@4                        0      -    96K  -
zroot/ROOT/default@prev-1        280K      -  4.08G  -
zroot/ROOT/default@5                0      -  4.08G  -
zroot/ROOT/default@6                0      -  4.08G  -
zroot/ROOT/default@0            10.2M      -  4.08G  -
zroot/ROOT/default@1            9.53M      -  4.08G  -
zroot/ROOT/default@2            9.96M      -  4.08G  -
zroot/ROOT/default@3            11.9M      -  4.08G  -
zroot/ROOT/default@4            1.71M      -  4.09G  -
zroot/tmp@prev-1                 324K      -  25.9M  -
zroot/tmp@5                         0      -  25.9M  -
zroot/tmp@6                         0      -  25.9M  -
zroot/tmp@0                      324K      -  25.8M  -
zroot/tmp@1                      324K      -  25.8M  -
zroot/tmp@2                      324K      -  25.8M  -
zroot/tmp@3                      636K      -  25.8M  -
zroot/tmp@4                      652K      -  25.9M  -
zroot/usr@prev-1                    0      -    96K  -
zroot/usr@5                         0      -    96K  -
zroot/usr@6                         0      -    96K  -
zroot/usr@0                         0      -    96K  -
zroot/usr@1                         0      -    96K  -
zroot/usr@2                         0      -    96K  -
zroot/usr@3                         0      -    96K  -
zroot/usr@4                         0      -    96K  -
zroot/usr/home@prev-1               0      -   213M  -
zroot/usr/home@5                    0      -   213M  -
zroot/usr/home@6                    0      -   213M  -
zroot/usr/home@0                    0      -   213M  -
zroot/usr/home@1                    0      -   213M  -
zroot/usr/home@2                    0      -   213M  -
zroot/usr/home@3                  84K      -   213M  -
zroot/usr/home@4                  96K      -   213M  -
zroot/usr/ports@prev-1              0      -  1.66G  -
zroot/usr/ports@5                   0      -  1.66G  -
zroot/usr/ports@6                   0      -  1.66G  -
zroot/usr/ports@0                   0      -  1.66G  -
zroot/usr/ports@1                   0      -  1.66G  -
zroot/usr/ports@2                   0      -  1.66G  -
zroot/usr/ports@3                   0      -  1.66G  -
zroot/usr/ports@4                224K      -  1.66G  -
zroot/usr/src@prev-1                0      -  1.02G  -
zroot/usr/src@5                     0      -  1.02G  -
zroot/usr/src@6                     0      -  1.02G  -
zroot/usr/src@0                     0      -  1.02G  -
zroot/usr/src@1                     0      -  1.02G  -
zroot/usr/src@2                     0      -  1.02G  -
zroot/usr/src@3                     0      -  1.02G  -
zroot/usr/src@4                     0      -  1.02G  -
zroot/var@prev-1                    0      -    96K  -
zroot/var@5                         0      -    96K  -
zroot/var@6                         0      -    96K  -
zroot/var@0                         0      -    96K  -
zroot/var@1                         0      -    96K  -
zroot/var@2                         0      -    96K  -
zroot/var@3                         0      -    96K  -
zroot/var@4                         0      -    96K  -
zroot/var/crash@prev-1              0      -    96K  -
zroot/var/crash@5                   0      -    96K  -
zroot/var/crash@6                   0      -    96K  -
zroot/var/crash@0                   0      -    96K  -
zroot/var/crash@1                   0      -    96K  -
zroot/var/crash@2                   0      -    96K  -
zroot/var/crash@3                   0      -    96K  -
zroot/var/crash@4                   0      -    96K  -
zroot/var/log@prev-1             304K      -  10.4M  -
zroot/var/log@5                  156K      -  10.8M  -
zroot/var/log@6                   92K      -  10.8M  -
zroot/var/log@0                 3.07M      -  12.5M  -
zroot/var/log@1                 2.11M      -  12.0M  -
zroot/var/log@2                 5.49M      -  14.0M  -
zroot/var/log@3                 5.25M      -  14.9M  -
zroot/var/log@4                 2.09M      -  15.6M  -
zroot/var/mail@prev-1               0      -   520K  -
zroot/var/mail@5                    0      -   520K  -
zroot/var/mail@6                    0      -   520K  -
zroot/var/mail@0                 116K      -   536K  -
zroot/var/mail@1                 128K      -   548K  -
zroot/var/mail@2                 108K      -   560K  -
zroot/var/mail@3                 108K      -   560K  -
zroot/var/mail@4                 116K      -   568K  -
zroot/var/tmp@prev-1              64K      -   104K  -
zroot/var/tmp@5                     0      -   104K  -
zroot/var/tmp@6                     0      -   104K  -
zroot/var/tmp@0                     0      -   104K  -
zroot/var/tmp@1                     0      -   104K  -
zroot/var/tmp@2                   64K      -   104K  -
zroot/var/tmp@3                   64K      -   104K  -
zroot/var/tmp@4                   64K      -   104K  -


	---Mike


-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



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