From owner-freebsd-questions@freebsd.org Mon Oct 26 14:57:54 2015 Return-Path: Delivered-To: freebsd-questions@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 7E932A1CBB5 for ; Mon, 26 Oct 2015 14:57:54 +0000 (UTC) (envelope-from niklaas@kulturflatrate.net) Received: from mail2.kulturflatrate.net (mail.financecomm.com [178.63.105.5]) by mx1.freebsd.org (Postfix) with ESMTP id 36E541B41 for ; Mon, 26 Oct 2015 14:57:53 +0000 (UTC) (envelope-from niklaas@kulturflatrate.net) Received: from [10.0.0.38] (mail.kulturflatrate.net [IPv6:2a01:488:66:1000:2ea3:77dd:0:1]) (Authenticated sender: niklaas@kulturflatrate.net) by mail2.kulturflatrate.net (Postfix) with ESMTPSA id F04C6F838; Mon, 26 Oct 2015 15:57:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kulturflatrate.net; s=default; t=1445871466; bh=FF1MSUedLM1THW0UWtxnlMJ43qLChE7rCqIyNKAtq18=; h=Subject:To:References:From:Date:In-Reply-To; b=Euhv3162gADsdaNOej7c7hMugb9HmOKDBqnZgqgkdaZQM4808sQC78NZt9VgVPEiv eIrRB4XrYJohat3rgVNpdzlSFbD5Jqq4d2LC5MByKUh4Wu/pGs7tJl/o0haBEcOcjT To7vuNQLMwiklydT6tXmXbCSoh9rT46dQLe96mJE= Subject: Re: cd /.zfs/snapshot hangs (tmux put to uninterruptible sleep) To: Matthew Seaman , freebsd-questions@freebsd.org References: <562CB2C2.6090402@kulturflatrate.net> <562CB8CF.7010504@FreeBSD.org> <562CC1DD.9060207@kulturflatrate.net> <562CC308.6060901@FreeBSD.org> <562CC547.8080308@kulturflatrate.net> <562CC7B6.5040404@FreeBSD.org> <562CC939.5060807@kulturflatrate.net> <562E0DDA.3020202@freebsd.org> <562E1219.4080203@infracaninophile.co.uk> From: Niklaas Baudet von Gersdorff X-Enigmail-Draft-Status: N1110 Message-ID: <562E4007.5030206@kulturflatrate.net> Date: Mon, 26 Oct 2015 16:00:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <562E1219.4080203@infracaninophile.co.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 14:57:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 26/10/15 12:44, Matthew Seaman wrote: > Actually, here is the problem: > > stingray:/:# zfs destroy -r tank/.......1 cannot unmount > '/.......1': Device busy > > But that is easily fixed by: > > stingray:/:# zfs umount -f /.......1 stingray:/:# zfs destroy -r > tank/.......1 > > I wonder if that's worth a PR? I recall now this is exactly what I > ran into before, but it seems rather different to what you're > seeing. Aha! I am not sure but it could be that it is related. (Sorry, unlike you I haven't further investigated on what caused the error i.e., I am not 100% sure.) What I realised yesterday was that I had several more processes stuck in D. All of these were caused by a script [1] hat I use to create snapshots of my ZFS filesystems regulary. It creates snapshots and *deletes* old ones. 1: https://bitbucket.org/mmichele/zfssnap My guess is now that the script caused the uninterruptible sleep of a process (several times because I run it quite regularly) when it tried to destroy an old snapshot. Then I came in and (because I wanted to restore an accidentally deleted file) `cd /.zfs./snapshot` and couldn't get access (the process hang) because the script already messed up everything. Does this make sense? - -- Niklaas -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWLkADAAoJEG2fODeJrIU/HHAP+gJNz2NFwkMd19niUqIHiivl OoY6HVQssNIX4fB3jxhBz0BmJiNa2tokkOpeHFlrHcF/b0KuACvt54f9rsRQVqYT KT5zkbuHPXyYFxFV1OGbDQ9d+fGnwf3iieHpHiUsmEAdmObswmB4kHEziyF1zsJg rswYDPy4BOp/nHIuiCLgtmtj6SuLF2qk5V0Fcu7d9kygJuvAk9H2tF+HKvWV13Hf CI6G9btZSvHMFCGj4STA7m6UxsphhWhIn3vic5OSa5HZPtpTGo8waoohzqeQWGSf FphJf2lWFSR0gN8bfJVCszl86BiQmW1GCKbsL+StDc7a2k7zOgmcC75pY313EY8L EVTN02oH0k2bt3MTlR+QUBFExvKSYauQl8ZFdCDMKAtRTJgK5AXEx03m3RNNcFlu mHfz8wL2ly0ZJo3CR18E/zCtHSfgazHhc+vsQ3fegOLDIv23JvjMXESt9Ws9kc8z ftjilHmduC8Xq8NcQv9EmCKrpsfr2258+S6DyDDKWNIZuQusWVTZiDDKQ/R5Lky7 1+SkDdnJ0z0uPX8YwhLHze+xth/4UxWnPr2lKlXFUjJGdTuMNGq8YYw9xp7CPAdA k67ihURldhZzDJW48jYEAmHNxsnNpVoKDui/77lfdVRSEa1AH8CFCVTvb6T60XBp kkNxnCtzWWp1GbS/X9rc =6NuN -----END PGP SIGNATURE-----