From owner-freebsd-fs@FreeBSD.ORG Sat Aug 9 12:41:58 2014 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66347A90 for ; Sat, 9 Aug 2014 12:41:58 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (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 286AF268B for ; Sat, 9 Aug 2014 12:41:57 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 8EFAD1534EC for ; Sat, 9 Aug 2014 14:41:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7kj7fSs94hQk; Sat, 9 Aug 2014 14:41:42 +0200 (CEST) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id D6C561534C0 for ; Sat, 9 Aug 2014 14:41:42 +0200 (CEST) Message-ID: <53E61706.4010604@digiware.nl> Date: Sat, 09 Aug 2014 14:41:42 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: fs@freebsd.org Subject: Strange effect of zfs rename Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2014 12:41:58 -0000 Hoi, In the process of creating backups I have this sequence of: /sbin/zfs destroy zfsraid/backups@Saturday-2 /sbin/zfs rename -f zfsraid/backups@Saturday zfsraid/backups@Saturday-2 /sbin/zfs snapshot zfsraid/backups@Saturday But then I end up with: # cd /backups/.zfs/snapshot # ll ls: Saturday-2: Device busy total 116 0 dr-xr-xr-x 11 root wheel 11 Aug 9 14:15 ./ 0 dr-xr-xr-x 4 root wheel 4 Jul 30 22:07 ../ 17 drwxr-xr-x 13 root wheel 16 Jul 31 09:54 20140801/ 17 drwxr-xr-x 18 root wheel 21 Aug 5 01:03 Friday/ 17 drwxr-xr-x 16 root wheel 19 Aug 3 01:03 Monday/ 17 drwxr-xr-x 15 root wheel 18 Aug 2 01:03 Sunday/ 17 drwxr-xr-x 18 root wheel 21 Aug 5 01:03 Thursday/ 17 drwxr-xr-x 17 root wheel 20 Aug 4 01:03 Tuesday/ 17 drwxr-xr-x 18 root wheel 21 Aug 5 01:03 Wednesday/ Exit 1 And the device does not becomen not-busy even after a "long" wait. The way to remedy this is: /sbin/zfs unmount -f zfsraid/backups /sbin/zfs mount zfsraid/backups After that the snapshot-dir is as it should. I'm running: FreeBSD zfs.digiware.nl 9.3-STABLE FreeBSD 9.3-STABLE #272 r269145M: Sun Jul 27 06:50:06 CEST 2014 root@zfs.digiware.nl:/usr/obj/usr/srcs/src9/src/sys/ZFS amd64 Can other reproduce this? Or is my system suffering from bitrot? Regards, --WjW