From owner-freebsd-stable Thu Feb 18 17:49:40 1999 Delivered-To: freebsd-stable@freebsd.org Received: from aniwa.sky (p9-max8.wlg.ihug.co.nz [209.79.142.201]) by hub.freebsd.org (Postfix) with ESMTP id 3871E11BC3 for ; Thu, 18 Feb 1999 17:49:33 -0800 (PST) (envelope-from andrew@squiz.co.nz) Received: from aniwa.sky (localhost [127.0.0.1]) by aniwa.sky (8.9.1a/8.9.1) with ESMTP id BAA24710; Fri, 19 Feb 1999 01:46:53 GMT Message-Id: <199902190146.BAA24710@aniwa.sky> X-Mailer: exmh version 2.0.2 2/24/98 To: Cy Schubert - ITSD Open Systems Group Cc: Ted Spradley , Bjoern Fischer , Matthew Dillon , freebsd-stable@FreeBSD.ORG Subject: Re: no dirty bufs panics any more... In-reply-to: Your message of "Thu, 18 Feb 1999 15:50:25 -0800." <199902182350.PAA15994@passer.osg.gov.bc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Feb 1999 14:46:53 +1300 From: Andrew McNaughton Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > A quick and dirty circumvention might be to put the following in > rc.shutdown until the root cause of the panics can be found and > fixed. I use something similar to this to unmount NFS filesystems > to avoid a panic during 2.2 shutdown. > > # Quick and dirty fix for dirty buffer panic during shutdown > for I in `df -tmfs | awk 'NR > 1 {print $6}'`; do > for J in `fstat -f $I | awk 'NR > 1 {print $3}'`; do > kill $J > done > done > sleep 20 > for I in `df -tmfs | awk 'NR > 1 {print $6}'`; do > for J in `fstat -f $I | awk 'NR > 1 {print $3}'`; do > kill -9 $J > done > done > sleep 10 > umount -vatmfs || echo MFS umount failed. It appears that a kill -9 gets ignored if there's still files open on the mfs. Other than killing the process, how do you umount a manually started mfs? root@aniwa# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s2a 63567 27946 30536 48% / /dev/wd0s2e 47183 59 43350 0% /tmp /dev/wd0s2g 1985343 1760125 66391 96% /usr /dev/wd0s2f 98479 7395 83206 8% /var procfs 4 4 0 100% /proc mfs:24448 15007 625 13182 5% /home/andrew/test/mfs root@aniwa# umount /home/andrew/test/mfs umount: /usr/home/andrew/test/mfs: not currently mounted root@aniwa# umount mfs:24448 umount: /usr/src/usr.sbin/pwd_mkdb/mfs:24448: not currently mounted Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message