From owner-freebsd-geom@FreeBSD.ORG Fri Jun 23 08:22:39 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 BA78D16A492; Fri, 23 Jun 2006 08:22:39 +0000 (UTC) (envelope-from never@kurush.osdn.org.ua) Received: from kurush.osdn.org.ua (external.osdn.org.ua [212.40.34.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C06C43D46; Fri, 23 Jun 2006 08:22:22 +0000 (GMT) (envelope-from never@kurush.osdn.org.ua) Received: from kurush.osdn.org.ua (never@localhost [127.0.0.1]) by kurush.osdn.org.ua (8.12.11/8.12.11) with ESMTP id k5N8MAlM073999; Fri, 23 Jun 2006 11:22:11 +0300 (EEST) (envelope-from never@kurush.osdn.org.ua) Received: (from never@localhost) by kurush.osdn.org.ua (8.12.11/8.12.11/Submit) id k5N8M9vB073996; Fri, 23 Jun 2006 11:22:09 +0300 (EEST) (envelope-from never) Date: Fri, 23 Jun 2006 11:22:09 +0300 From: Alexandr Kovalenko To: Pawel Jakub Dawidek Message-ID: <20060623082209.GD13474@nevermind.kiev.ua> References: <20060619131101.GD1130@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060619131101.GD1130@garage.freebsd.pl> User-Agent: Mutt/1.5.4i 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: Fri, 23 Jun 2006 08:22:39 -0000 Hello, Pawel Jakub Dawidek! On Mon, Jun 19, 2006 at 03:11:01PM +0200, you wrote: > For the last few months I have been working on gjournal project. > To stop confusion right here, I want to note, that this project is not > related to gjournal project on which Ivan Voras was working on the > last SoC (2005). [dd] > Quick start: > > # gjournal label /dev/ad0 > # gjournal load > # newfs /dev/ad0.journal > # mount -o async,gjournal /dev/ad0.journal /mnt > (yes, with gjournal 'async' is safe) > > Now, after a power failure or system crash no fsck is needed (yay!). Is it safe to do so on existing filesystem (if I'm using 2nd partition for journal)? i.e.: $ grep ad0s1f /etc/fstab /dev/ad0s1f /usr ufs rw,noatime 2 2 $ grep ad0s1b /etc/fstab #/dev/ad0s1b none swap sw 0 0 # gjournal label ad0s1f ad0s1b # gjournal load # fsck -y /dev/ad0s1f.journal # sed -i -e 's|ad0s1f|ad0s1f.journal|' /etc/fstab # sed -i -e 's|noatime|noatime,async,gjournal|' /etc/fstab # mount /usr -- NEVE-RIPE, will build world for food Ukrainian FreeBSD User Group http://uafug.org.ua/