From owner-freebsd-questions@freebsd.org Thu Aug 1 03:22:14 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8DDE9AF5E4 for ; Thu, 1 Aug 2019 03:22:14 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "xray.he.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45zbFK6ygRz4fY2 for ; Thu, 1 Aug 2019 03:22:13 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Wed, 31 Jul 2019 20:18:49 -0700 To: freebsd-questions@freebsd.org From: David Christensen Subject: zfstools zfs-auto-snapshot issue Message-ID: Date: Wed, 31 Jul 2019 20:18:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2019 03:22:14 -0000 freebsd-questions: I have a FreeBSD SOHO server: 2019-07-31 19:09:20 toor@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@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 It has ZFS pools and filesystems: 2019-07-31 20:14:56 toor@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@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@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@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@soho ~ # ls -a /bootpool/.zfs/snapshot/ . .. 2019-07-31 19:23:35 toor@soho ~ # ls -a /soho_zroot/.zfs/snapshot/ . .. If I create a snapshot manually: 2019-07-31 19:23:40 toor@soho ~ # zfs snapshot -r bootpool@manual-snapshot-20190731-1924 It works: 2019-07-31 19:28:08 toor@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? David