Date: Sun, 30 Jan 2011 12:57:45 -0500 From: jhell <jhell@DataIX.net> To: "Vladislav V. Prodan" <universite@ukr.net> Cc: freebsd-geom@freebsd.org Subject: Re: [ZFS] How to change the geom label for a disk without losing data in the ZFS pool? Message-ID: <alpine.BSF.2.00.1101301247500.34445@qvfongpu.qngnvk.ybpny> In-Reply-To: <4D44DF55.6010804@ukr.net> References: <4D3DF4B8.4050901@ukr.net> <4D44DF55.6010804@ukr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1101301247500.34445>