Date: Fri, 19 Feb 1999 14:46:53 +1300 From: Andrew McNaughton <andrew@squiz.co.nz> To: Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca> Cc: Ted Spradley <tsprad@set.spradley.tmi.net>, Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>, Matthew Dillon <dillon@apollo.backplane.com>, freebsd-stable@FreeBSD.ORG Subject: Re: no dirty bufs panics any more... Message-ID: <199902190146.BAA24710@aniwa.sky> In-Reply-To: Your message of "Thu, 18 Feb 1999 15:50:25 -0800." <199902182350.PAA15994@passer.osg.gov.bc.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902190146.BAA24710>
