From owner-freebsd-questions@FreeBSD.ORG Tue Oct 13 08:37:16 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 D92561065694 for ; Tue, 13 Oct 2009 08:37:16 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by mx1.freebsd.org (Postfix) with ESMTP id 3F2338FC1D for ; Tue, 13 Oct 2009 08:37:15 +0000 (UTC) Received: by bwz23 with SMTP id 23so2484205bwz.43 for ; Tue, 13 Oct 2009 01:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xP0LdvYqcmRsYwZXkF/vN3TdU0G7U/vOgQ4PY8xLgFE=; b=verQX7kkUboScnaaId1YEhz+2G2buqY4UyG0xRg/wwAxi0Iy+ZVmkJulrrvf+qAR21 Z2BubsjN+qBUEdHFSSwGlvDB6gM9U8FcPJ91A1KAnPCZduR9p8xiapTvzX8bSye338l7 CUfYi2DR+aYBlc2TESxzzj6nPWsXM0GTZFqjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nVReOZ6ZFRRk53w+S1V/9aDaS6tvz8+Wr664u6EMyU/DxpMcw53lEMM0nb7qoVPUeA awA4KCdVTXIJlggfuO44xycK3MkJJijWt8rsaMfv3opEX6iUs3Se9l77HHFDKeEPVOe/ uToQIqm3tVkPtX6nAuAnjP4GCpUZKNw0ZkRj0= MIME-Version: 1.0 Received: by 10.239.190.20 with SMTP id v20mr431003hbh.208.1255423034844; Tue, 13 Oct 2009 01:37:14 -0700 (PDT) In-Reply-To: <20091013002919.GB12688@torus.slightlystrange.org> References: <20091012211339.GA12688@torus.slightlystrange.org> <4AD3A8EE.8020708@otenet.gr> <20091013002919.GB12688@torus.slightlystrange.org> Date: Tue, 13 Oct 2009 09:37:14 +0100 Message-ID: From: krad To: Daniel Bye , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: gmirror, gjournal and glabel - which order? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2009 08:37:17 -0000 2009/10/13 Daniel Bye > 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 > > > > > > > > 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. > > > > 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 > > -- > Daniel Bye > _ > ASCII ribbon campaign ( ) > - against HTML, vCards and X > - proprietary attachments in e-mail / \ > I've always gmirrored 1st, then created the gjournal then newfs the journal device with the -L and -J flags to label it. I'm not sure if this is correct but ufs2 has hooks into gjournal, and if the journal class inst directly below the ufs layer these hooks might not work correctly.