From owner-freebsd-fs@FreeBSD.ORG Fri Dec 20 09:05:36 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20574DB2 for ; Fri, 20 Dec 2013 09:05:36 +0000 (UTC) Received: from umail.aei.mpg.de (umail.aei.mpg.de [194.94.224.6]) by mx1.freebsd.org (Postfix) with ESMTP id A2D8D1E73 for ; Fri, 20 Dec 2013 09:05:35 +0000 (UTC) Received: from mailgate.aei.mpg.de (mailgate.aei.mpg.de [194.94.224.5]) by umail.aei.mpg.de (Postfix) with ESMTP id E6E51200C15; Fri, 20 Dec 2013 10:05:33 +0100 (CET) Received: from mailgate.aei.mpg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id B96FC405889; Fri, 20 Dec 2013 10:05:36 +0100 (CET) Received: from intranet.aei.uni-hannover.de (ahin1.aei.uni-hannover.de [130.75.117.40]) by mailgate.aei.mpg.de (Postfix) with ESMTP id 7412B406AF1; Fri, 20 Dec 2013 10:05:36 +0100 (CET) Received: from cascade.aei.uni-hannover.de ([10.117.15.111]) by intranet.aei.uni-hannover.de (Lotus Domino Release 8.5.3) with ESMTP id 2013122010052276-48615 ; Fri, 20 Dec 2013 10:05:22 +0100 Date: Fri, 20 Dec 2013 10:05:22 +0100 From: Gerrit =?ISO-8859-1?Q?K=FChn?= To: krichy@tvnetwork.hu Subject: Re: ZFS snapshot renames failing after upgrade to 9.2 Message-Id: <20131220100522.382a39ac.gerrit.kuehn@aei.mpg.de> In-Reply-To: References: <0C9FD4E1-0549-4849-BFC5-D8C5D4A34D64@msqr.us> <54D3B3C002184A52BEC9B1543854B87F@multiplay.co.uk> <333D57C6A4544067880D9CFC04F02312@multiplay.co.uk> <26053_1387447492_52B2C4C4_26053_331_1_20131219105503.3a8d1df3.gerrit.kuehn@aei.mpg.de> <20131219165549.9f2ca709.gerrit.kuehn@aei.mpg.de> <20131219174054.91ac617a.gerrit.kuehn@aei.mpg.de> Organization: Max Planck Gesellschaft X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.19; amd64-portbld-freebsd8.2) Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on intranet/aei-hannover(Release 8.5.3|September 15, 2011) at 12/20/2013 10:05:22, Serialize by Router on intranet/aei-hannover(Release 8.5.3|September 15, 2011) at 12/20/2013 10:05:32, Serialize complete at 12/20/2013 10:05:32 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-PMX-Version: 6.0.2.2308539, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.12.20.90016 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __RUS_OBFU_PHONE 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 09:05:36 -0000 On Thu, 19 Dec 2013 20:08:22 +0100 (CET) krichy@tvnetwork.hu wrote about Re: ZFS snapshot renames failing after upgrade to 9.2: KH> So a simple renaming can cause your system to hang? No, it does not hang completely. Just the snapshots become unusable. This night, it happened again: --- root@shapeshifter:~ # ll /tank/git/.zfs/snapshot/ ls: daily.6: Device busy total 33 drwxr-xr-x 12 211 211 25 Dec 19 09:18 daily.0/ drwxr-xr-x 12 211 211 25 Dec 19 00:00 daily.1/ drwxr-xr-x 12 211 211 24 Dec 18 00:00 daily.2/ drwxr-xr-x 12 211 211 24 Dec 17 00:00 daily.3/ drwxr-xr-x 12 211 211 24 Dec 16 00:00 daily.4/ drwxr-xr-x 12 211 211 24 Dec 14 00:00 daily.5/ drwxr-xr-x 12 211 211 24 Dec 15 00:00 weekly.0/ drwxr-xr-x 12 211 211 24 Dec 8 00:00 weekly.1/ drwxr-xr-x 12 211 211 24 Dec 1 00:00 weekly.2/ drwxr-xr-x 12 211 211 24 Nov 17 00:00 weekly.3/ drwxr-xr-x 12 211 211 24 Nov 10 00:00 weekly.4/ drwxr-xr-x 2 root wheel 3 Oct 20 00:00 weekly.5/ drwxr-xr-x 2 root wheel 3 Oct 6 00:00 weekly.6/ --- root@shapeshifter:~ # zfs list -r -t snapshot -o name,creation,used,referenced tank/git NAME CREATION USED REFER tank/git@weekly.6 Sun Oct 6 0:00 2013 42.6K 62.8K tank/git@weekly.5 Sun Oct 20 0:00 2013 42.6K 62.8K tank/git@weekly.4 Sun Nov 10 0:00 2013 29.5M 146G tank/git@weekly.3 Sun Nov 17 0:00 2013 27.1M 146G tank/git@weekly.2 Sun Dec 1 0:00 2013 26.3M 146G tank/git@weekly.1 Sun Dec 8 0:00 2013 27.3M 146G tank/git@daily.6 Sat Dec 14 0:00 2013 26.5M 147G tank/git@weekly.0 Sun Dec 15 0:00 2013 25.2M 147G tank/git@daily.5 Mon Dec 16 0:00 2013 24.7M 147G tank/git@daily.4 Tue Dec 17 0:00 2013 24.9M 147G tank/git@daily.3 Wed Dec 18 0:00 2013 25.7M 147G tank/git@daily.2 Thu Dec 19 0:00 2013 25.8M 147G tank/git@daily.1 Thu Dec 19 9:19 2013 25.0M 147G tank/git@daily.0 Fri Dec 20 0:00 2013 26.8M 147G --- As you can see, the snapshot rotating got stuck somewhere. What is displayed under .zfs/snapshot does not reflect what zfs is really seeing: daily.6 is inaccessible, and the rotation that happened so far is not reflected under .zfs/snapshot, either. cu Gerrit