From owner-freebsd-geom@FreeBSD.ORG Thu Aug 28 14:43:59 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 872B71065684 for ; Thu, 28 Aug 2008 14:43:59 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.236]) by mx1.freebsd.org (Postfix) with ESMTP id 5DB728FC1B for ; Thu, 28 Aug 2008 14:43:59 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so547120rvf.43 for ; Thu, 28 Aug 2008 07:43:58 -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=y49Ol0OvVkr5vG6tLX/UIpSAPsLOzHe3QPbDuQNgisI=; b=tkw6vHyPlrKiOFPkffT4EzlaWwhNDWXR6HT6srm6ibHT/ZJhlnokg2KtHYEN0s8g1Y YLQkl7WOXT+HHe9SB60U5iPp2JLOfKp9uopxAzvj7BQNpXzG91BKWH0cpbL8dpiJYqKl U+YomWwpgtfR8vUK/gLY99ziMXEn0ZOZMf4n4= 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=sslZIcu/NV1O+u2pK8ZLbZ6IfJD7rgxBe/QBLSt0slDsQcYiHaHYwL0M8O/60lj0hn 34qDTNu/0exbJam22xg2vbz07Dl3yjyTmtfQHq8mjBDJSuRdp6jgeGGK6tjxRmTuvUFV /iSBala5ETwOczbRW2Ez8ReMp2u5MBzvbhf2M= Received: by 10.140.177.15 with SMTP id z15mr797975rve.52.1219934638465; Thu, 28 Aug 2008 07:43:58 -0700 (PDT) Received: by 10.140.207.5 with HTTP; Thu, 28 Aug 2008 07:43:58 -0700 (PDT) Message-ID: <2b5f066d0808280743g69c32d1rd30aee0ca276125@mail.gmail.com> Date: Thu, 28 Aug 2008 10:43:58 -0400 From: "Brian McCann" To: "Ivan Voras" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2b5f066d0808280705y3454c188v768efe46b388864b@mail.gmail.com> Cc: freebsd-questions@freebsd.org, freebsd-geom@freebsd.org Subject: Re: gjournal & fsck 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: Thu, 28 Aug 2008 14:43:59 -0000 On Thu, Aug 28, 2008 at 10:34 AM, Ivan Voras wrote: > Brian McCann wrote: >> Hi all. I'm having some problems with several servers I've built >> recently (7.0-RELEASE) that are using gjournal. I had two reboot a >> few days ago (un-related to FreeBSD problems I think)...but when they >> came back up, the file systems wouldn't mount since they were not >> clean. Now, I understand that UFS knows nothing about the fact that >> it's journaled, and the journaling knows nothing about UFS...but it's > > Actually UFS needs to know about gjournal for just this purpose. There's > a special option to newfs that tells the file system to be aware of > gjournal and it should request fscks. > >> my understanding that by using gjournal, you should really never need >> to fsck a file system. However, the only way to get them to mount is >> by doing the fsck. Is there something else I should be doing instead >> of fsck? > > man 8 tunefs > Yes...I apologize...I did that when I built the file system with "newfs -J". Here's the tunefs -p output for one of the file systems: # tunefs -p /dev/da2.journal tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) disabled tunefs: gjournal: (-J) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) I'm concerned about this because the ones I've had problems with recently are 1.1TB arrays...I've got 2 8.6TB arrays that are journaled as well...and if I ever have to fsck them...that could take 1/2 the day... Any other thoughts? Thanks for the help so far Ivan! --Brian