snapshots contain no data.

Mike Clarke jmc-freebsd2 at milibyte.co.uk
Mon Oct 23 21:22:40 UTC 2017


On Mon, 23 Oct 2017 14:54:12 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions at freebsd.org>
wrote:

> I implemented snapshots on my desktop unit.  the zfs pool looks like
> this:
> 
> zfs list
> NAME                 USED  AVAIL  REFER  MOUNTPOINT
> zroot               40.4G   851G    96K  /zroot
> zroot/ROOT          13.1G   851G    96K  none
> zroot/ROOT/default  13.1G   851G  9.14G  /
> zroot/tmp           76.4M   851G  2.56M  /tmp
> zroot/usr           26.9G   851G    96K  /usr
> zroot/usr/home      26.3G   851G  22.4G  /usr/home
> zroot/usr/ports      638M   851G   638M  /usr/ports
> zroot/usr/src         96K   851G    96K  /usr/src
> zroot/var            131M   851G    96K  /var
> zroot/var/audit       96K   851G    96K  /var/audit
> zroot/var/crash       96K   851G    96K  /var/crash
> zroot/var/log        118M   851G  2.60M  /var/log
> zroot/var/mail      1.29M   851G   120K  /var/mail
> zroot/var/tmp       11.3M   851G  5.45M  /var/tmp
> 
> This is one of the snapshot commands I am issuing from cron:
> 
> /usr/local/sbin/zfsnap snapshot -a 14d -s -S -r zroot
> 
> 
> 
> But when I look in the snapshot directories I see no data.
> 
> This is the result:
> 
> ls -a /zroot/.zfs/snapshot/*14d
> /zroot/.zfs/snapshot/2017-10-10_11.10.00--14d:
> .       ..
>

You need to refer to the mountpoint of each individual filesystem, try:

 ls /.zfs/snapshot/*14d

 ls /usr/.zfs/snapshot/*14d

 ls /usr/home/.zfs/snapshot/*14d

-- 
Mike Clarke


More information about the freebsd-questions mailing list