From owner-freebsd-fs@FreeBSD.ORG Sun Jan 29 08:50:58 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF9F8106566B for ; Sun, 29 Jan 2012 08:50:58 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6F46B8FC17 for ; Sun, 29 Jan 2012 08:50:58 +0000 (UTC) Received: by iaeo4 with SMTP id o4so6593749iae.13 for ; Sun, 29 Jan 2012 00:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=sI3rt8kntm4s2OiGt+KcTwKZ9eO8uHNYj3EqPwJVsOI=; b=DQSFG8ryiqm4fVzWtm8Xp0cze8eanBhXUBlRhjDHrquHCF8tzF+fN/xbgey1DQMJl2 VDYKsGpQ07ayTBRECMADPHxd95X9I4QqFnoZkUGBFn02AQ9dbE0Qy7rFyLr5v376PZ/z 1EmtuAEFYKg6g6P/JUMnynBAwulds57ZtciHI= Received: by 10.50.178.70 with SMTP id cw6mr16966747igc.4.1327827057690; Sun, 29 Jan 2012 00:50:57 -0800 (PST) Received: from DataIX.net ([99.19.42.1]) by mx.google.com with ESMTPS id ba5sm7061533igb.6.2012.01.29.00.50.54 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jan 2012 00:50:56 -0800 (PST) Sender: Jason Hellenthal Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q0T8op2o051804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Jan 2012 03:50:51 -0500 (EST) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q0T8okP2051667; Sun, 29 Jan 2012 03:50:46 -0500 (EST) (envelope-from jhell@DataIX.net) Date: Sun, 29 Jan 2012 03:50:46 -0500 From: Jason Hellenthal To: Randy Bush Message-ID: <20120129085045.GA26210@DataIX.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: Cc: FreeBSD FS Subject: Re: trying to whack a glabel for a zfs mirror X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2012 08:50:58 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 29, 2012 at 04:03:35PM +0900, Randy Bush wrote: > as usual, i am a bit clueless here. >=20 > NAME STATE READ WRITE CKSUM > tank DEGRADED 0 0 0 > mirror DEGRADED 0 0 0 > label/m00-d01 REMOVED 0 0 0 > label/m00-d00 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > label/m01-d00 ONLINE 0 0 0 > label/m01-d01c ONLINE 0 0 0 > mirror ONLINE 0 0 0 > label/m02-d00c ONLINE 0 0 0 > label/m02-d01c ONLINE 0 0 0 > mirror ONLINE 0 0 0 > label/m03-d00 ONLINE 0 0 0 > label/m03-d01c ONLINE 0 0 0 > mirror ONLINE 0 0 0 > label/m04-d00 ONLINE 0 0 0 > label/m04-d01 ONLINE 0 0 0 > mirror ONLINE 0 0 0 > label/m05-d01 ONLINE 0 0 0 > label/m05-d00 ONLINE 0 0 0 >=20 > Geom name: da2s3 > Providers: > 1. Name: label/m00-d01 > Mediasize: 1965957073408 (1.8T) > Sectorsize: 512 > Mode: r0w0e0 > secoffset: 0 > offset: 0 > seclength: 3839759909 > length: 1965957073408 > index: 0 > Consumers: > 1. Name: da2s3 > Mediasize: 1965957073920 (1.8T) > Sectorsize: 512 > Mode: r0w0e0 >=20 > # zpool attach tank label/m00-d00 label/m00-d01 > cannot use '/dev/label/m00-d01': must be a GEOM provider or regular file >=20 > # glabel label m00-d01 /dev/da2s3 > glabel: Can't store metadata on /dev/da2s3: Invalid argument. >=20 > # sysctl kern.geom.debugflags=3D17 > kern.geom.debugflags: 0 -> 17 >=20 > # dd if=3D/dev/zero of=3D/dev/da2s3 > dd: /dev/da2s3: Invalid argument >=20 > randy Once again the use of glabel(8) that causes and can cause loss of data with= in ZFS disks... DO NOT USE GLABEL! it is not a solution that you are lookin= g for and in the long run you will shoot yourself in the foot for using it. What you are seeing is glabel blatently refusing to write meta-data to part= s of the disk where something may already exist. This is a good thing. In turn use something like gpart(8) to adjust the gpt label and/or set your= disks up properly. This is not the same thing as glabel(8) which in turn i= s a hack and not a solution and severely needs to be shot into outerspace f= rom world. --=20 ;s =3D; --opJtzjQTFsWo+cga Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJPJQhlAAoJEJBXh4mJ2FR+NioIAI8SFSdoGJ6Y5Q/tfh9s1c+g TiEcBX9O0mr977m/MJa91WQHscVlMI37vCrA81lVBnJmAA0sWhem+r8rgqm+K2Cb L/hm/bc61iN5wtRrYkuXRrGHyFr5m+xn5LHhovNZ043FilJi/P8oJH31cmx5kYL+ B/pNzN0jnxPxUMMkjE6rvJDOdkBWzEaa+xddER6Wqkb/adsubqN4fdKg3tHa0rxK e70s9D5zviaPxMvd226e5pfBMi7Jyl7gNo2xjHvUEsBgFOO/OxvULWTt8LZgaDaO 2xmfiEYoWTkk5OiCYBp51kN0Vt37LgSHN074fdBBQYn1jS90c2I1lm4t7WuieNU= =sZQM -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--