Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2009 22:57:39 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        George Hartzell <hartzell@alerce.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ZFS and disappearing glabels
Message-ID:  <20091231215739.GA49850@slackbox.xs4all.nl>
In-Reply-To: <19261.3612.150477.365986@gargle.gargle.HOWL>
References:  <19261.3612.150477.365986@gargle.gargle.HOWL>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Thu, Dec 31, 2009 at 12:48:28PM -0800, George Hartzell wrote:
> 
> I've set up a system as described here.
> 
>   http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition
> 
> Using the 8.0 Release DVD and then csup'ing to RELENG_8 and
> rebuilding.
> 
> I set it up with a single drive, the only change that I made was that
> after creating ad10s1a I glabeled it as disk0, then added
> /dev/label/disk0 to the pool.
> 
> That worked great.
> 
> Then I added a second larger drive, giving it an MBR, a bsd label, and
> an s1a partition that I glabeled as disk1.  I attached that to the
> pool and it resilvered happily.
> 
> However, when I rebooted I found that the pool now consists of
> label/disk0 and ad12s1a.  I detached ad12s1a, relabeled it as disk1,
> and attached disk1 to the pool again.  It resilvered fine.  Running
> strings on /boot/zfs/zpool.cache shows /dev/label/disk0 and
> /dev/label/disk1.
 
How did you create the labels? See glabel(8) about the difference between the
"manual" and "automatic" method. Maybe you accidentally used the manual method
on the second disk?

Or it could be that the GEOM metadata is overwritten. This metadata is written
in the last sector, explaining the size difference you noticed. If the metadat
is overwritten, GEOM will not recognize it.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAks9HlMACgkQEnfvsMMhpyWBUACgrEOiwyfxaLdk5uN4k6T9irRI
Df8AnRz20p8Rpx+Ig+Y7ri1b0adNX1fL
=+gNV
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091231215739.GA49850>