[ZFS] How to change the geom label for a disk without losing
data in the ZFS pool?
jhell
jhell at DataIX.net
Sun Jan 30 18:24:55 UTC 2011
-----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-----
More information about the freebsd-geom
mailing list