zfstools zfs-auto-snapshot issue
Nikos Vassiliadis
nvass at gmx.com
Thu Aug 1 10:05:53 UTC 2019
Hi David,
On 01.08.19 06:18, David Christensen wrote:
> freebsd-questions:
>
> I have a FreeBSD SOHO server:
>
> 2019-07-31 19:09:20 toor at soho ~
> # freebsd-version ; uname -a
> 11.2-RELEASE-p11
> FreeBSD soho.tracy.holgerdanske.com 11.2-RELEASE-p11 FreeBSD
> 11.2-RELEASE-p11 #0: Tue Jul 2 21:24:25 UTC 2019
> root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>
>
> It has ZFS pools and filesystems:
>
> 2019-07-31 20:14:56 toor at soho /var/log
> # zfs list | head
> NAME USED AVAIL REFER
> MOUNTPOINT
> bootpool 333M 499M 333M
> /bootpool
> soho_zroot 2.71G 8.43G 88K
> /soho_zroot
> soho_zroot/ROOT 1.47G 8.43G 132K none
> soho_zroot/ROOT/default 1.47G 8.43G 1.47G /
> soho_zroot/tmp 156K 8.43G 156K /tmp
> soho_zroot/usr 1.23G 8.43G 132K /usr
> soho_zroot/usr/home 464K 8.43G 464K
> /usr/home
> soho_zroot/usr/ports 1.23G 8.43G 1.23G
> /usr/ports
> soho_zroot/usr/src 132K 8.43G 132K
> /usr/src
>
>
> I have installed:
>
> 2019-07-31 19:17:21 toor at soho ~
> # pkg query -x '%n %v' zfs
> zfstools 0.3.6_1
>
>
> I have set the com.sun:auto-snapshot property on all pools and filesystems:
>
> 2019-07-31 20:14:59 toor at soho /var/log
> # zfs get -t filesystem com.sun:auto-snapshot | head
> NAME PROPERTY
> VALUE SOURCE
> bootpool com.sun:auto-snapshot
> TRUE local
> soho_zroot com.sun:auto-snapshot
> TRUE local
> soho_zroot/ROOT com.sun:auto-snapshot
> TRUE inherited from soho_zroot
> soho_zroot/ROOT/default com.sun:auto-snapshot
> TRUE inherited from soho_zroot
> soho_zroot/tmp com.sun:auto-snapshot
> TRUE inherited from soho_zroot
> soho_zroot/usr com.sun:auto-snapshot
> TRUE inherited from soho_zroot
> soho_zroot/usr/home com.sun:auto-snapshot
> TRUE inherited from soho_zroot
> soho_zroot/usr/ports com.sun:auto-snapshot
> TRUE inherited from soho_zroot
> soho_zroot/usr/src com.sun:auto-snapshot
> TRUE inherited from soho_zroot
>
>
> If I run zfs-auto-snapshot manually:
>
> 2019-07-31 19:22:09 toor at soho ~
> # zfs-auto-snapshot -d -v frequent 20
> zfs list -H -t filesystem,volume -o
> name,type,com.sun:auto-snapshot:frequent,com.sun:auto-snapshot,mounted
> -s name
> zfs list -r -H -t snapshot -o name,used -S name
>
>
> I do not see any snapshots:
>
> 2019-07-31 19:23:06 toor at soho ~
> # ls -a /bootpool/.zfs/snapshot/
> . ..
>
> 2019-07-31 19:23:35 toor at soho ~
> # ls -a /soho_zroot/.zfs/snapshot/
> . ..
>
>
> If I create a snapshot manually:
>
> 2019-07-31 19:23:40 toor at soho ~
> # zfs snapshot -r bootpool at manual-snapshot-20190731-1924
>
>
> It works:
>
> 2019-07-31 19:28:08 toor at soho ~
> # ls -la /bootpool/.zfs/snapshot/
> total 1
> dr-xr-xr-x+ 3 root wheel 3 Jul 31 19:27 .
> dr-xr-xr-x+ 3 root wheel 3 May 23 22:21 ..
> drwxr-xr-x 3 root wheel 3 May 23 22:21 manual-snapshot-20190731-1924
>
>
> I do not see any relevant messages under /var/log.
>
>
> I am unable to find any recent bug reports for zfstools:
>
> https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=zfstools
>
> Zero bugs found.
>
>
> Any ideas?
I think the property's value should be true, not TRUE.
OT:
Cool tool. I use zfsnap2 extensively but good to know about zfstools!
Nikos
More information about the freebsd-questions
mailing list