From owner-freebsd-current@FreeBSD.ORG Sun Jun 28 11:09:13 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89C14106564A; Sun, 28 Jun 2009 11:09:13 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id D31A48FC14; Sun, 28 Jun 2009 11:09:12 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-162-173.lns11.adl2.internode.on.net [121.45.162.173]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n5SB9AFE022770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 28 Jun 2009 20:39:11 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Aisaka Taiga Date: Sun, 28 Jun 2009 20:38:47 +0930 User-Agent: KMail/1.9.10 References: <4A4517BE.9040504@FreeBSD.org> <200906281758.34283.doconnor@gsoft.com.au> <4A473F14.70009@haruhiism.net> In-Reply-To: <4A473F14.70009@haruhiism.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart42974049.KmEQ2YtpWy"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200906282038.58968.doconnor@gsoft.com.au> X-Spam-Score: -1.326 () AWL,BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Alexander Motin , freebsd-current@freebsd.org, scottl@freebsd.org Subject: Re: RFC: ATA to CAM integration patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2009 11:09:13 -0000 --nextPart42974049.KmEQ2YtpWy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 28 Jun 2009, Aisaka Taiga wrote: > Daniel O'Connor wrote: > > Louis' glabel solution works for me so far :) > > I've experienced many weird things while trying to use glabel for > swap partitions. I wonder where does GEOM store the label, because > doing > > glabel create swap /dev/ad0s1b > > successfully adds a label, it shows up on boot: > > GEOM_LABEL: Label for provider /dev/ad0s1a is label/swap > > however, after a while the label is lost. Maybe the metadata is > stored in the last sector of the swap space, and the swap data > overwrites it, I don't know. I think you want glabel label swap /dev/ad0s1b 'create' is the manual method which won't store any metadata - 'label'=20 stores it in the last sector of the provider. > And the system wants me to enter the root FS name manually because > ad0 is locked by GEOM and ad0s1a can't be mounted therefore. > GEOM_LABEL finds the label before GEOM_MIRROR is started properly. > > I've experienced this behaviour on both 7.2 and, I think, 8.0 too > (May snapshot). > I know we don't really need labels on a gmirror because a gmirror is > a 'label' in itself and will always appear as /dev/mirror/device-name > no matter how we swap HDDs and no matter in which order they are > probed, however this is still a bit strange. I think if you use label you'd be OK (but you'd need to newfs because=20 the created provider is 1 sector smaller). The other alternative is to=20 use /dev/ufsid/xxx which won't require a newfs as your existing FS's=20 have an ID already (presuming you are using GENERIC). =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart42974049.KmEQ2YtpWy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iD4DBQBKR09K5ZPcIHs/zowRAmBrAJiqUvwg55NTaVOvnsPnEb7yVa1TAJ9lsNLE s7rxQJRo4mV6iCzv3xvZmQ== =rrPh -----END PGP SIGNATURE----- --nextPart42974049.KmEQ2YtpWy--