From owner-freebsd-fs@freebsd.org Mon Sep 21 18:58:44 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 569A7A069A3 for ; Mon, 21 Sep 2015 18:58:44 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E17419BD for ; Mon, 21 Sep 2015 18:58:44 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by oiww128 with SMTP id w128so63650922oiw.2 for ; Mon, 21 Sep 2015 11:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V+sXNzSrJnUlwzi61SL2yND6jiuxmtUd8F8SKhPB/C0=; b=zcXngnp/17BoQeE7LcKjQEYl6TDrAlZGWy4mACk2nMPNeiAVdRQXbtL1szo+7ieLak CNauH+RiXZXcoASio41thlfO/EDzyDtUmVn2rqnQxYxbGVv0WbI9yGFi55d6vC+XwtGP GxQAy1dR0BXhHub65FXKmCpCHlqkuRRXCjUkWiwIwek7QVgz1+1z+BwZKrc9HWSSzy3A RkFvfyUhi8hjGQ7YHKNiVGS/b+XmVqUYwi5BcUBN6w6/Z+49AjgXNyDtK1EqgDOiScuK HKaSUSZSyUbHQJE9NWZZv1Qlx8qnPmsZiv3Wue8hLCP6pRpxASDQqxauCUzb/gYWYhA7 GFFw== MIME-Version: 1.0 X-Received: by 10.202.228.210 with SMTP id b201mr9684586oih.100.1442861923374; Mon, 21 Sep 2015 11:58:43 -0700 (PDT) Received: by 10.76.81.100 with HTTP; Mon, 21 Sep 2015 11:58:43 -0700 (PDT) In-Reply-To: <56004C68.4020904@stankevitz.com> References: <56004C68.4020904@stankevitz.com> Date: Mon, 21 Sep 2015 11:58:43 -0700 Message-ID: Subject: Re: Name/label/id metadata: how do I make it go away From: Freddie Cash To: Chris Stankevitz Cc: FreeBSD Filesystems Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2015 18:58:44 -0000 On Mon, Sep 21, 2015 at 11:28 AM, Chris Stankevitz wrote: > Hi, > > > For those wanting to teach me to fish: > > In the context of naming a disk that has no partitions, can you explain t= o > me the difference among these terms: > - gpt label > - gpt id > - glabel > - gpart > - /dev/diskid/* > - disk_ident > - geom > - bsdlabel > > For those wanting to give me a fish: > > I have a zfs pool of "entire disks". "zpool status" shows some disks wit= h > their daX name (which I prefer) and some with a hideously ugly name such = as > DISK-%20%20%20%20%20-WD-WMC4NOH1ASDF > > I can make the hideously ugly names temporarily go away with: > > zpool export foo > glabel stop diskid/DISK-%20%20%20%20%20-WD-WMC4NOH1ASDF > zpool import foo > > However I cannot make them permanently go away: > zpool export foo > glabel clear da6 > > Can't clear metadata on da6: Invalid argument. > > In a prior life these drives were in a FreeNAS setup which presumably > added the labels. I did not erase the labels before I recommissioned the > drives in my new FreeBSD setup. I'm happy to use dd to erase the metadat= a > but I do not know how the labels were added. Presumably when I understan= d > that I will know which blocks need to be zero-ed out. I need to > "surgically" dd to avoid data loss from my zfs disks. I have backups.... > actually the problem pool is a backup pool. > > Thank you, > > Chris > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > =E2=80=8BAdd the following to /boot/loader.conf to make the diskid/* labels disappear forever: =E2=80=8Bkern.geom.label.gptid.enable=3D"0" # Disable the auto-generated GP= T UUIDs for disks kern.geom.label.ufsid.enable=3D"0" # Disable the auto-generated UFS UUIDs f= or filesystems --=20 Freddie Cash fjwcash@gmail.com