From owner-freebsd-questions@FreeBSD.ORG Fri Apr 5 08:31:32 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 498BE373 for ; Fri, 5 Apr 2013 08:31:32 +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 C45DE886 for ; Fri, 5 Apr 2013 08:31:31 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id gw10so3262418lab.27 for ; Fri, 05 Apr 2013 01:31:29 -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=wkOGl8p3+o9FBaoF1ciaUulAuVPUFbDewECWPSOVLsw=; b=rRfX1Uu/XMh9g4QeY6CTiFTJsagpJa2VHBAGExXlOPhIExGkKCfS34r+q8f387Jc1p mqQ3mwdKu4/QDIP1i8LlWNr9kb7lHYG7QIC/xsoabXFDhhcKf/LWYRbqWeE9c5wCGuK5 7hRjxoAKGGRDfPA0Jcf+1qt/LfcYBl6lGdHdxLEWHeZIiCsE4Dvy9QrdmX2oWEvoXvRE VfTxMOHJaHVQyCeKnLHEubCuyX7Mn8y5gV2M/lyYR887ZwSO6oEokXjvxWnF8yOpDppr AYC0SndKA0/vIDuBQuGidTr+RGcENZZIjr1nzz+WhXFJ6J/OUitWAMXOV42Psgq/N4XH KrZg== X-Received: by 10.112.42.37 with SMTP id k5mr4193198lbl.49.1365150689546; Fri, 05 Apr 2013 01:31:29 -0700 (PDT) Received: from [192.168.1.128] ([91.196.229.122]) by mx.google.com with ESMTPS id oy10sm5278846lab.8.2013.04.05.01.31.28 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Apr 2013 01:31:28 -0700 (PDT) Message-ID: <515E8BDF.9070403@gmail.com> Date: Fri, 05 Apr 2013 11:31:27 +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> In-Reply-To: <1365092775955-5801588.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 08:31:32 -0000 04.04.2013 19:26, Beeblebrox: >>> test them with `zdb -l device`. When the output would be correct - you > guessed your slice! > > LABEL 1 > -------------------------------------------- > version: 28 > name: 'bsdr' > state: 2 > txg: 10 > pool_guid: 12018916494219117471 > hostid: 2193536600 > hostname: 'mfsbsd' > top_guid: 17860002997423999070 > guid: 17860002997423999070 > vdev_children: 1 > vdev_tree: > type: 'disk' > id: 0 > guid: 17860002997423999070 > path: '/dev/ad6p2' > phys_path: '/dev/ad6p2' > whole_disk: 1 > metaslab_array: 30 > metaslab_shift: 31 > ashift: 9 > asize: 287855869952 > is_log: 0 > create_txg: 4 > > Do you mean that in this case 'asize 287855869952' is what I should look at? > But 287855869952 /1024 /1024 /2 => 137.260GB is far smaller than I recall > the geom part to be... I can't has the math. But looking at ashift I can guess your disk should be 287855869952/2**9 == 562218496. Is this one right? Actually if you see all 4 labels correctly you can try to proceed as ZFS would guess the correct disk size anyway. -- Sphinx of black quartz, judge my vow.