From owner-freebsd-stable@FreeBSD.ORG Thu Dec 31 21:57:44 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CE5A1065670 for ; Thu, 31 Dec 2009 21:57:44 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id DF3368FC08 for ; Thu, 31 Dec 2009 21:57:43 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id nBVLvdZG096784; Thu, 31 Dec 2009 22:57:40 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 98111BAAB; Thu, 31 Dec 2009 22:57:39 +0100 (CET) Date: Thu, 31 Dec 2009 22:57:39 +0100 From: Roland Smith To: George Hartzell Message-ID: <20091231215739.GA49850@slackbox.xs4all.nl> References: <19261.3612.150477.365986@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <19261.3612.150477.365986@gargle.gargle.HOWL> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org Subject: Re: ZFS and disappearing glabels X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 21:57:44 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 31, 2009 at 12:48:28PM -0800, George Hartzell wrote: >=20 > I've set up a system as described here. >=20 > http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition >=20 > Using the 8.0 Release DVD and then csup'ing to RELENG_8 and > rebuilding. >=20 > 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. >=20 > That worked great. >=20 > 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. >=20 > 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. =20 How did you create the labels? See glabel(8) about the difference between t= he "manual" and "automatic" method. Maybe you accidentally used the manual met= hod on the second disk? Or it could be that the GEOM metadata is overwritten. This metadata is writ= ten in the last sector, explaining the size difference you noticed. If the meta= dat is overwritten, GEOM will not recognize it. Roland --=20 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) --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAks9HlMACgkQEnfvsMMhpyWBUACgrEOiwyfxaLdk5uN4k6T9irRI Df8AnRz20p8Rpx+Ig+Y7ri1b0adNX1fL =+gNV -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--