From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 14:57:24 2008 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 224A3106567F for ; Thu, 28 Aug 2008 14:57:24 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id ED31C8FC32 for ; Thu, 28 Aug 2008 14:57:23 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so553995rvf.43 for ; Thu, 28 Aug 2008 07:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ju8kdotsCmn96Z+MD0p0fBaHRQLZvKZy1EcA4tZasKU=; b=qjFOE7C9MmsoDqOOSyv7fAhIDZPNInHQmO7HDZuTptbblEMdVgfKt5+wj/Ib8ecOKN kXkAUR8UGpPjQ/5ixmGN1ZXDNVTOV5rk3gotAGtXJkxkoh3+aus+DOH82w8uzfhEx30X np63wRiCsYcH6tCxOheqqKdpyqjH9y+AmFOm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wB4CmP8nepV9Z6y0cuSRSh8x1eZuzVLfwe96vVD3nI+5PT580jzpGfEms8oNP2z+Lt HsK1jFpInXQbEjq4IAx8wNpVTmFYpeKd1+9o8ZFfWyFRWKJ8tM0/qihvNXdQ4xt2xDH/ RIs+qn89ovPs2E2em11qI45Az1y3zKZqlXxEo= Received: by 10.140.201.4 with SMTP id y4mr803857rvf.86.1219935443377; Thu, 28 Aug 2008 07:57:23 -0700 (PDT) Received: by 10.140.207.5 with HTTP; Thu, 28 Aug 2008 07:57:23 -0700 (PDT) Message-ID: <2b5f066d0808280757h6caeffa8h13d45dd668434156@mail.gmail.com> Date: Thu, 28 Aug 2008 10:57:23 -0400 From: "Brian McCann" To: "Manolis Kiagias" In-Reply-To: <48B6B9D0.8060302@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2b5f066d0808280705y3454c188v768efe46b388864b@mail.gmail.com> <48B6B9D0.8060302@gmail.com> Cc: freebsd-questions , freebsd-geom@freebsd.org Subject: Re: gjournal & fsck 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: Thu, 28 Aug 2008 14:57:24 -0000 > > You may wish to have a look at this article: > > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/gjournal-desktop Great article...thanks. Bookmarked for future use too! > In particular, you should make sure you use tunefs to enable Journaling and > disable soft update on the journaled filesystems, i.e.: > > tunefs -J enable -n disable /dev/ad0s1f.journal I was mistaken...I did this when I made the file system...I just posted a message to the thread showing the output of tunefs -p, but soft-updates are off, and journaling does show as on. > > Mount them using the async option: > > /dev/ad0s1f.journal /usr ufs rw,async 2 2 Here's my fstab line: /dev/da1.journal /files6/array2 ufs rw,async,nosuid,noatime 2 2 > > Note that the pass # still indicates the filesystem should be checked. While > I was writing the article, I was trying several scenarios were I had the > pass # set to 0, thinking that a gjournaled filesystem would not need fsck > at all. I would then press the reset button. In most cases, the system would > refuse to mount them. However with the pass # set, the fsck would finish > almost immediately, since the actual consistency check takes place when the > gjournal module is loaded (you will get a "journal consistent" after a bad > reboot) and before fstab is even parsed. All fsck does in this case is > simply confirm to the system it is a clean volume. > > In short, leaving the pass # to something that would cause an fsck is the > safe way to go. The fsck will be almost instant anyway. > > The file system is about 1.1TB, and I've got 2 of them that are journaled on this particular server. One is currently empty, and fsck's in about 10-15 mins, while the other is 31% used, and takes about 45 mins. Thanks for your help thus far! --Brian