From owner-freebsd-current@FreeBSD.ORG Thu Apr 1 20:02:54 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 988AE106566C for ; Thu, 1 Apr 2010 20:02:54 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id 0EBD18FC1E for ; Thu, 1 Apr 2010 20:02:53 +0000 (UTC) Received: from static-78-8-144-74.ssp.dialog.net.pl ([78.8.144.74] helo=[192.168.0.2]) by mainframe.kkip.pl with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1NxQbA-000E3y-PS; Thu, 01 Apr 2010 22:02:53 +0200 Message-ID: <4BB4FBDD.5030709@kkip.pl> Date: Thu, 01 Apr 2010 22:02:37 +0200 From: Bartosz Stec User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100306 Shredder/3.0.3 MIME-Version: 1.0 References: <4BB49E3F.7070506@it4pro.pl> <4D9CB47F-5571-444D-A30B-0227BA01D6E9@mac.com> In-Reply-To: <4D9CB47F-5571-444D-A30B-0227BA01D6E9@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: admin@kkip.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -6.2 X-Spam-Score-Int: -61 X-Exim-Version: 4.71 (build at 02-Feb-2010 20:10:28) X-Date: 2010-04-01 22:02:53 X-Connected-IP: 78.8.144.74:60671 X-Message-Linecount: 42 X-Body-Linecount: 30 X-Message-Size: 1868 X-Body-Size: 1273 X-Received-Count: 1 X-Recipient-Count: 2 X-Local-Recipient-Count: 2 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: gpart failing with no such geom after gpt corruption X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2010 20:02:54 -0000 On 2010-04-01 19:34, Marcel Moolenaar wrote: > On Apr 1, 2010, at 6:23 AM, Bartosz Stec wrote: > > >> Unfortunately it wasn't so easy. First of all system booted, and as I expected kernel message shows GPT error on ad1. Zpool was degraded but alive and kicking. However, when I tried to execute any gpart command on ad1, it return: >> >> ad1: no such geom >> > If the GPT is rejected, no GEOM is created in the kernel. It's the GEOM > that gpart(8) talks to, so the error indicates that the GPT is not accepted > after you changed the disk size. For all practical purposes ad1 doesn't have > a partitioning. > > The only gpart command you can use is: > gpart create -s gpt ad1 > > This creates a new GPT on the disk, wiping out whatever was there... > > It was a middle of night when I played with that, so I'm not remember clearly if I tried it simpliest way like above or not. Maybe not, and all noise I made was pointless and caused by my inexperience with gpart. Probably I just expected output from "gpart show ad1" be more like "no valid partitioning scheme on device" or "error in GPT table, please recreate partition scheme" in place of mystic geom message ;) Sorry for noise, thanks for a hint and happy easter everyone :) -- Bartosz Stec