From owner-freebsd-geom@FreeBSD.ORG Tue Jun 20 08:39:17 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 379CC16A492; Tue, 20 Jun 2006 08:39:17 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D5543D5C; Tue, 20 Jun 2006 08:39:15 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C469051814; Tue, 20 Jun 2006 10:39:13 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id F252A51307; Tue, 20 Jun 2006 10:39:06 +0200 (CEST) Date: Tue, 20 Jun 2006 10:36:33 +0200 From: Pawel Jakub Dawidek To: Niki Denev Message-ID: <20060620083632.GB6235@garage.freebsd.pl> References: <20060619131101.GD1130@garage.freebsd.pl> <4496EDB2.5040706@cytexbg.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: <4496EDB2.5040706@cytexbg.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: Journaling UFS with gjournal. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 08:39:17 -0000 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 19, 2006 at 09:32:18PM +0300, Niki Denev wrote: +> I wonder if it's possible to use gjournal on +> existing file system with the journal on a vnode/(swap?) backed md(4) de= vice? +> (i want to test on a existing installation without free unpartitioned sp= ace) Depend on what do you want to test. If you just want to look around, swap-backed md(4) device for journal should be fine. If you want to perform some crash tests, you may want to turn off the swap and use its provider for journal directly (without md(4)), so it will be available after a reboot. You can configure gjournal on an existing file system, but, as always, the last sector will be used for metadata. For example, you have your file system on ad0s1d and swap on ad0s1b. You can try to configure gjournal this way: # swapoff /dev/ad0s1b # umount /dev/ad0s1d # gjournal label ad0s1d ad0s1b Your swap should have at least 2GB if your file system will be heavy loaded. Be warned that this will overwrite the last sector on ad0s1d, which should be safe, but you never know. +> And if it is possible, how can i do this for the root filesystem? i'll n= eed the md(4) +> device before mounting of the root fs which seems hard/impossible? +> What's going to happen if my root mount is gjournal labeled and has gjou= rnal option in +> fstab but at boot time the journal GEOM provider does not exist? I forgot to mention this in my initial mail. This is not yet possible to use gjournal for the root file system. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEl7OQForvXbEpPzQRAjDnAJ4zBXaKq7QO6h5tshc4Uc+Z+GeLXwCgjzMw 1lTAcJbB+zfgqC8VzF4DwOg= =Qkqy -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl--