From owner-freebsd-questions@FreeBSD.ORG Mon Aug 2 00:20:08 2010 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 8EB3F1065670 for ; Mon, 2 Aug 2010 00:20:08 +0000 (UTC) (envelope-from aram.h@mgk.ro) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 31F738FC18 for ; Mon, 2 Aug 2010 00:20:07 +0000 (UTC) Received: by wyj26 with SMTP id 26so3378928wyj.13 for ; Sun, 01 Aug 2010 17:20:07 -0700 (PDT) Received: by 10.227.133.148 with SMTP id f20mr4349984wbt.35.1280707103365; Sun, 01 Aug 2010 16:58:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.139.227 with HTTP; Sun, 1 Aug 2010 16:58:03 -0700 (PDT) In-Reply-To: <4c53ef2f.bblzdu2k2iMBdNzW%perryh@pluto.rain.com> References: <4c53ef2f.bblzdu2k2iMBdNzW%perryh@pluto.rain.com> From: =?UTF-8?B?QXJhbSBIxIN2xINybmVhbnU=?= Date: Mon, 2 Aug 2010 02:58:03 +0300 Message-ID: To: perryh@pluto.rain.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Installing a system to use both gjournal and gmirror 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: Mon, 02 Aug 2010 00:20:08 -0000 On Sat, Jul 31, 2010 at 12:38 PM, wrote: > I've read the Handbook sections on gmirror and gjournal, and the > gjournal-desktop article, and I'm still unclear on how to go about > setting up a configuration that uses both. I have GPT disks and do GEOM mirror for / plus GEOM stripe for everything else. Everything is using GEOM Journal and the filesystem is UFS2. excelsior% gmirror status Name Status Components mirror/rootmirror0 COMPLETE ad4p2 ad6p2 excelsior% clear % excelsior% gpart show =3D> 34 625142381 ad4 GPT (298G) 34 128 1 freebsd-boot (64K) 162 4194304 2 freebsd-ufs (2.0G) 4194466 4194304 3 freebsd-swap (2.0G) 8388770 6291456 4 freebsd-ufs (3.0G) 14680226 20971520 5 freebsd-ufs (10G) 35651746 10485760 6 freebsd-ufs (5.0G) 46137506 579004909 7 freebsd-ufs (276G) =3D> 34 625142381 ad6 GPT (298G) 34 128 1 freebsd-boot (64K) 162 4194304 2 freebsd-ufs (2.0G) 4194466 4194304 3 freebsd-swap (2.0G) 8388770 6291456 4 freebsd-ufs (3.0G) 14680226 20971520 5 freebsd-ufs (10G) 35651746 10485760 6 freebsd-ufs (5.0G) 46137506 579004909 7 freebsd-ufs (276G) excelsior% gmirror status Name Status Components mirror/rootmirror0 COMPLETE ad4p2 ad6p2 excelsior% gstripe status Name Status Components stripe/varstripe0 UP ad4p4 ad6p4 stripe/usrstripe0 UP ad4p5 ad6p5 stripe/usrobjstripe0 UP ad4p6 ad6p6 stripe/tankstripe0 UP ad4p7 ad6p7 excelsior% gjournal status Name Status Components mirror/rootmirror0.journal N/A mirror/rootmirror0 stripe/varstripe0.journal N/A stripe/varstripe0 stripe/usrstripe0.journal N/A stripe/usrstripe0 stripe/usrobjstripe0.journal N/A stripe/usrobjstripe0 stripe/tankstripe0.journal N/A stripe/tankstripe0 excelsior% mount /dev/mirror/rootmirror0.journal on / (ufs, local, gjournal) devfs on /dev (devfs, local, multilabel) /dev/stripe/usrstripe0.journal on /usr (ufs, local, gjournal) /dev/stripe/varstripe0.journal on /var (ufs, local, gjournal) /dev/stripe/usrobjstripe0.journal on /usr/obj (ufs, local, gjournal) /dev/stripe/tankstripe0.journal on /tank (ufs, local, gjournal) excelsior% cat /boot/loader.conf geom_mirror_load=3D"YES" geom_stripe_load=3D"YES" geom_journal_load=3D"YES" vfs.root.mountfrom=3D"ufs:/dev/mirror/rootmirror0.journal" vfs.root.mountfrom.options=3D"rw" excelsior% cat /etc/fstab #Device MountPoint FsType Options Dump Pas= s# /dev/gpt/swap0 none swap sw 0 0 /dev/gpt/swap1 none swap sw 0 0 /dev/mirror/rootmirror0.journal / ufs rw 1 1 /dev/stripe/usrstripe0.journal /usr ufs rw 2 2 /dev/stripe/varstripe0.journal /var ufs rw 2 2 /dev/stripe/usrobjstripe0.journal /usr/obj ufs rw 2 2 /dev/stripe/tankstripe0.journal /tank ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 excelsior% ls /dev/mirror rootmirror0 rootmirror0.journal excelsior% ls /dev/stripe tankstripe0 usrobjstripe0.journal varstripe0 tankstripe0.journal usrstripe0 varstripe0.journal usrobjstripe0 usrstripe0.journal excelsior% --=20 Aram H=C4=83v=C4=83rneanu