From owner-freebsd-bugs Tue Jan 29 11:20:34 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DAF5337B419 for ; Tue, 29 Jan 2002 11:20:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0TJK0I51787; Tue, 29 Jan 2002 11:20:00 -0800 (PST) (envelope-from gnats) Received: from btl.42.org (btl.42.org [194.246.250.193]) by hub.freebsd.org (Postfix) with ESMTP id 8910C37B400 for ; Tue, 29 Jan 2002 11:19:52 -0800 (PST) Received: (from sec@localhost) by btl.42.org (8.11.6/8.11.6) id g0TJJoX05949; Tue, 29 Jan 2002 20:19:50 +0100 (CET) (envelope-from sec) Message-Id: <200201291919.g0TJJoX05949@btl.42.org> Date: Tue, 29 Jan 2002 20:19:50 +0100 (CET) From: Stefan `Sec` Zehl Reply-To: Stefan `Sec` Zehl To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/34420: FreeBSD fails to unmount on shutdown Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34420 >Category: kern >Synopsis: FreeBSD fails to unmount on shutdown >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 29 11:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Stefan `Sec` Zehl >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD btl 4.5-STABLE FreeBSD 4.5-STABLE #17: Tue Jan 29 17:34:20 CET 2002 root@btl:/old/usr/obj/usr/src/sys/BTL i386 I have some nfs-mounts btl:~>mount /dev/da0s1a on / (ufs, local) /dev/da0s1f on /usr (ufs, local, soft-updates) /dev/da0s1e on /var (ufs, local) procfs on /proc (procfs, local) /dev/da1s1a on /old (ufs, local) /dev/da1s1f on /old/usr (ufs, local, soft-updates) /dev/da1s1e on /old/var (ufs, local) ice:/usr/home on /nfshome (nfs, nodev, nosuid) ice:/ftp on /ftp (nfs, nodev, nosuid) ice:/opt on /opt (nfs, nodev, nosuid) ice:/ftp/priv/mnt on /ftp/priv/mnt (nfs, nodev, nosuid) ice is my nfs server, which is a fairly recent FreeBSD-stable: FreeBSD 4.4-STABLE #9: Sat Sep 29 19:25:00 CEST 2001 >Description: In about 66% of the cases where i 'shutdown -[hrp] now' my system, it fails to sync all buffers and thus to cleanly unmount the filesystems. I have added options SHOW_BUSYBUFS # List buffers that prevent root unmount to my kernel config file which then gives the following message: 1: dev#da/0x20005, flags:20000000 blkno:148208, lblkno: 148208 0x20005 seems to be the device number, which points to btl:/dev>l |grep 20005 crw-r----- 1 root operator 13, 0x00020005 Mar 23 2000 da0s1f Which means that it is on /usr somewhere. The number of buffers vary (between 1 and 3 most of the time), and the blkno/lblkno varies, too (blkno is always == lblkno so far). fsck at bootup said: /dev/da0s1f: UNREF FILE I=16324 OWNER=sec MODE=100600 /dev/da0s1f: SIZE=296 MTIME=Jan 29 16:56 2002 (CLEARED) /dev/da0s1f: LINK COUNT DIR I=714350 OWNER=root MODE=41777 /dev/da0s1f: SIZE=1536 MTIME=Jan 29 19:25 2002 COUNT 12 SHOULD BE 11 (ADJUSTED) /dev/da0s1f: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED) /dev/da0s1f: SUMMARY INFORMATION BAD (SALVAGED) /dev/da0s1f: BLK(S) MISSING IN BIT MAPS (SALVAGED) /dev/da0s1f: 176081 files, 3413904 used, 461718 free (33686 frags, 53504 blocks, 0.9% fragmentation) Which points to /tmp as the source of my problem: btl:~>l -di /tmp 436 lrwxr-xr-x 1 root wheel 7 Mar 20 2000 /tmp@ -> usr/tmp btl:~>l -di /usr/tmp 714350 drwxrwxrwt 12 root wheel 1536 Jan 29 20:17 /usr/tmp I have no idea what to do next, to find out where the root of this problem is. If you need more information, I'd be happy to provide it. >How-To-Repeat: shutdown -h now >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message