From owner-freebsd-hackers Sat Nov 16 12:46:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17B8037B401 for ; Sat, 16 Nov 2002 12:46:17 -0800 (PST) Received: from natto.numachi.com (natto.numachi.com [198.175.254.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 2115243E42 for ; Sat, 16 Nov 2002 12:46:16 -0800 (PST) (envelope-from reichert@numachi.com) Received: (qmail 42248 invoked by uid 1001); 16 Nov 2002 20:46:04 -0000 Date: Sat, 16 Nov 2002 15:46:04 -0500 From: Brian Reichert To: hackers@freebsd.org Subject: NFS exports under 4.7-RELEASE Message-ID: <20021116154604.U4871@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I hope I'm completely misunderstanding the docs for exports(5) and kin, but here goes: The short form: I have two filesystems I want to export. They're both listed in /etc/exports. The first will be exported just fine, the second yields complaints from mountd about the device being busy. Changing the order of the entries in /etc/exports yields the same symptoms; first one works, second one doesn't. Long form: This is a stock install of 4.7-RELEASE. I have two filesystems. From fstab: /dev/ar0s1f /annex ufs rw 2 2 /dev/ar0s1e /pub ufs rw 2 2 And they are locally mounted upon a reboot: # mount /dev/ad0s1a on / (ufs, local) /dev/ad0s1e on /usr (ufs, local, soft-updates) procfs on /proc (procfs, local) /dev/ar0s1f on /annex (ufs, local, soft-updates) /dev/ar0s1e on /pub (ufs, local, soft-updates) I want to export them thusly: # cat /etc/exports /pub -alldirs -webnfs /annex -alldirs -webnfs If I restart mountd, I see these errors in /var/log/messages: Nov 16 14:58:07 mirror mountd[51794]: could not remount /annex: Device busy Nov 16 14:58:07 mirror mountd[51794]: bad exports list line /annex -alldirs -webnfs The error about /annex being busy is a crock. I can umount, etc. with impunity: # fstat -f /annex USER CMD PID FD MOUNT INUM MODE SZ|DV R/W # umount /annex # mount /annex And, if I put /annex before /pub in exports, I can export /annex, and suddenly /pub is 'busy'. :/ So - is there some subtle bug at play here (if, so I'll open a PR), or have I failed to read/understand some pertinent documentation? Docs state that the two entries need to be on different 'devices', and I assume that they mean 'partitions', and not 'disks'... I'd appreciate any feedback... -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message