From owner-freebsd-questions@FreeBSD.ORG Tue Oct 13 00:29:42 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AB1B106568D for ; Tue, 13 Oct 2009 00:29:42 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by mx1.freebsd.org (Postfix) with ESMTP id C6BE38FC17 for ; Tue, 13 Oct 2009 00:29:41 +0000 (UTC) Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091013002923.UJHA27507.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Tue, 13 Oct 2009 01:29:23 +0100 Received: from catflap.slightlystrange.org ([82.21.107.64]) by aamtaout02-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20091013002923.YBPO21638.aamtaout02-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Tue, 13 Oct 2009 01:29:23 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 1001) id 6B47A64A3; Tue, 13 Oct 2009 01:29:20 +0100 (BST) Date: Tue, 13 Oct 2009 01:29:20 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20091013002919.GB12688@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20091012211339.GA12688@torus.slightlystrange.org> <4AD3A8EE.8020708@otenet.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline In-Reply-To: <4AD3A8EE.8020708@otenet.gr> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 8.0-RC1 sparc64 X-Cloudmark-Analysis: v=1.0 c=1 a=dC1Ldo5XeyQA:10 a=ehNlctqhnw0A:10 a=Y3hoo58EmDaJEhHKEsEA:9 a=2espcyFpuelIsSPf4gANM-VKCOMA:4 a=feicr6T9y-zhkO8PYgQA:9 a=AG3BxxMyLYjPU1y6mL46OlJ5Sy8A:4 Subject: Re: gmirror, gjournal and glabel - which order? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 00:29:42 -0000 --XF85m9dhOBO43t/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 13, 2009 at 01:08:46AM +0300, Manolis Kiagias wrote: > Daniel Bye wrote: > > Hi all, > > > > I'm having a hard time trying to work out which order I should set up > > gmirror, glabel and gjournal on a new system. I want to journal my > > /home partition, label all the partitions for ease of reference, and > > use gmirror to save me in the event a disk goes bad. I am struggling > > to fit the pieces together conceptually in my mind. I understand the > > processes involved in setting each part separately - my problem is in > > trying to build this up in the right order so that it all makes sense. > > > > So far, I have labelled the primary drive and set up the journal. I have > > edited fstab to reflect the labels and journalled file system on /home. > > If I now build a mirror, don't I need to alter fstab to mount that and > > not the stuff in /dev/label? In which case, I guess I need to build the > > mirror first, and then set up labels and journals? > > > > I'm going round and round in circles here and none of the stuff I've > > read on the web enlightens me... :-/ > > > > Any insights or suggestions would be taken as a great kindness! > > > > Dan > > > > =20 > When not mirroring, I first create the journals and then label the > resulting adxxxx.journal devices > In case you are doing a gmirror device, you would not really need the > separate label step - the gm device name won't change and gmirror is not > affected if the device names of the individual disks change (the disks > are marked as part of a mirror and scanned at startup). > When you are creating the composite gmirror device you are effectively > labeling it anyway i.e. gmirror label gm0... > Now if you follow the usual tutorials found in the web you would be > using gm0 / gm1 but you actually name it any way you wish. > If you really need to label the separate gmirrored partitions, do it > after setting up the mirror. >=20 > Concerning the order of journals and mirroring, I create the journals > first, then mirror the result. This has always worked fine for me. Thanks much, Manoli. After posting, I came to more or less the same conclusion, but it's good to get confirmation from someone who clearly knows more about this stuff than I do! I'd still be interested to hear what others think/do. As ever, thanks for your time. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --XF85m9dhOBO43t/C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkrTyd8ACgkQixf5fBYiFmpd8ACgqhSJZL4dB2fh/Cdzl4n2iyAB Qr0An1KtduOYMCAim+XLkU3YuBXqsKfg =4ZEA -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C--