From owner-freebsd-questions@freebsd.org Mon Oct 23 21:22:40 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F3D2E55715 for ; Mon, 23 Oct 2017 21:22:40 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from outmx-028.london.gridhost.co.uk (outmx-028.london.gridhost.co.uk [95.142.156.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03E257FB for ; Mon, 23 Oct 2017 21:22:39 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from curlew.milibyte.co.uk (unknown [82.71.56.121]) (Authenticated sender: mailpool@milibyte.co.uk) by outmx-028.london.gridhost.co.uk (Postfix) with ESMTPA id 85C93265D3D62; Mon, 23 Oct 2017 22:05:49 +0100 (BST) Received: from [192.168.1.13] (helo=curlew) by curlew.milibyte.co.uk with esmtp (Exim 4.89) (envelope-from ) id 1e6k1j-0002N8-1Z; Mon, 23 Oct 2017 22:12:51 +0100 Date: Mon, 23 Oct 2017 22:12:50 +0100 From: Mike Clarke To: "James B. Byrne via freebsd-questions" Cc: byrnejb@harte-lyne.ca Message-ID: <20171023221250.3cc8dbcb@curlew> In-Reply-To: <809ce5c30945a6659ef1ab5ea592fb80.squirrel@webmail.harte-lyne.ca> References: <809ce5c30945a6659ef1ab5ea592fb80.squirrel@webmail.harte-lyne.ca> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: snapshots contain no data. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2017 21:22:40 -0000 On Mon, 23 Oct 2017 14:54:12 -0400 "James B. Byrne via freebsd-questions" 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