From owner-freebsd-current@FreeBSD.ORG Wed Jun 6 16:07:01 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E92D16A469 for ; Wed, 6 Jun 2007 16:07:01 +0000 (UTC) (envelope-from niki@totalterror.net) Received: from office.suresupport.com (office.suresupport.com [213.145.98.15]) by mx1.freebsd.org (Postfix) with SMTP id BF96E13C45B for ; Wed, 6 Jun 2007 16:07:00 +0000 (UTC) (envelope-from niki@totalterror.net) Received: (qmail 84346 invoked by uid 1026); 6 Jun 2007 15:45:27 -0000 Received: from 213.145.98.14 by office.suresupport.com (envelope-from , uid 1004) with qmail-scanner-2.01 (clamdscan: 0.88.4/1784. Clear:RC:1(213.145.98.14):. Processed in 0.084189 secs); 06 Jun 2007 15:45:27 -0000 Received: from unknown (HELO ndenev.office.suresupport.com) (213.145.98.14) by office.suresupport.com with SMTP; 6 Jun 2007 15:45:26 -0000 Message-ID: <4666D696.4080908@totalterror.net> Date: Wed, 06 Jun 2007 18:45:26 +0300 From: Niki Denev User-Agent: Thunderbird 2.0.0.0 (X11/20070531) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 06 Jun 2007 18:23:50 +0000 Subject: gjournal + WARNING: R/W mount of / denied. Filesystem not clean - run fsck. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 16:07:01 -0000 Hello, I have the following problem when using gjournal for the root filesystem on my laptop (Sony VAIO PCG-U3) If there is a unclean shutdown (hard poweroff/ kernel panic) on the next boot the machine starts to load normally, i have messages as : GEOM_JOURNAL: Journal ad0s1a consistent. Trying to mount root from ufs:/dev/ad0s1a.journal WARNING: / was not properly dismounted Then the system continues with executing fsck in preen mode (fsck -p), which reports : /dev/ad0s1a.journal: FILESYSTEM CLEAN; SKIPPING CHECKS and fsck returns with zero, but after this when a read/write mount is tried the system barfs this : WARNING: R/W mount of / denied. Filesystem not clean - run fsck. mount: : Operation not permitted and i'm dropped in the shell. Now if i try fsck -p it gives me that the filesystem is clean as above, it still can't be mounted though. If i try "mount /" i get : WARNING: R/W mount of / denied. Filesystem not clean - run fsck. mount: /dev/ad0s1a.journal : Operation not permitted. Note the difference, when executed from the init scripts or by hand from the shell (the device name is omitted in the first) Now i can run "fsck /" which goes pretty fast on my 15G drive, reporting no problems but going thru all the phases (1,2,3,4,5), and after this the filesystem is apparently marked as clean, and if i CTRL-D the boot process continues normaly. So, my question is: Is this normal behaviour? Isn't fsck in preen mode supposed to mark the filesystem clean if it is journaled and the preen does not find problems? I think fsck should be handled automaticaly with journaled filesystems so no user intervention is required. My system is running the -current snapshot from 200705 (7.0-CURRENT-200705), and i'll try to update now to see if the problem still exists, but the machine is pretty slow, so this would take a while, and i haven't noticed changes in /etc/rc.d/root and /etc/rc.d/fsck that may have fixed this. P.S.: Excuse me if this is already fixed.