From owner-freebsd-stable@FreeBSD.ORG Fri Sep 1 15:16:12 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7752E16A4E0; Fri, 1 Sep 2006 15:16:12 +0000 (UTC) (envelope-from kramer@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE88143D4C; Fri, 1 Sep 2006 15:16:09 +0000 (GMT) (envelope-from kramer@centtech.com) Received: from [10.177.171.221] (roddick.centtech.com [10.177.171.221]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k81FG9e3044438; Fri, 1 Sep 2006 10:16:09 -0500 (CDT) (envelope-from kramer@centtech.com) Message-ID: <44F84EB9.6000006@centtech.com> Date: Fri, 01 Sep 2006 10:16:09 -0500 From: Kevin Kramer User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <44F7320E.6040608@centtech.com> <20060901111615.GB1819@garage.freebsd.pl> <44F831B7.90807@centtech.com> <20060901145939.GC1819@garage.freebsd.pl> In-Reply-To: <20060901145939.GC1819@garage.freebsd.pl> X-Virus-Scanned: ClamAV 0.87.1/1784/Fri Sep 1 07:00:05 2006 on mh2.centtech.com X-Virus-Status: Clean Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@FreeBSD.org Subject: Re: gjournal questions X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kramer@centtech.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 15:16:12 -0000 I've already redone the whole thing. here are the steps i took umount /scr09 umount /scr10 gjournal stop da2.journal gjournal stop da4.journal ** had not done this on the first attempt newfs /dev/da1 newfs /dev/da3 gjournal label -v /dev/da2 /dev/da1 gjournal label -v /dev/da4 /dev/da3 newfs -J -L scr09 /dev/da2.journal newfs -J -L scr10 /dev/da4.journal mount /scr09 mount /scr10 it is looking much better so far. before, i was getting this in the debug (only on /scr10) and my mountd process was always the top process Sep 1 00:00:11 donkey kernel: fsync: giving up on dirty Sep 1 00:00:11 donkey kernel: 0xc9ee1bb0: tag devfs, type VCHR Sep 1 00:00:11 donkey kernel: usecount 1, writecount 0, refcount 198 mountedher e 0xc9ebfb00 Sep 1 00:00:11 donkey kernel: flags () Sep 1 00:00:11 donkey kernel: v_object 0xc9fbb528 ref 0 pages 5933 Sep 1 00:00:11 donkey kernel: lock type devfs: EXCL (count 1) by thread 0xc9bd4 180 (pid 38) Sep 1 00:00:11 donkey kernel: dev ufs/scr10 Sep 1 00:00:11 donkey kernel: GEOM_JOURNAL: Cannot suspend file system /scr10 ( error=35). but now i'm getting clean journal writes, while i'm rsyncing the data back. i don't have any real clients yet so i'll enable that after the rsync is completed. Sep 1 10:00:36 donkey kernel: GEOM_JOURNAL[1]: Starting copy of journal. Sep 1 10:00:36 donkey kernel: GEOM_JOURNAL[1]: Switch time of da4: 0.002327s Sep 1 10:00:36 donkey kernel: GEOM_JOURNAL[1]: Entire switch time: 0.011674s Sep 1 10:00:36 donkey kernel: GEOM_JOURNAL[1]: Data has been copied. Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Msync time of /scr09: 0.000008s Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Sync time of /scr09: 0.000031s Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Suspend time of /scr09: 0.000094 s Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Starting copy of journal. Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Switch time of da2: 0.002425s Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Entire switch time: 0.003477s Sep 1 10:00:46 donkey kernel: GEOM_JOURNAL[1]: Data has been copied. Sep 1 10:00:56 donkey kernel: GEOM_JOURNAL[1]: Entire switch time: 0.000014s Sep 1 10:01:06 donkey kernel: GEOM_JOURNAL[1]: Entire switch time: 0.000014s Sep 1 10:01:16 donkey kernel: GEOM_JOURNAL[1]: Msync time of /scr10: 0.002388s Sep 1 10:01:16 donkey kernel: GEOM_JOURNAL[1]: Sync time of /scr10: 0.002748s Sep 1 10:01:16 donkey kernel: GEOM_JOURNAL[1]: Suspend time of /scr10: 0.002751 s ------------------------------ Kevin Kramer Sr. Systems Administrator 512.418.5725 Centaur Technology, Inc. www.centtech.com Pawel Jakub Dawidek wrote the following on 09/01/06 09:59: > On Fri, Sep 01, 2006 at 08:12:23AM -0500, Kevin Kramer wrote: > >> we left the journaling devices raw. do i need to newfs the journaling device? is eveything else ok besides the newfs of the daX.journal? >> > > Journal switch times are very long, but this could be caused by SU. > Could you try to disable SU and turn on gjournal? > Without "renewfsing" you could do on an unmounted file system: > > # tunefs -n disable -J enable /dev/daX.journal > >