From owner-freebsd-questions@FreeBSD.ORG Thu Apr 4 15:50:37 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8B21C995 for ; Thu, 4 Apr 2013 15:50:37 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 7115EBE1 for ; Thu, 4 Apr 2013 15:50:37 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UNmQo-0005IT-V5 for freebsd-questions@freebsd.org; Thu, 04 Apr 2013 08:50:30 -0700 Date: Thu, 4 Apr 2013 08:50:30 -0700 (PDT) From: Beeblebrox To: freebsd-questions@freebsd.org Message-ID: <1365090630957-5801568.post@n5.nabble.com> In-Reply-To: <1365087055.99393.YahooMailRC@web184303.mail.ne1.yahoo.com> References: <1364711810171-5800299.post@n5.nabble.com> <1365002276096-5801335.post@n5.nabble.com> <515C4B14.80300@gmail.com> <1365004246715-5801356.post@n5.nabble.com> <1365087055.99393.YahooMailRC@web184303.mail.ne1.yahoo.com> Subject: [ZFS] recover destroyed zpool - what are the available options? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2013 15:50:37 -0000 Hi Mark. >>What does "gpart show" return? => 34 625142381 ada0 GPT (298G) 34 62914560 1 freebsd-zfs (30G) 62914594 562227821 2 freebsd-zfs (268G) >>Are all the pool members there and working? Yes - ada0p2 is the ONLY pool member. >>My guess is that one member is missing or a mbr is bad. After 'zpool destroy', I also deleted the partition before realising my mistake, I tried to recover the partition table with testdisk, but this was not successful. Next I created a new GPT table and the 2 partitions at the original size as I recalled them - so ada0p1 and ada0p2 have been re-created. I just realized a problem: gpart show -r => 62914594 562227821 2 516e7cba-6ecf-11d6-8ff8-00022d09712b (268G) The guid (?) that ZFS is looking for is most likely wrong. I need to find the ID that ZFS is looking for and change the ID of ada0p2 to that number - am I correct? Thanks. -- View this message in context: http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-tp5800299p5801568.html Sent from the freebsd-questions mailing list archive at Nabble.com.