From owner-freebsd-fs@FreeBSD.ORG Wed Oct 15 00:44:20 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBAEB16A4BF; Wed, 15 Oct 2003 00:44:20 -0700 (PDT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DD0F43F93; Wed, 15 Oct 2003 00:44:18 -0700 (PDT) (envelope-from vova@sw.ru) Received: from localhost ([127.0.0.1]) by vbook.fbsd.ru with esmtp (Exim 4.24; FreeBSD 5.1) id 1A9gMU-0000NI-6S; Wed, 15 Oct 2003 11:46:26 +0400 From: "Vladimir B. Grebenschikov" To: "current@freebsd.org" Content-Type: text/plain Organization: SWsoft Inc. Message-Id: <1066203984.1271.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 15 Oct 2003 11:46:25 +0400 Content-Transfer-Encoding: 7bit cc: freebsd-fs@freebsd.org Subject: fsck_ufs -B lockup any writes on filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 07:44:21 -0000 Hi After unclean shutdown, system boots and work properly. After some time any processes triing to write was blocked in suspfs state. fsck_ufs process was blocked in suspwt state. Killing blocked processes does not helps. # ps alx | fgrep fsck_ufs 0 917 736 0 75 0 676 268 suspwt D ?? 0:00.91 fsck_ufs -p -B /dev/ad0s3f # strace -p 917 mount(0x80af3d3, 0x80cb44c, 0x1211000, 0xbfbffcc0^C ^C # ps alx | fgrep suspfs 0 559 1 0 75 0 7076 1588 suspfs Is ?? 0:01.92 /usr/local/sbin/cupsd 207 611 609 0 75 0 8832 2396 suspfs I ?? 0:00.11 /usr/X11R6/bin/gdm-binary 207 836 1 0 75 0 18000 9108 suspfs I ?? 0:02.33 /usr/X11R6/libexec/stickynotes_applet 207 865 1 2 75 0 55932 41028 suspfs I ?? 1:59.49 evolution-1.4 207 867 1 0 75 0 32296 16000 suspfs I ?? 0:22.15 /usr/X11R6/share/opera/bin/opera --bi 207 942 1 0 75 0 4120 2068 suspfs I p0- 0:00.04 licq I can cure situation only be running fsck -y in single-user mode. PR: kern/58060 -- Vladimir B. Grebenschikov SWsoft Inc. From owner-freebsd-fs@FreeBSD.ORG Wed Oct 15 06:31:49 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42F8516A4C0; Wed, 15 Oct 2003 06:31:49 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8487243FB1; Wed, 15 Oct 2003 06:31:45 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id h9FDV8Mg052962; Wed, 15 Oct 2003 09:31:12 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h9FDV7tR052959; Wed, 15 Oct 2003 09:31:07 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 15 Oct 2003 09:31:07 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Vladimir B. Grebenschikov" In-Reply-To: <1066203984.1271.27.camel@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-fs@freebsd.org cc: "current@freebsd.org" Subject: Re: fsck_ufs -B lockup any writes on filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 13:31:49 -0000 On Wed, 15 Oct 2003, Vladimir B. Grebenschikov wrote: > After unclean shutdown, system boots and work properly. After some time > any processes triing to write was blocked in suspfs state. fsck_ufs > process was blocked in suspwt state. I reported an identical set of symptoms over the weekend to Kirk and Jeff, and a fix was committed as src/sys/kerne/vfs_bio.c:1.412. A missing write lock release in buffer cache locking work would leave the disk suspended for writes, and the result is a file system deadlock just as you describe. Could you check and see which version of vfs_bio.c you're running with -- if it's the earlier version, try updating? If it's the newer version, please let me know. Here's the commit message: Date: Mon, 13 Oct 2003 17:38:35 -0700 (PDT) From: Jeff Roberson To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_bio.c jeff 2003/10/13 17:38:35 PDT FreeBSD src repository Modified files: sys/kern vfs_bio.c Log: - Add a mising vn_finished_write() Pointy hat: jeff Found by: robert Obtained from: kirk Revision Changes Path 1.412 +1 -0 src/sys/kern/vfs_bio.c > > Killing blocked processes does not helps. > > # ps alx | fgrep fsck_ufs > 0 917 736 0 75 0 676 268 suspwt D ?? 0:00.91 > fsck_ufs -p -B /dev/ad0s3f > > # strace -p 917 > mount(0x80af3d3, 0x80cb44c, 0x1211000, 0xbfbffcc0^C > ^C > > # ps alx | fgrep suspfs > 0 559 1 0 75 0 7076 1588 suspfs Is ?? 0:01.92 > /usr/local/sbin/cupsd > 207 611 609 0 75 0 8832 2396 suspfs I ?? 0:00.11 > /usr/X11R6/bin/gdm-binary > 207 836 1 0 75 0 18000 9108 suspfs I ?? 0:02.33 > /usr/X11R6/libexec/stickynotes_applet > 207 865 1 2 75 0 55932 41028 suspfs I ?? 1:59.49 > evolution-1.4 > 207 867 1 0 75 0 32296 16000 suspfs I ?? 0:22.15 > /usr/X11R6/share/opera/bin/opera --bi > 207 942 1 0 75 0 4120 2068 suspfs I p0- 0:00.04 licq > > I can cure situation only be running fsck -y in single-user mode. > > PR: kern/58060 > > -- > Vladimir B. Grebenschikov > SWsoft Inc. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-fs@FreeBSD.ORG Wed Oct 15 08:06:18 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FD0016A4B3; Wed, 15 Oct 2003 08:06:18 -0700 (PDT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D82CD43F85; Wed, 15 Oct 2003 08:06:16 -0700 (PDT) (envelope-from vova@sw.ru) Received: from localhost ([127.0.0.1]) by vbook.fbsd.ru with esmtp (Exim 4.24; FreeBSD 5.1) id 1A9nGE-0000LQ-8h; Wed, 15 Oct 2003 19:08:26 +0400 From: "Vladimir B. Grebenschikov" To: Robert Watson In-Reply-To: References: Content-Type: text/plain; charset=koi8-r Organization: SWsoft Inc. Message-Id: <1066230502.849.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 15 Oct 2003 19:08:24 +0400 Content-Transfer-Encoding: quoted-printable cc: freebsd-fs@freebsd.org cc: "current@freebsd.org" Subject: Re: fsck_ufs -B lockup any writes on filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 15:06:18 -0000 =F7 =D3=D2, 15.10.2003, =D7 17:31, Robert Watson =D0=C9=DB=C5=D4: > On Wed, 15 Oct 2003, Vladimir B. Grebenschikov wrote: >=20 > > After unclean shutdown, system boots and work properly. After some time > > any processes triing to write was blocked in suspfs state. fsck_ufs > > process was blocked in suspwt state.=20 >=20 > I reported an identical set of symptoms over the weekend to Kirk and Jeff= , > and a fix was committed as src/sys/kerne/vfs_bio.c:1.412. A missing writ= e > lock release in buffer cache locking work would leave the disk suspended > for writes, and the result is a file system deadlock just as you describe= .=20 > Could you check and see which version of vfs_bio.c you're running with -- > if it's the earlier version, try updating? If it's the newer version, > please let me know. Here's the commit message:=20 >=20 > Date: Mon, 13 Oct 2003 17:38:35 -0700 (PDT) > From: Jeff Roberson > To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org > Subject: cvs commit: src/sys/kern vfs_bio.c > =20 > jeff 2003/10/13 17:38:35 PDT > =20 > FreeBSD src repository > =20 > Modified files: > sys/kern vfs_bio.c > Log: > - Add a mising vn_finished_write() > =20 > Pointy hat: jeff > Found by: robert > Obtained from: kirk > =20 > Revision Changes Path > 1.412 +1 -0 src/sys/kern/vfs_bio.c I have old version 1.409. % cvs status sys/kern/vfs_bio.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D File: vfs_bio.c Status: Needs Patch Working revision: 1.409 Mon Oct 6 11:35:04 2003 Repository revision: 1.412 /ext/ncvs/src/sys/kern/vfs_bio.c,v I will upgrade. --=20 Vladimir B. Grebenschikov SWsoft Inc. From owner-freebsd-fs@FreeBSD.ORG Wed Oct 15 13:33:11 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B00816A4BF for ; Wed, 15 Oct 2003 13:33:11 -0700 (PDT) Received: from smtp.noos.fr (nan-smtp-05.noos.net [212.198.2.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A51F43FE0 for ; Wed, 15 Oct 2003 13:33:08 -0700 (PDT) (envelope-from root@noos.fr) Received: (qmail 68790076 invoked by uid 0); 15 Oct 2003 20:32:48 -0000 Received: (qmail 69100918 invoked by uid 0); 15 Oct 2003 13:34:13 -0000 Received: from unknown (HELO mx2.freebsd.org) ([216.136.204.119]) (envelope-sender ) by 212.198.2.74 (qmail-ldap-1.03) with SMTP for ; 15 Oct 2003 13:34:13 -0000 Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id CCC6D56332; Wed, 15 Oct 2003 06:34:00 -0700 (PDT) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 216CC16A4D5; Wed, 15 Oct 2003 06:33:52 -0700 (PDT) Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42F8516A4C0; Wed, 15 Oct 2003 06:31:49 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8487243FB1; Wed, 15 Oct 2003 06:31:45 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id h9FDV8Mg052962; Wed, 15 Oct 2003 09:31:12 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h9FDV7tR052959; Wed, 15 Oct 2003 09:31:07 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 15 Oct 2003 09:31:07 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Vladimir B. Grebenschikov" In-Reply-To: <1066203984.1271.27.camel@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org cc: freebsd-fs@freebsd.org cc: "current@freebsd.org" Subject: Re: fsck_ufs -B lockup any writes on filesystem X-BeenThere: freebsd-fs@freebsd.org List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 20:33:11 -0000 On Wed, 15 Oct 2003, Vladimir B. Grebenschikov wrote: > After unclean shutdown, system boots and work properly. After some time > any processes triing to write was blocked in suspfs state. fsck_ufs > process was blocked in suspwt state. I reported an identical set of symptoms over the weekend to Kirk and Jeff, and a fix was committed as src/sys/kerne/vfs_bio.c:1.412. A missing write lock release in buffer cache locking work would leave the disk suspended for writes, and the result is a file system deadlock just as you describe. Could you check and see which version of vfs_bio.c you're running with -- if it's the earlier version, try updating? If it's the newer version, please let me know. Here's the commit message: Date: Mon, 13 Oct 2003 17:38:35 -0700 (PDT) From: Jeff Roberson To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_bio.c jeff 2003/10/13 17:38:35 PDT FreeBSD src repository Modified files: sys/kern vfs_bio.c Log: - Add a mising vn_finished_write() Pointy hat: jeff Found by: robert Obtained from: kirk Revision Changes Path 1.412 +1 -0 src/sys/kern/vfs_bio.c > > Killing blocked processes does not helps. > > # ps alx | fgrep fsck_ufs > 0 917 736 0 75 0 676 268 suspwt D ?? 0:00.91 > fsck_ufs -p -B /dev/ad0s3f > > # strace -p 917 > mount(0x80af3d3, 0x80cb44c, 0x1211000, 0xbfbffcc0^C > ^C > > # ps alx | fgrep suspfs > 0 559 1 0 75 0 7076 1588 suspfs Is ?? 0:01.92 > /usr/local/sbin/cupsd > 207 611 609 0 75 0 8832 2396 suspfs I ?? 0:00.11 > /usr/X11R6/bin/gdm-binary > 207 836 1 0 75 0 18000 9108 suspfs I ?? 0:02.33 > /usr/X11R6/libexec/stickynotes_applet > 207 865 1 2 75 0 55932 41028 suspfs I ?? 1:59.49 > evolution-1.4 > 207 867 1 0 75 0 32296 16000 suspfs I ?? 0:22.15 > /usr/X11R6/share/opera/bin/opera --bi > 207 942 1 0 75 0 4120 2068 suspfs I p0- 0:00.04 licq > > I can cure situation only be running fsck -y in single-user mode. > > PR: kern/58060 > > -- > Vladimir B. Grebenschikov > SWsoft Inc. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"