From owner-freebsd-stable@FreeBSD.ORG Mon Oct 13 21:56:56 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07E5680A; Mon, 13 Oct 2014 21:56:56 +0000 (UTC) Received: from smtp1.multiplay.co.uk (smtp1.multiplay.co.uk [85.236.96.35]) by mx1.freebsd.org (Postfix) with ESMTP id B67AB67A; Mon, 13 Oct 2014 21:56:55 +0000 (UTC) Received: by smtp1.multiplay.co.uk (Postfix, from userid 65534) id 4284820E708FA; Mon, 13 Oct 2014 21:56:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.multiplay.co.uk X-Spam-Level: * X-Spam-Status: No, score=2.0 required=8.0 tests=AWL,BAYES_00,DOS_OE_TO_MX, FSL_HELO_NON_FQDN_1,RDNS_DYNAMIC autolearn=no version=3.3.1 Received: from r2d2 (82-69-141-170.dsl.in-addr.zen.co.uk [82.69.141.170]) by smtp1.multiplay.co.uk (Postfix) with ESMTPS id D2AB920E708F8; Mon, 13 Oct 2014 21:56:51 +0000 (UTC) Message-ID: From: "Steven Hartland" To: "mark" , , References: <54372173.1010100@ijs.si> <644FA8299BF848E599B82D2C2C298EA7@multiplay.co.uk> <54372EBA.1000908@ijs.si> <543731F3.8090701@ijs.si> <543AE740.7000808@ijs.si> <6E01BBEDA9984CCDA14F290D26A8E14D@multiplay.co.uk> <14ADE02801754E028D9A0EAB4A16527E@multiplay.co.uk> <543C3C47.4010208@ijs.si> Subject: Re: zpool import hangs when out of space - Was: zfs pool import hangs on [tx->tx_sync_done_cv] Date: Mon, 13 Oct 2014 22:56:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2014 21:56:56 -0000 ----- Original Message ----- From: "mark" To: ; Cc: "FreeBSD Stable" Sent: Monday, October 13, 2014 9:55 PM Subject: Re: zpool import hangs when out of space - Was: zfs pool import hangs on [tx->tx_sync_done_cv] > On 10/13/2014 22:10, Steven Hartland wrote: >> So the issue is simply the pool is out of space to perform the import >> as that process, when not readonly, requires space to write to the pool. >> >> The problem with that is that during this process it has the pool lock so >> any subsequent zpool actions are dead in the water as they will block >> waiting on that lock. >> >> Something to discuss with the openzfs guys, but I would say the import >> should fail with a no space error. >> >> So Mark the mystery is solved, when you upgraded you ran the pool so low >> on space that it now can't be imported RW as that requires a write. >> >> Regards >> Steve > > Thank you both for analysis and effort! > > I can't rule out the possibility that my main system pool > on a SSD was low on space at some point in time, but the > three 4 GiB cloned pools (sys1boot and its brothers) were all > created as a zfs send / receive copies of the main / (root) > file system and I haven't noticed anything unusual during > syncing. This syncing was done manually (using zxfer) and > independently from the upgrade on the system - on a steady/quiet > system, when the source file system definitely had sufficient > free space. > > The source file system now shows 1.2 GiB of usage shown > by df: > shiny/ROOT 61758388 1271620 60486768 2% / > Seems unlikely that the 1.2 GiB has grown to 4 GiB space > on a cloned filesystem. > > Will try to import the main two pools after re-creating > a sane boot pool... Yer zfs list only shows around 2-3GB used too but zpool list shows the pool is out of space. Cant rule out an accounting issue though. Regards Steve