From owner-freebsd-questions@FreeBSD.ORG Fri Apr 5 10:43:15 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 5696C121 for ; Fri, 5 Apr 2013 10:43:15 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id CFEB9E6B for ; Fri, 5 Apr 2013 10:43:14 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id gw10so3276583lab.41 for ; Fri, 05 Apr 2013 03:43:13 -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=LPF4K3AbyMxYcRZeVU4USlGesxYc3SfnUBzSTBlMJgI=; b=S2yizRgXr2P0gRgsXTirLRXftjkARQvEfpMdp73UeaHCUnMbMQaDQF5JOjOhU5GkTq UsXvyUYm3CIvkJbBitSzQNV+w37qWOlFOcY0fpiB1pF4XNV1BTXAmR0k1c9x94epL5Xq jVF9lkkXGtnHLf448TJ+2Mx1ndYla4iJgkczMZxWp/xElZ44oa+w2fyk7Q8YTE2w1Znx 5p/xv56s0+2h7EfXB1imSlkU6r4Okduug+gmqMwgkKLgyWifwu2tqsny8wKLvrZMvhPZ uUKBHhLmDoM5hfDRFi4m+MDcBffmTG9+jyv5Azr8f570bSF73INiZ/Gkpl3QW03joho9 cpFQ== X-Received: by 10.112.137.135 with SMTP id qi7mr5672833lbb.117.1365158593720; Fri, 05 Apr 2013 03:43:13 -0700 (PDT) Received: from [192.168.1.128] ([91.196.229.122]) by mx.google.com with ESMTPS id z1sm5274219lbk.2.2013.04.05.03.43.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Apr 2013 03:43:13 -0700 (PDT) Message-ID: <515EAABF.6020300@gmail.com> Date: Fri, 05 Apr 2013 13:43:11 +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: <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> <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> In-Reply-To: <1365152049024-5801716.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: Fri, 05 Apr 2013 10:43:15 -0000 05.04.2013 11:54, Beeblebrox: >>> Actually if you see all 4 labels correctly you can try to proceed as ZFS > would guess the correct disk size anyway. > > I should clarify: # zdb -l /dev/ada0p2 => all 4 LABELS visible and correct > (zpool name: bsdr) > # zdb -l /dev/ada0p1 => all 4 LABELS visible and correct (zpool name: asp) > # zdb -l /dev/ada0 => only LABEL #2 visible (this is an OLDER zpool with > GUID 5853256800575798014, also named bsdr, the pool was whole-disk-as-raw) > This is the gpt table + partitions as I re-created them immediately after > the gpt delete. It looks like I have re-created the gpt partitions > correctly... > > I don't understand what you mean by "you can try to proceed"? > # zpool import -D -f -R /bsdr -N -F -n -X bsdr > cannot import 'bsdr': a pool with that name already exists. use the form > 'zpool import ' to give it a new name Ok, let's check a few things: zpool import zpool import -D From your previous mails I saw that pool bsdr is FAULTED but not deleted. If the system would list bsdr on `zpool import` you should remove -D from the command. -- Sphinx of black quartz, judge my vow.