From owner-freebsd-stable@FreeBSD.ORG Sun Aug 3 12:35:57 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8718106564A for ; Sun, 3 Aug 2008 12:35:57 +0000 (UTC) (envelope-from ebutusov@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.177]) by mx1.freebsd.org (Postfix) with ESMTP id 2D6DE8FC16 for ; Sun, 3 Aug 2008 12:35:56 +0000 (UTC) (envelope-from ebutusov@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so3513976ika.3 for ; Sun, 03 Aug 2008 05:35:55 -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 :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hbNHbaRolC8G9Pkv8fFSGIeks8Cf9tN2P3sDxHfGlc8=; b=QNEeYAV01jOvZFl+MTNSr5mlTrH15C9qaHQUbSoNpAXtJXvy2CgkEhW3AdhS7GMPKh Kegou2eY8oTyLu2sW0Ey0dHsgV4/pQ27Ot1EuCC27CYSZ88mHu/V2Ip1U7QXlP4w5uvm IhcjaM/jeDm0diaDRd/M+G/eG/zcTxrxbhY1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=aC9l0Ic3N5QQ8xWmRDvPWhRbqTVMO2MfdaoVsImXkMc2gE8WXX9YTYlbsXoZ5/vZdE x/C8jl0sXmQAJRSbcZ4OmYH8BT7yU88sRGmqX/xJP3XegsS5Ofei8IjQnUO6bESizqLL nRecRhfjq83qbhXXUME8Qk/x8HfXVaeT5Cm1M= Received: by 10.210.44.1 with SMTP id r1mr896358ebr.11.1217766955883; Sun, 03 Aug 2008 05:35:55 -0700 (PDT) Received: from ?192.168.0.51? ( [195.136.67.137]) by mx.google.com with ESMTPS id i7sm10937983nfh.8.2008.08.03.05.35.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Aug 2008 05:35:54 -0700 (PDT) Message-ID: <4895A61F.8030502@gmail.com> Date: Sun, 03 Aug 2008 14:35:43 +0200 From: Eugene Butusov User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: David N References: <4894CE6D.2000204@gmail.com> <4d7dd86f0808030433l6cda06ccjba154d6f0cee7d0e@mail.gmail.com> In-Reply-To: <4d7dd86f0808030433l6cda06ccjba154d6f0cee7d0e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD-STABLE-LIST Subject: Re: 7-STABLE, gjournal and fsck. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 12:35:57 -0000 David N wrote: > 2008/8/3 Eugene Butusov : >> Hi, >> >> Recently I've decided to play with gjournal. Main reason was a promise of >> avoiding full fsck check after unclean shutdown. I've successfuly configured >> gjournal on existing filesystems (all UFS). And then it happened - my system >> had a power failure. After boot, it forced me to run fsck manualy. Nothing >> special, I did it before... But this time it failed on gjournaled disks. >> >> So, when I was dropped to the single-user shell, I tried: >> >> fsck /dev/ad4s1g.journal >> >> It said: >> >> CANNOT READ BLK: xxxx >> CONTINUE? [yn] >> >> I typed 'y' and nothing happened. Here is the log: >> >> -8<- >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal 4059706613: ad4s1g >> contains data. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal 4059706613: ad4s1g >> contains journal. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal ad4s1g clean. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal 188084099: ad6s1d >> contains data. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal 188084099: ad6s1d >> contains journal. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal ad6s1d clean. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal 2559963968: ad6s1e >> contains data. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal 2559963968: ad6s1e >> contains journal. >> Aug 2 19:13:43 matrix kernel: GEOM_JOURNAL: Journal ad6s1e clean. >> ... >> Aug 2 19:13:43 matrix kernel: ** /dev/ad4s1g.journal >> Aug 2 19:13:43 matrix kernel: >> Aug 2 19:13:43 matrix kernel: CANNOT READ BLK: 727112224 >> Aug 2 19:13:43 matrix kernel: CONTINUE? [yn] >> Aug 2 19:13:43 matrix kernel: >> Aug 2 19:13:43 matrix kernel: THE FOLLOWING DISK SECTORS COULD NOT BE READ: >> 727112224, 727112225, 727112226, 727112227, >> Aug 2 19:13:43 matrix kernel: /dev/ad4s1g.journal: CANNOT FIGURE OUT FILE >> SYSTEM PARTITION >> ->8- >> >> After ctrl+d the system tried to continue boot, and again threw me into >> shell because of the same reason: >> >> -8<- >> Aug 2 19:13:43 matrix kernel: >> WARNING: R/W mount of /home denied. Filesystem is not clean - run fsck >> Aug 2 19:13:43 matrix kernel: mount: >> ->8- >> >> Like I mentioned, only gjournaled filesystems failed to pass fsck. Other >> labels passed. I was in a hurry, because the machine acts as a local file >> server, and I was standing against the wall, because one of gjournaled disks >> was the share itself... >> >> What I did was mounting gjournaled partitions in ro mode (it warned me that >> they were not cleanly unmounted) and doing some backup. Then I removed >> gjournal (gjournal clear, tunefs -J disable) from journaled disks, ran fsck >> (few errors of type: PARTIALLY ALLOCATED INODE), and then I was able to turn >> on softupdates back and mount the fs in rw mode. I've double checked the >> disk's SMART results in case of hardware failure, but they were ok. >> >> My question is: what could cause such problem? Why only gjournaled fs are >> affected? Is there a solution? >> >> Best regards, >> -- >> _/_/ .. Eugene Butusov >> _/_/ ... www.devilka.info >> _/_/ .... ebutusov(at)gmail(dot)com >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >> > > Hi, > > Did you re-create your file systems? How did you create the journal? > > eg. newfs /dev/ad4s1g.journal ? > > or did you just enable journal on the partition? via tunefs? I did it this way: /dev/ad4s1g is my /home, an existing partition umount /home gjournal label -f /dev/ad4s1g tunefs -J enable -n disable /dev/ad4s1g.journal (added 'async' option to /etc/fstab for /home and changed entry to /dev/ad4s1g.journal) mount /home It worked until power failed... :) Best regards, -- _/_/ .. Eugene Butusov _/_/ ... www.devilka.info _/_/ .... ebutusov(at)gmail(dot)com