From owner-freebsd-questions@FreeBSD.ORG Mon Apr 8 10:45:03 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BF9B9A57 for ; Mon, 8 Apr 2013 10:45:03 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 462F3218 for ; Mon, 8 Apr 2013 10:45:03 +0000 (UTC) Received: by mail-la0-f46.google.com with SMTP id fq12so5230817lab.19 for ; Mon, 08 Apr 2013 03:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/faEMn6N32EO4njBHN5owZkljXHqctyqPPzqV6EBuLE=; b=esz8urRzsCy3rF5GQYZUMjZ4axO85koMyqwyWKFsonar6YBQY9CDVrxZEBCx9J8y7G B+4VRHJhO186A4Gd+V7bZXylZHSj98pxzH0Qw2xz2NK0bPPL1QBfAKUnHcQtbzm9Kf8J /1GukebZnwj9mA5hpE8keTycSwkQH5Dx7XW1tbvyXcGBNH84YkGXhGp8UuAy+8VYAX5U lwDme+rDLPNd+Iqcr2gnLNc9yaZALzq8Q5Vmecde2RoYV7TN0/3OPfUse5LvLUpUTT0E N6hd288meIoAyqlMC/lj0yo8PRrcqWGrEqZ6KWHToLmCNg3wU2w8kGRZLZ+xSXoD20ly eZtw== X-Received: by 10.152.28.3 with SMTP id x3mr11507200lag.27.1365417902029; Mon, 08 Apr 2013 03:45:02 -0700 (PDT) Received: from [192.168.1.128] ([91.196.229.122]) by mx.google.com with ESMTPS id jh4sm10853565lab.7.2013.04.08.03.44.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Apr 2013 03:45:01 -0700 (PDT) Message-ID: <51629FAA.1070007@gmail.com> Date: Mon, 08 Apr 2013 13:44:58 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17 MIME-Version: 1.0 To: Beeblebrox , freebsd-questions@freebsd.org Subject: Re: [ZFS] recover destroyed zpool - what are the available options? References: <1365002276096-5801335.post@n5.nabble.com> <515C4B14.80300@gmail.com> <1365004246715-5801356.post@n5.nabble.com> <1365087055.99393.YahooMailRC@web184303.mail.ne1.yahoo.com> <1365090630957-5801568.post@n5.nabble.com> <1365091829108-5801581.post@n5.nabble.com> <1365092775955-5801588.post@n5.nabble.com> <515E8BDF.9070403@gmail.com> <1365152049024-5801716.post@n5.nabble.com> <515EAABF.6020300@gmail.com> <1365160406005-5801734.post@n5.nabble.com> In-Reply-To: <1365160406005-5801734.post@n5.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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: Mon, 08 Apr 2013 10:45:03 -0000 05.04.2013 14:13, Beeblebrox: > Thank you for your help Volodymyr, > > 1. ZPOOL LIST shows that the pool is listed > NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT > bsdr - - - - - FAULTED - > tank0 49.8G 13.3G 36.5G 26% 1.00x ONLINE - > > 2. ZPOOL IMPORT => no pools available to import > 3. zpool import -D -f -R /bsdr -N -F -n -X bsdr => > Gives error because of condition (#1) > 4. ZPOOL IMPORT -D shows 2 BSDR pools: > A) config: bsdr UNAVAIL insufficient replicas > 5853256800575798014 UNAVAIL cannot open (THIS IS NOT THE POOL I WANT - > THIS ONE IS OLDER POOL, WHOLE-DISK-RAW) > B) config: bsdr UNAVAIL insufficient replicas > 17860002997423999070 UNAVAIL cannot open (THIS SHOULD BE THE POOL I > NEED, BUT LOOK AT PROBLEM IN #5) > 5. ZPOOL STATUS -V BSDR shows different guid!! > config: bsdr UNAVAIL 0 0 0 > 12606749387939346898 UNAVAIL 0 0 0 was /dev/ada0p2 (THIS > GUID DOES NOT MATCH THE GUID OF 4-B) > It is normal in my opinion that the guid should not match, but that is why I > cannot import pool 4-B. I must either delete the BSDR POOL that is shown as > "on-line", or import 4-B with another name I think. Personally I feel you should destroy current BSDR pool before importing older one or at least export current one. I don't think ZFS will reuse devices that are already used for other pools. -- Sphinx of black quartz, judge my vow.