From owner-freebsd-fs@FreeBSD.ORG Tue Jul 31 14:25:52 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1194F106564A for ; Tue, 31 Jul 2012 14:25:52 +0000 (UTC) (envelope-from freebsd@knarf.de) Received: from mail.server-king.de (mail.server-king.de [IPv6:2a01:4f8:100:41a2::25]) by mx1.freebsd.org (Postfix) with ESMTP id 90F898FC08 for ; Tue, 31 Jul 2012 14:25:51 +0000 (UTC) Received: from cheese.server-king.de (localhost [127.0.0.1]) by mail.server-king.de (8.14.5/8.14.5) with ESMTP id q6VEPoSZ025606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 31 Jul 2012 16:25:50 +0200 (CEST) (envelope-from freebsd@knarf.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=knarf.de; s=mail.server-king.de; t=1343744750; bh=/hmTMxf2NfFDzrF7HTwy0Yz6nc6cRLU1K9ZFMo51+fw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Meqz9vF3OYNAY9n6f/tx5Sl2aZFFR2eJpeTdnni4v9khVnDG4Hz1QqUV5tJSZ7G4g vs04CZ/7UK/GaCgZaYBCJrSU7OonAlySeuDS+GjdHm1FCPUpTALLKAKPf0pCvc++CX 0S439AOmW2kSL5HnjtDafKySuqb9zqrp+3Y/n4Zk= Received: (from knarf@localhost) by cheese.server-king.de (8.14.5/8.14.5/Submit) id q6VEPo7f025605; Tue, 31 Jul 2012 16:25:50 +0200 (CEST) (envelope-from freebsd@knarf.de) X-Authentication-Warning: cheese.server-king.de: knarf set sender to freebsd@knarf.de using -f Date: Tue, 31 Jul 2012 16:25:50 +0200 From: Frank Bartels To: Karli =?iso-8859-15?Q?Sj=F6berg?= Message-ID: <20120731142549.GA8138@server-king.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mail.server-king.de [127.0.0.1]); Tue, 31 Jul 2012 16:25:50 +0200 (CEST) Cc: "freebsd-fs@freebsd.org" Subject: Re: Hang when importing pool X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2012 14:25:52 -0000 Hi, I had a very similar problem three times before. The last time I was able to find a working solution: 0. Add more RAM. 1. Use zdb -h -e pool and find out the *last* good looking txg before the current txg. 2. zpool import -T txg -R /pool -o readonly=on pool 2.1. if this does not work, try older txg 3. Backup your data. 4. Recreate the pool (undo old mistakes, use gpt labels and proper alignment) 5. Keep dedup=off if you have only 16 GB RAM. 6. Restore your data. This is a very short description, but I think you get the idea. Hope this helps, Knarf On Tue, Jul 31, 2012 at 08:31:07 +0200, Karli Sjöberg wrote: > Hi, > > I?m really struggling with this. I have had a pool with imported filesystems from a Solaris system that had dedup activated. Then, when the time came to erase them, it just stalled. When rebooting, it stalled again at mounting filesystems, and since then, I?ve installed two USB drives to act as root pool with FreeBSD-9.0-RELEASE so that I could import the original pool in recovery, but it always stalls after a couple of hours. Looking at top, I could see that the 16GB RAM was maxed out, so I have heavily tuned down kmem, arc, etc: > > vm.kmem_size_max="512M" > vm.kmem_size="384M" > vfs.zfs.arc_max="256M" > > And then I tried importing again, but with the same result; RAM reaches 16G Wired, 0B Free and some swap allocated as well, and then it stalls. So I tried updating, so currently it?s at FreeBSD 9.1-BETA1 #0: Fri Jul 13 22:36:05 CEST 2012, but still no go, it still stalls when I try importing, even like: > > # zpool import -f -F -m pool1 > > In the link is a screenshot of CTRL+T after it stalled the last time. > http://i46.tinypic.com/jhdgrq.png > > There is about 4TB in there that I really need. Please help, I?m out of ideas, and stupid enough not to have gotten it backed up yet. > > > Best Regards > ------------------------------------------------------------------------------- > Karli Sjöberg > Swedish University of Agricultural Sciences > Box 7079 (Visiting Address Kronåsvägen 8) > S-750 07 Uppsala, Sweden > Phone: +46-(0)18-67 15 66 > karli.sjoberg@slu.se > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"