From owner-freebsd-geom@FreeBSD.ORG Sun Jan 30 03:47:40 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CEAB1065672 for ; Sun, 30 Jan 2011 03:47:40 +0000 (UTC) (envelope-from universite@ukr.net) Received: from otrada.od.ua (universite-1-pt.tunnel.tserv24.sto1.ipv6.he.net [IPv6:2001:470:27:140::2]) by mx1.freebsd.org (Postfix) with ESMTP id A808A8FC1D for ; Sun, 30 Jan 2011 03:47:39 +0000 (UTC) Received: from [10.0.0.10] (phenom.otrada.od.ua [10.0.0.10]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.4) with ESMTP id p0U3lXFu086213 for ; Sun, 30 Jan 2011 05:47:33 +0200 (EET) (envelope-from universite@ukr.net) X-Authentication-Warning: otrada.od.ua: Host phenom.otrada.od.ua [10.0.0.10] claimed to be [10.0.0.10] Message-ID: <4D44DF55.6010804@ukr.net> Date: Sun, 30 Jan 2011 05:47:33 +0200 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <4D3DF4B8.4050901@ukr.net> In-Reply-To: <4D3DF4B8.4050901@ukr.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mary-teresa.otrada.od.ua X-Virus-Scanned: clamav-milter 0.95.3 at mary-teresa.otrada.od.ua X-Virus-Status: Clean Subject: Re: [ZFS] How to change the geom label for a disk without losing data in the ZFS pool? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 03:47:40 -0000 Why does not appear glabel label when connecting to a ZFS pool??? # glabel list ad18 glabel: No such geom: ad18. # glabel list ad18p1 glabel: No such geom: ad18p1. # gpart list ad18 Geom name: ad18 fwheads: 16 fwsectors: 63 last: 1465149134 first: 34 entries: 128 scheme: GPT Providers: 1. Name: ad18p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e1 rawuuid: ebf9f19e-2bd4-11e0-be1c-00e04d7b690c rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: disk5 length: 750156339712 offset: 17408 type: freebsd-zfs index: 1 end: 1465149134 start: 34 Consumers: 1. Name: ad18 Mediasize: 750156374016 (699G) Sectorsize: 512 Mode: r1w1e2 # glabel list Geom name: ad12p1 Providers: 1. Name: gpt/disk2 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e1 secoffset: 0 offset: 0 seclength: 1465149101 length: 750156339712 index: 0 Consumers: 1. Name: ad12p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e2 Geom name: ad14p1 Providers: 1. Name: gpt/disk3 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e1 secoffset: 0 offset: 0 seclength: 1465149101 length: 750156339712 index: 0 Consumers: 1. Name: ad14p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e2 Geom name: ad16p1 Providers: 1. Name: gpt/disk4 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e1 secoffset: 0 offset: 0 seclength: 1465149101 length: 750156339712 index: 0 Consumers: 1. Name: ad16p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e2 Geom name: ad10p1 Providers: 1. Name: gpt/disk1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e1 secoffset: 0 offset: 0 seclength: 1465149101 length: 750156339712 index: 0 Consumers: 1. Name: ad10p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e2 Geom name: ad8p1 Providers: 1. Name: gpt/disk0 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e1 secoffset: 0 offset: 0 seclength: 1465149101 length: 750156339712 index: 0 Consumers: 1. Name: ad8p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r1w1e2 # zpool status pool: tank state: ONLINE scrub: scrub in progress for 9h7m, 51,27% done, 8h40m to go config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz2 ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 gpt/disk1 ONLINE 0 0 0 gpt/disk2 ONLINE 0 0 0 gpt/disk3 ONLINE 0 0 0 gpt/disk4 ONLINE 0 0 0 ad18p1 ONLINE 0 0 0 errors: No known data errors # zpool offline tank ad18p1 # glabel list ad18p1 Geom name: ad18p1 Providers: 1. Name: gpt/disk5 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r0w0e0 secoffset: 0 offset: 0 seclength: 1465149101 length: 750156339712 index: 0 Consumers: 1. Name: ad18p1 Mediasize: 750156339712 (699G) Sectorsize: 512 Mode: r0w0e0 # zpool online tank ad18p1 # glabel list ad18p1 glabel: No such geom: ad18p1. -- Vladislav V. Prodan VVP24-UANIC +38[067]4584408 +38[099]4060508 vlad11@jabber.ru