From owner-freebsd-stable@FreeBSD.ORG Wed Jun 15 12:12:23 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 AF72B106566C for ; Wed, 15 Jun 2011 12:12:23 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [77.88.46.21]) by mx1.freebsd.org (Postfix) with ESMTP id 62A588FC12 for ; Wed, 15 Jun 2011 12:12:23 +0000 (UTC) Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward5.mail.yandex.net (Yandex) with ESMTP id 7B0BC1200DB5; Wed, 15 Jun 2011 16:12:21 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1308139941; bh=pu+CcZfSF/daPdBtSI7rLojNDvxhFZjQB4bUwODEQNQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qpepqmHHCp+MV3L/WkDs8Pm/ic8Onfg7qM0VfqiYZHyp+Yl2ls49W5K0X1pqPnBee p5TSwXkdT2pyYAoKT9lQdGs+wayychDV+RzWUtt0pZUD4H/PFVEyqc934/+Ouq44ZM q5Ma5JCBrWQTJYfwe2oZkcJtvtfvOFJzLpQI4SE8= Received: from [127.0.0.1] (unknown [77.72.136.145]) by smtp4.mail.yandex.net (Yandex) with ESMTPSA id 3C6F56498075; Wed, 15 Jun 2011 16:12:21 +0400 (MSD) Message-ID: <4DF8A1A4.6050607@yandex.ru> Date: Wed, 15 Jun 2011 16:12:20 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Bartosz Stec References: <4DF89ACA.7080404@it4pro.pl> In-Reply-To: <4DF89ACA.7080404@it4pro.pl> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Yandex-Spam: 1 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:12:23 -0000 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. > 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 -- WBR, Andrey V. Elsukov