From owner-freebsd-stable@FreeBSD.ORG Wed Jun 15 12:36:42 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CBDF1065673 for ; Wed, 15 Jun 2011 12:36:42 +0000 (UTC) (envelope-from bartosz.stec@it4pro.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id D42008FC12 for ; Wed, 15 Jun 2011 12:36:41 +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.76 (FreeBSD)) (envelope-from ) id 1QWpKj-000Mf6-NT; Wed, 15 Jun 2011 14:36:40 +0200 Message-ID: <4DF8A749.4030708@it4pro.pl> Date: Wed, 15 Jun 2011 14:36:25 +0200 From: Bartosz Stec Organization: IT4Pro User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <4DF89ACA.7080404@it4pro.pl> <4DF8A1A4.6050607@yandex.ru> In-Reply-To: <4DF8A1A4.6050607@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: bartosz.stec@it4pro.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.2 X-Spam-Score-Int: -81 X-Exim-Version: 4.76 (build at 12-May-2011 10:41:54) X-Date: 2011-06-15 14:36:40 X-Connected-IP: 78.8.144.74:56286 X-Message-Linecount: 48 X-Body-Linecount: 34 X-Message-Size: 2292 X-Body-Size: 1649 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 Stable Subject: Re: gpt labels for zfs partitions don't appear in /dev/gpt X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 12:36:42 -0000 W dniu 2011-06-15 14:12, Andrey V. Elsukov pisze: > On 15.06.2011 15:43, Bartosz Stec wrote: >> As you see I have ada{0-2}p3 labeled as disk{0-2} All labeled partitions have valid gpt id but >> zfs partitions don't have accesible gpt label in /dev/gpt: > It always worked so. Read geom(4) manual page, especially about SPOILING. Ah, I see your point now. >> As you see labels was firstly seen, but removed at the end. I tried to set blank label and then >> correct one again, but no luck. >> Any ideas what's possibly wrong here? > There are two reasons: > 1. glabel does not create providers for providers which are already in use. > 2. `gpart modify` does not touch partition provider and it is not spoiled and retasted. > >> Problem appeared after my pool was broken and I imported it from some boot CD to fix this by "import >> -F". >> >> Now I have unreadable output from zpool commands, like this: >> >> NAME STATE READ WRITE CKSUM >> zroot ONLINE 0 0 0 >> raidz1-0 ONLINE 0 0 0 >> gptid/2ea57c66-bc69-11df-8955-0050dad823cd ONLINE 0 0 0 >> gptid/5bc92016-6852-11df-a16c-0050dad823cd ONLINE 0 0 0 >> gptid/87d467cc-bc3b-11df-8066-0050dad823cd ONLINE 0 0 0 >> > You can disable gptids and this output will be changed back: > echo kern.geom.label.gptid.enable="0">> /boot/loader.conf > Yes, indeed it did the trick. Thank you for your detailed explanation. -- Bartosz Stec