From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 20:03:18 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 127DC491 for ; Mon, 8 Dec 2014 20:03:18 +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 937D0961 for ; Mon, 8 Dec 2014 20:03:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.kulturflatrate.net (Postfix) with ESMTP id 36165F5AC0E3; Mon, 8 Dec 2014 20:55:16 +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 sC-KKBfzgmIw; Mon, 8 Dec 2014 20:55:14 +0100 (CET) Received: from len-x61s.klaas (175.210.broadband18.iol.cz [109.81.210.175]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kulturflatrate.net (Postfix) with ESMTPSA id 5E8B0F5AC0E2; Mon, 8 Dec 2014 20:55:14 +0100 (CET) Received: by len-x61s.klaas (Postfix, from userid 1000) id 7BDD6E660C; Mon, 8 Dec 2014 20:19:02 +0100 (CET) Date: Mon, 8 Dec 2014 20:19:02 +0100 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: ZFS "cannot open [...]: dataset does not exist" Message-ID: <20141208191902.GG31701@len-x61s.klaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Mon, 08 Dec 2014 20:03:18 -0000 Dear Mailinglist, 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 did some research on the net and I guess this is related to an already asked question that has never been answered [2], to a bug whose record I cannot find on the net [3] and a solution I do not completely understand [4]. 2: https://forums.freebsd.org/threads/spurious-zfs-dataset-does-not-exist-errors.19878/ 3: https://lists.freebsd.org/pipermail/freebsd-fs/2010-December/010224.html 4: https://lists.freebsd.org/pipermail/freebsd-fs/2010-December/010225.html Please have a look at [4] especially. It seems like there are certain "state files" still existing. As far as I understand it, these state files are responsible for ZFS looking for a dataset that actually does not exist. Unfortunately, I cannot find anything under `/dev/` that I might be able to delete. (There is `/dev/zfs/` which is not a directory I can `cd` into.) In case someone could hint me to these state files or any other tip is very much appreciated. $ zfs list NAME USED AVAIL REFER MOUNTPOINT tank 14.7G 1.68T 31K none tank/jails 12.8G 1.68T 32K /usr/local/jails tank/jails/ezjails 12.8G 1.68T 62K /usr/local/jails/ezjails tank/jails/ezjails/basejail 2.41G 1.68T 1.63G /usr/local/jails/ezjails/basejail tank/jails/ezjails/fulljail 31K 1.68T 31K /usr/local/jails/ezjails/fulljail tank/jails/ezjails/[** censored ** ] 577M 1.68T 469M /usr/local/jails/ezjails/[** censored ** ] tank/jails/ezjails/newjail 2.72M 1.68T 1.85M /usr/local/jails/ezjails/newjail tank/jails/ezjails/[** censored ** ] 367M 1.68T 336M /usr/local/jails/ezjails/[** censored ** ] tank/jails/ezjails/[** censored ** ] 9.51G 1.68T 7.85G /usr/local/jails/ezjails/[** censored ** ] tank/root 1.78G 1.68T 974M / tank/root/tmp 328K 1.68T 39K /tmp tank/root/var 660M 1.68T 401M /var $ uname -a FreeBSD [** censored ** ] 10.0-RELEASE-p12 FreeBSD 10.0-RELEASE-p12 #0: Tue Nov 4 05:07:17 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Thank you and best, -- Niklaas Baudet von Gersdorff niklaas@kulturflatrate.net http://www.twitter.com/NBvGersdorff http://www.kulturflatrate.net/niklaas