From owner-freebsd-fs@FreeBSD.ORG Mon Aug 27 21:54:16 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC48E106564A for ; Mon, 27 Aug 2012 21:54:16 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7E0A18FC15 for ; Mon, 27 Aug 2012 21:54:16 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so8369559pbb.13 for ; Mon, 27 Aug 2012 14:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wTeJT4pLiQiI/rWTij+aoUDAQECkSlOfx/G2ul4Udvo=; b=GE4rUnrmCpnDxpma3QCJP7x1ax+/sAwgeWlrHlE8j3di5T1YScA7CrynBfiS6RYvRA 4fYnl0Pw8j+2s+hpCcL5eMYQx3z+4DZZK42mxZ88RSRzX0FgEghQGH+7D4LljM52j8k1 +gRdZWti6Q+Aerflx4sEexsM8DWA8cE0f68WWD0Wfd8NsSTPxZZ0RWHCyZZ9zWZ0YaXT NchnGH5ispvL1XZN4tCU8ZMBFoGVqx8AAe2u+xVeyDUfDqTx1e1dX4oe3/D6c8Map30b aocI17ORVnPa16KdNKp0JJpCfQ+nX9uLVNuqhi6VyHiFnmOLolwonhhQlFgpFP/YvdY6 9nyA== MIME-Version: 1.0 Received: by 10.68.132.228 with SMTP id ox4mr37417084pbb.13.1346104455220; Mon, 27 Aug 2012 14:54:15 -0700 (PDT) Received: by 10.66.80.105 with HTTP; Mon, 27 Aug 2012 14:54:15 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Aug 2012 23:54:15 +0200 Message-ID: From: claudiu vasadi To: Tim Gustafson Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS snapshot Folder Disappearing X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 21:54:16 -0000 On Mon, Aug 27, 2012 at 11:08 PM, Tim Gustafson wrote: > Hi, > > I have a FreeBSD 9.0-RELEASE box that's running ZFS with zpool version > 28. I can't recall if this pool was upgraded from an earlier zpool > version, or if it was created natively as a zpool version 28; is there > any way to check that? > > I use snapshots for nightly backups. I went in today to test to see > if the snapshots were working correctly, and I got the following: > > root@bsd-06: cd /tank/export/projects/www/.zfs/snapshot > /tank/export/projects/www/.zfs/snapshot: Not a directory. > > I'm getting the same error when I try to cd into the snapshot folder > on any of my filesystems that have snapshots. > > The zpool is healthy, reporting no errors, and was last scrubbed less > than a month ago with no errors being reported. The server had been > up for 51 days. This server does not currently have a cache drive > installed, nor am I using de-dupe anywhere. > > Based on some Googling around that I did, I ran: > > zdb -d tank | grep % > > and came up empty-handed - no errors appear to be reported there. > > I do create and delete snapshots on a regular basis, and I saw some > chatter that suggested that might be the culprit, but I don't know how > else to check for that. > > I updated to 9.0-RELEASE-p4 and rebooted. The machine did not shut > down properly, so I had to power-cycle it. Upon rebooting all the > way, the snapshots came back, but I wonder if they'll disappear again > after the next round of snapshot creation and removal? > > Before anyone asks: presently, it would be feasible to do a "zfs send" > to back this system up, and then rebuild the pool an then do a "zfs > receive" to restore it, but that will become problematic shortly. > This server has 135TB of disks, and will probably be about half full > some time during the next few months. I do have a mirror server with > another 135TB of disks that I could use for that sort of > backup/restore procedure, but it will be located at the far end of a > 1GB network connection shortly, living about 50 miles away in a remote > data closet, so backing up and restoring that much data will become > more or less impossible. > > -- > > Tim Gustafson > tjg@soe.ucsc.edu > 831-459-5354 > Baskin Engineering, Room 313A > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > Hi, Did you try "zfs set snapdir=visible " ? -- Best regards, Claudiu Vasadi