From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 08:04:47 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5A9A2159 for ; Wed, 10 Dec 2014 08:04:47 +0000 (UTC) Received: from mail.kulturflatrate.net (mail.kulturflatrate.net [46.163.119.221]) (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 DBAA73CA for ; Wed, 10 Dec 2014 08:04:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.kulturflatrate.net (Postfix) with ESMTP id 9EC99F5AC0DA for ; Wed, 10 Dec 2014 09:04:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at kulturflatrate.net X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham Received: from mail.kulturflatrate.net ([127.0.0.1]) by localhost (mail.kulturflatrate.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qxp_i4wRZR1Z for ; Wed, 10 Dec 2014 09:04:37 +0100 (CET) Received: from len-x61s.klaas (c2.eduroam.cuni.cz [195.113.15.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kulturflatrate.net (Postfix) with ESMTPSA id EC9A3F5AC0C6 for ; Wed, 10 Dec 2014 09:04:36 +0100 (CET) Received: by len-x61s.klaas (Postfix, from userid 1000) id A6832E057C; Wed, 10 Dec 2014 09:05:55 +0100 (CET) Date: Wed, 10 Dec 2014 09:05:55 +0100 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: Re: ZFS "cannot open [...]: dataset does not exist" Message-ID: <20141210080555.GG16346@len-x61s.klaas> References: <20141208191902.GG31701@len-x61s.klaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141208191902.GG31701@len-x61s.klaas> X-PGP-Key: http://www.kulturflatrate.net/niklaas/niklaas-baudet-von-gersdorff.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 08:04:47 -0000 Dear Mailinglist, Niklaas Baudet von Gersdorff [2014-12-08 20:19 +0100] : > I am currently using zfssnap.sh [1] to make a regular backup of > the entire ZFS pool on our server. In principal, this works great, > nevertheless, every time I am running the script I get the following > error: > > cannot open 'tank/usr/ports': dataset does not exist > cannot open 'tank/usr/src': dataset does not exist > > 1: https://bitbucket.org/mmichele/zfssnap > I figured out that the problem is not ZFS itself but `zfssnap.sh`. Please refer to my explanation at https://bitbucket.org/mmichele/zfssnap/issue/2/excludes-not-working In short, the default behaviour for `zfssnap.sh` is to exclude the datasets mentioned above. Though, these datasets do not exist on the server I am administrating. I was aware of that and tried to hand over an empty `EXCLUDES` variable as it is explained in the programs documentation. If you do not want these excluded, pass an empty EXCLUDES envvar. https://bitbucket.org/mmichele/zfssnap/overview Unfortunately, handing over an empty environment variable does not work. The solution is to use the following code EXCLUDES=" " Be aware of the white space! Best, -- Niklaas Baudet von Gersdorff niklaas@kulturflatrate.net http://www.twitter.com/NBvGersdorff http://www.kulturflatrate.net/niklaas