From owner-freebsd-bugs@freebsd.org Tue Jun 13 23:56:07 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2B43C09AC0 for ; Tue, 13 Jun 2017 23:56:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 D6FDC7148C for ; Tue, 13 Jun 2017 23:56:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5DNu7jD001465 for ; Tue, 13 Jun 2017 23:56:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 219972] Unable to zpool export following some zfs recv Date: Tue, 13 Jun 2017 23:56:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pfribeiro@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2017 23:56:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219972 Bug ID: 219972 Summary: Unable to zpool export following some zfs recv Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: pfribeiro@gmail.com root@sunflower:~ # uname -a FreeBSD sunflower 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 I must admit this is quite some odd behaviour I'm getting regarding zfs poo= ls. I'm trying to synchronize snapshots from another FreeBSD system (FreeNAS in fact) to a pure FreeBSD 11-RELEASE-p9 system, with a USB 3.0-attached Seaga= te 8TB drive. Quite often, I'm unable to do 'zpool export master' after a 'zpo= ol import master'. This seems to happen more consistently after having done a = 'zfs recv'. Something alone the lines of: root@sunflower:~ # zpool import master root@sunflower:~ # zpool export master root@sunflower:~ # zpool import master root@sunflower:~ # zpool export master root@sunflower:~ # zpool import master root@sunflower:~ # zpool export master cannot export 'master': pool is busy root@sunflower:~ # zpool export master cannot export 'master': pool is busy I note that there are no processes using the pool. I have also tried using 'zpool import -N master', but the result is often the same. I have also tri= ed 'zpool export -f master' but to no avail. I don't see any erroneous messages in dmesg, neither in /var/log/messages. I initially was using geli with an AES encrypted device being used to create = the zfs pool, but I have since then tested without crypto, and the problem persists. Following this behaviour I am then unable to export the pool till I reboot = the system. I have opened a GitHub issue with the original guide I followed at: https://github.com/hughobrien/zfs-remote-mirror/issues/7, and subsequently posted on the FreeBSD forum: https://forums.freebsd.org/threads/61291/. But quite frankly, I am almost giving up on this storage idea, because I cannot= get to the bottom of this issue. There are no obvious logged errors that I can = poke at. I would appreciate some guidance to confirm this erroneous behaviour further. I see that there are some vaguely related bugs like #201735, but in my case= I am not accessing any particular folder or file at all. Thanks --=20 You are receiving this mail because: You are the assignee for the bug.=