From rhooper@slinky.toybox.ca  Wed Jan 15 07:42:48 2003
Return-Path: <rhooper@slinky.toybox.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6924C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jan 2003 07:42:48 -0800 (PST)
Received: from slinky.toybox.ca (CPE014110200038.cpe.net.cable.rogers.com [24.103.253.88])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0176543F6D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jan 2003 07:42:47 -0800 (PST)
	(envelope-from rhooper@slinky.toybox.ca)
Received: from slinky.toybox.ca (smmsp@localhost.toybox.ca [127.0.0.1])
	by slinky.toybox.ca (8.12.6/8.12.6) with ESMTP id h0FFgeYN003058
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jan 2003 10:42:40 -0500 (EST)
	(envelope-from rhooper@slinky.toybox.ca)
Received: (from root@localhost)
	by slinky.toybox.ca (8.12.6/8.12.6/Submit) id h0FFgdjI003057;
	Wed, 15 Jan 2003 10:42:39 -0500 (EST)
Message-Id: <200301151542.h0FFgdjI003057@slinky.toybox.ca>
Date: Wed, 15 Jan 2003 10:42:39 -0500 (EST)
From: Roy Hooper <rhooper@slinky.toybox.ca>
Reply-To: Roy Hooper <rhooper@slinky.toybox.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: large filesystems may cause infinite panic loop
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47105
>Category:       kern
>Synopsis:       large filesystems may cause infinite panic loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 15 07:50:01 PST 2003
>Closed-Date:    Thu Feb 27 21:05:43 PST 2003
>Last-Modified:  Thu Feb 27 21:05:43 PST 2003
>Originator:     Roy Hooper
>Release:        FreeBSD 5.0-RC i386
>Organization:
>Environment:
System: FreeBSD slinky.toybox.ca 5.0-RC FreeBSD 5.0-RC #2: Thu Jan 9 14:47:14 EST 2003 root@slinky.toybox.ca:/usr/src/sys/i386/compile/TOYBOX2 i386

Filesystem  1K-blocks     Used    Avail Capacity iused    ifree %iused  Mounted on
/dev/ad0s1a    128990   117532     1140    99%    3587    12667   22%   /
devfs               1        1        0   100%       0        0  100%   /dev
/dev/ad0s1f    257998     8318   229042     4%      37    32473    0%   /tmp
/dev/ad0s1g  12777510  7267820  4487490    62%  396091  1207491   25%   /usr
/dev/ad0s1e    257998    65068   172292    27%    4428    28082   14%   /var
procfs              4        4        0   100%       1        0  100%   /proc
/dev/ad2s1a 115396956 40978004 65187196    39%  915926 13509672    6%   /backup


>Description:
	After creating a snapshot with 'mount -u -o snapshot /backup/snapshots/snap1 /backup', and running ls on the directory, both the mount and ls hung and were in "D" state in ps.  Issuing a reboot request failed -- the system stayed up -- as did ctrl-alt-delete.  I had to resort to a poweroff.  When the system came back up, the background fsck began and the system came up.  Eventually the system paniced and rebooted, but came back up.  After the 2nd panic during background fsck, the system stopped rebooting and needed a manual fsck to repair the disk.
	This is slightly different than my experience with RC2 where making a snapshot on the same large filesystem would cause a panick and reboot, as opposed to a hang.

	I have never successfully had the large filesystem (/dev/ad2s1a) finish a snapshot -- the mount process is always hung.  The background fsck also never exits (it always eventually panics).

	Unfortunately the machine is headless, so I missed the panic messages.

>How-To-Repeat:
	create a snapshot on a large filesystem.
>Fix:
	Don't use snapshots and set background_fsck="NO" in /etc/rc.conf	

>Release-Note:
>Audit-Trail:

From: Attila Nagy <bra@fsn.hu>
To: Roy Hooper <rhooper@slinky.toybox.ca>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/47105: large filesystems may cause infinite panic loop
Date: Wed, 15 Jan 2003 18:26:42 +0100 (CET)

 Hello,
 
 > >Description:
 > 	After creating a snapshot with 'mount -u -o snapshot /backup/snapshots/snap1 /backup', and running ls on the directory, both the mount and ls hung and were in "D" state in ps.  Issuing a reboot request failed -- the system stayed up -- as did ctrl-alt-delete.  I had to resort to a poweroff.  When the system came back up, the background fsck began and the system came up.  Eventually the system paniced and rebooted, but came back up.  After the 2nd panic during background fsck, the system stopped rebootin g and needed a manual fsck to repair the disk.
 > 	This is slightly different than my experience with RC2 where making a snapshot on the same large filesystem would cause a panick and reboot, as opposed to a hang.
 > 	I have never successfully had the large filesystem (/dev/ad2s1a) finish a snapshot -- the mount process is always hung.  The background fsck also never exits (it always eventually panics).
 > 	Unfortunately the machine is headless, so I missed the panic messages.
 I've had the same on my server. It has an 1.2 TB filesystem and it hangs
 during the background fsck. (I don't think it starts it, maybe it is the
 snapshot)
 
 There are no panic messages. You can switch virtual consoles, but nothing
 more. The machine responds to ICMP echo requests.
 
 > >Fix:
 > 	Don't use snapshots and set background_fsck="NO" in /etc/rc.conf
 Which is quite sad, because fsck'ing a big filesystem takes very-very long
 time...
 
 ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]----------
 Attila Nagy					e-mail: Attila.Nagy@fsn.hu
 Free Software Network (FSN.HU)		  phone @work: +361 210 1415 (194)
 						cell.: +3630 306 6758

From: Attila Nagy <bra@fsn.hu>
To: freebsd-gnats-submit@FreeBSD.org, rhooper@slinky.toybox.ca
Cc:  
Subject: Re: kern/47105: large filesystems may cause infinite panic loop
Date: Wed, 26 Feb 2003 18:57:15 +0100 (CET)

 Hello,
 
 This problem seems to be solved now (at least on my machine), thanks to
 Kirk McKusick in CURRENT as of 26. february.
 
 Roy, could you please try to update to see whether your problem still
 exists or not?
 
 If there is no feedback, I think this PR could be closed.
 
 ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]----------
 Attila Nagy					e-mail: Attila.Nagy@fsn.hu
 Free Software Network (FSN.HU)		  phone @work: +361 210 1415 (194)
 						cell.: +3630 306 6758

From: "Roy Hooper" <rhooper@toybox.ca>
To: <freebsd-gnats-submit@FreeBSD.org>, <rhooper@slinky.toybox.ca>
Cc:  
Subject: Re: kern/47105: large filesystems may cause infinite panic loop
Date: Thu, 27 Feb 2003 23:25:05 -0500

 This problem appears to be resolved in -STABLE.  Snapshots no longer hang
 and background fsck finishes without a panic.
 
 Thanks Kirk.
 
 --
 Roy Hooper  (rhooper@toybox.ca)
 

From: "Roy Hooper" <rhooper@toybox.ca>
To: "Roy Hooper" <rhooper@toybox.ca>,
	<freebsd-gnats-submit@FreeBSD.org>, <rhooper@slinky.toybox.ca>
Cc:  
Subject: Re: kern/47105: large filesystems may cause infinite panic loop
Date: Thu, 27 Feb 2003 23:27:19 -0500

 > 
 > This problem appears to be resolved in -STABLE.  Snapshots no longer hang
 > and background fsck finishes without a panic.
 
 I mean -CURRENT.
 
 --
 Roy Hooper  (rhooper@toybox.ca)
 
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Feb 27 21:05:14 PST 2003 
State-Changed-Why:  
Fixed in -CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47105 
>Unformatted:
