Date: Mon, 21 Sep 2015 11:58:43 -0700 From: Freddie Cash <fjwcash@gmail.com> To: Chris Stankevitz <chris@stankevitz.com> Cc: FreeBSD Filesystems <freebsd-fs@freebsd.org> Subject: Re: Name/label/id metadata: how do I make it go away Message-ID: <CAOjFWZ7y7pgr56bwX_v8_YQNJCXaGWZB%2BS8fcnEmvUBSW3m7tw@mail.gmail.com> In-Reply-To: <56004C68.4020904@stankevitz.com> References: <56004C68.4020904@stankevitz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 21, 2015 at 11:28 AM, Chris Stankevitz <chris@stankevitz.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ7y7pgr56bwX_v8_YQNJCXaGWZB%2BS8fcnEmvUBSW3m7tw>