From owner-freebsd-fs@FreeBSD.ORG Sun Apr 18 23:54:32 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F223D106566B for ; Sun, 18 Apr 2010 23:54:31 +0000 (UTC) (envelope-from areilly@bigpond.net.au) Received: from nschwmtas02p.mx.bigpond.com (nschwmtas02p.mx.bigpond.com [61.9.189.140]) by mx1.freebsd.org (Postfix) with ESMTP id 807558FC08 for ; Sun, 18 Apr 2010 23:54:30 +0000 (UTC) Received: from nschwotgx01p.mx.bigpond.com ([124.188.161.100]) by nschwmtas02p.mx.bigpond.com (InterMail vM.7.05.02.08 201-2174-114-118-20080528) with ESMTP id <20100418235429.QIQB28300.nschwmtas02p.mx.bigpond.com@nschwotgx01p.mx.bigpond.com> for ; Sun, 18 Apr 2010 23:54:29 +0000 Received: from duncan.reilly.home ([124.188.161.100]) by nschwotgx01p.mx.bigpond.com with ESMTP id <20100418235428.HHAA3673.nschwotgx01p.mx.bigpond.com@duncan.reilly.home> for ; Sun, 18 Apr 2010 23:54:28 +0000 Date: Mon, 19 Apr 2010 09:54:28 +1000 From: Andrew Reilly To: freebsd-fs@freebsd.org Message-ID: <20100418235428.GC4620@duncan.reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Authentication-Info: Submitted using SMTP AUTH LOGIN at nschwotgx01p.mx.bigpond.com from [124.188.161.100] using ID areilly@bigpond.net.au at Sun, 18 Apr 2010 23:54:28 +0000 X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150201.4BCB9BB5.0047,ss=1,fgs=0 X-SIH-MSG-ID: qR4zFtL/TAD0zmQs0WyzOwJxyArnqyN48Z4QX81loRIGTUDCp8DeQ9rANv1RsM6kxD9EJhiGNGQkaa7tTY3Rs9mK Subject: gjournal: what is it good for? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2010 23:54:32 -0000 So, I've had quite a bit of yoyo-mode over the last week, caused by the journal overflow panic that I reported in the previous message, and I've noticed that my gjournalled file systems do not (ever) mark themselves clean after the journal is replayed, and so still require fsck, which takes just as long as it ever did. I assume that the journals have been replayed, because after these crashes I've had to sit through screen-fulls of "Root mount waiting for: GJOURNAL" messages, even though my root partition is not gjournalled. Is that assumption correct? Even after that waiting (which has been on the order of ten minutes or so), an attempt to mount one of my journalled partitions results in a message like: Warning: R/W mount of /usr denied. Filesystem is not clean - run fsck. mount: /dev/mirror/gm0e.journal: operation not permitted. So: if a manual fsck is required before mounting a journalled partition after a crash, what purpose does the journalling serve? Clearly I'm doing something wrong here: I've read no other messages suggesting that gjournal is totally useless, but what? All of my gjournal partitions have been set up according to the examples in the man page, and the newfs operations that followed all had the -J option, also per the man page. They're all mounted async, per the man page. Here's my current df state: Filesystem Size Used Avail Capacity Mounted on /dev/mirror/gm0a 2.1G 550M 1.4G 29% / devfs 1.0k 1.0k 0B 100% /dev /dev/mirror/gm0d 10G 248M 9.3G 3% /var /dev/mirror/gm0e.journal 951G 296G 578G 34% /usr /dev/ad10s1.journal 726G 226G 442G 34% /nb procfs 4.1k 4.1k 0B 100% /proc /dev/md0 65M 35k 60M 0% /tmp /dev/ad8s1a.journal 1.5T 692G 644G 52% /mnt /dev/da0s1a 969G 296G 595G 33% /backup and my /etc/fstab: # Device Mountpoint FStype Options Dump Pass# /dev/ad4s1b none swap sw 0 0 /dev/ad6s1b none swap sw 0 0 /dev/mirror/gm0a / ufs rw 1 1 /dev/mirror/gm0d /var ufs rw 1 2 /dev/mirror/gm0e.journal /usr ufs rw,async 1 3 /dev/ad10s1.journal /nb ufs rw,async 0 2 /dev/ad8s1a.journal /mnt ufs rw,async,noauto 0 2 /dev/da0s1a /backup ufs rw,async,noauto 0 2 proc /proc procfs rw 0 0 #linprocfs /compat/linux/proc linprocfs rw 0 0 (/backup used to be on a journal too, but I removed that when I attempted to sort out the panic-on-dump problem.) Oh: I'm running 9-current as of this weekend. Cheers, -- Andrew