zfstools zfs-auto-snapshot issue

David Christensen dpchrist at holgerdanske.com
Thu Aug 1 15:51:14 UTC 2019


On 8/1/19 3:05 AM, Nikos Vassiliadis wrote:
> I think the property's value should be true, not TRUE.

2019-08-01 08:38:04 toor at soho ~
# zfs set com.sun:auto-snapshot=true bootpool

2019-08-01 08:47:27 toor at soho ~
# zfs get all bootpool | grep snap
bootpool  snapdir                hidden                 default
bootpool  usedbysnapshots        96K                    -
bootpool  snapshot_limit         none                   default
bootpool  snapshot_count         none                   default
bootpool  com.sun:auto-snapshot  true                   local

2019-08-01 08:49:05 toor at soho ~
# /usr/local/sbin/zfs-auto-snapshot -d -v frequent 11
zfs list -H -t filesystem,volume -o 
name,type,com.sun:auto-snapshot:frequent,com.sun:auto-snapshot,mounted 
-s name
zpool get -H -p -o name,property,value feature at bookmarks 2>/dev/null
zfs snapshot -r bootpool at zfs-auto-snap_frequent-2019-08-01-08h49
zfs list -r -H -t snapshot -o name,used -S name

2019-08-01 08:49:23 toor at soho ~
# ls -l /bootpool/.zfs/snapshot/
total 1
drwxr-xr-x  3 root  wheel  3 May 23 22:21 manual-snapshot-20190731-1924
drwxr-xr-x  3 root  wheel  3 May 23 22:21 
zfs-auto-snap_frequent-2019-08-01-08h50


You are correct -- thank you.  :-)


David


More information about the freebsd-questions mailing list