From owner-freebsd-fs@freebsd.org Mon Sep 21 18:38:24 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 25326A05B26 for ; Mon, 21 Sep 2015 18:38:24 +0000 (UTC) (envelope-from chris@stankevitz.com) Received: from mango.stankevitz.com (mango.stankevitz.com [208.79.93.194]) by mx1.freebsd.org (Postfix) with ESMTP id 14E211D2E for ; Mon, 21 Sep 2015 18:38:23 +0000 (UTC) (envelope-from chris@stankevitz.com) Received: from Chriss-MacBook-Pro.local (209-203-101-124.static.twtelecom.net [209.203.101.124]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mango.stankevitz.com (Postfix) with ESMTPSA id D9F401072 for ; Mon, 21 Sep 2015 11:28:47 -0700 (PDT) Message-ID: <56004C68.4020904@stankevitz.com> Date: Mon, 21 Sep 2015 11:28:56 -0700 From: Chris Stankevitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: FreeBSD Filesystems Subject: Name/label/id metadata: how do I make it go away Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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:38:24 -0000 Hi, For those wanting to teach me to fish: In the context of naming a disk that has no partitions, can you explain to 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 with 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 metadata but I do not know how the labels were added. Presumably when I understand 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