From owner-freebsd-geom@FreeBSD.ORG Sun Jan 30 18:24:55 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 C66E1106566C for ; Sun, 30 Jan 2011 18:24:55 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 869058FC08 for ; Sun, 30 Jan 2011 18:24:55 +0000 (UTC) Received: by iwn39 with SMTP id 39so4802473iwn.13 for ; Sun, 30 Jan 2011 10:24:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; bh=wHfkvLgPRtWAiwu96t5wToyykxJ0+6LEeUVgw6Bx7Eo=; b=cQPClfPW8xbyM1y/Vnvpn1kfkArRq57Szmpb/b0LpAvhj5owUSWETpA0ioj32mbAjX ZGfUgma+PrKdk6tISEZkJln/Veo8+7YwKAdaH6/NuqOdZXKQuvCgfSxSzlNBA7qNFrP5 ncCHGMEbwdeMsPEjH7o4o7g8KCKiIkoFzLHpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=ldoDGGflodmLLeXpDCdFtQntXeYBaGL650lAX2UrsceoucrLPM2AGUzRCWlsKi0aKm 6wb9MHZCddIwHJRCkW/bTFuFIIG0TGVhc3XX9VwUrU9799u8Aq0McyGM1gHRLZHKdVPU f7zYn/s2zmz54dkHDP1wXLk6S5XwLkRb4+pdU= Received: by 10.42.173.6 with SMTP id p6mr6709917icz.183.1296410287474; Sun, 30 Jan 2011 09:58:07 -0800 (PST) Received: from disbatch.dataix.local (adsl-99-190-82-103.dsl.klmzmi.sbcglobal.net [99.190.82.103]) by mx.google.com with ESMTPS id u5sm15404701ics.6.2011.01.30.09.58.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Jan 2011 09:58:05 -0800 (PST) Sender: "J. Hellenthal" Date: Sun, 30 Jan 2011 12:57:45 -0500 From: jhell To: "Vladislav V. Prodan" In-Reply-To: <4D44DF55.6010804@ukr.net> Message-ID: References: <4D3DF4B8.4050901@ukr.net> <4D44DF55.6010804@ukr.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-geom@freebsd.org 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 18:24:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 29 Jan 2011 22:47, universite@ wrote: > Why does not appear glabel label when connecting to a ZFS pool??? > > # 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 > You are using gpt/* labels in this pool and there is no use for glabel(8) functionality since you already have the disk labeled by gpart(8). If you would like to use glabel(8) instead then your pool will need to be pointed to those devices like so: zpool create tank raidz2 label/disk{0,1,2,3,4} If you were to use glabel(8) on any other disk that has been setup to not use the generic label/* then the result of using glabel(8) would be to the same effect as writing to parts of your pool and destroying the data that is already on it causing the situation that you see here. To say the least... choose one or the other but not both. Regards, - -- jhell -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJNRaajAAoJEJBXh4mJ2FR+UncH+gPJKgUxWnHy2QUuBNAilaSF r4cd/3uWXXw139jZIcQ0BruwyI+iDUxP06b8MPSU1xFWq0TGPQ+ieq9HiX5q47cD KOb+KSeosumXe9AWzSUDr9i0lgNtZmVfihveDb4CN2eAVGp16WbKCSOsVw53RV2z nZD9rzd9Tn+rJT3+Tzf69hGfuP94KWhWQ1Zmx/oNzsgUmy37uM/ijmmCWIAHpsOo EeLDxZNizaHFkWJ+6mXH0peNGdnRk6Zrsix1L0mlA936XKfOpO+lkSNR3CERZKXy 0GVQvy8Ag2moUwP3abyuTWnjFU034nBla6FUXrXBRu6yrs78jgqEHbuFgiRRbo0= =zU4p -----END PGP SIGNATURE-----