From: "Dr. Tilmann Bubeck" Subject: Re: Is order for "exportfs -r" and rpc.mountd important? Date: Fri, 28 Nov 2008 17:05:44 +0100 Message-ID: <200811281705.45087.t.bubeck@reinform.de> References: <200811281541.39272.t.bubeck@reinform.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" To: linux-nfs@vger.kernel.org Return-path: Received: from gw1.reinform.de ([82.141.45.9]:59684 "EHLO mail-out.dmz.loef.reinform.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751158AbYK1QVM (ORCPT ); Fri, 28 Nov 2008 11:21:12 -0500 Received: from postfix.loef.reinform.de (postfix.loef.reinform.de [10.1.1.39]) by mail-out.dmz.loef.reinform.de (Postfix) with ESMTP id 6A4F41485DF for ; Fri, 28 Nov 2008 17:21:10 +0100 (CET) Received: from mail.reinform.de (mail.reinform.de [82.141.45.14]) by postfix.loef.reinform.de (Postfix) with ESMTP id F063B1BC14 for ; Fri, 28 Nov 2008 17:21:09 +0100 (CET) Received: from loeffel.loef.reinform.de (loeffel.loef.reinform.de [10.1.1.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.reinform.de (Postfix) with ESMTPSA id 4E0E763728 for ; Fri, 28 Nov 2008 17:21:09 +0100 (CET) In-Reply-To: <200811281541.39272.t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: To be more precise: the order between "exportfs -r" and "modprobe nfsd" is important (and not "exportfs -r" and "rpc.mountd"). Am Freitag, 28. November 2008 15:41:38 schrieb Dr. Tilmann Bubeck: > According to manual page "exportfs -r" has two modes: legacy and new. > Fedora 10 seems to use the new mode and mounts /proc/fs/nfsd. > > But they use the following order in /etc/init.d/nfs: > exportfs -r > rpc.mountd > > This results in /proc/fs/nfsd/exports having all obsolete entries > from /var/lib/nfs/rmtab which causes a lot of trouble with stale NFS file > handles. This seems to be wrong according to "man exportfs" in new mode. > > If I change the order to > rpc.mountd > exportfs -r > > then everything is OK and /proc/fs/nfsd/exports only contains the info > from /etc/exports and not all stale clients. This seems to be correct > according to "man exportfs" in new mode. > > Questions: is this behaviour a bug or at least bad? Shouldn't exportfs > being changed, so that when it detects "new" mode it will never feed rmtab > into the kernel and rely upon rpc.mountd answering the kernels questions as > stated in "man exportfs"? > > If yes, then the order or the programs is irrelevant. > If not, should the order of the programs be reversed in Fedora? > > Thanks > Till -- +-------+-------------------------------------------------------------+ | | dr. tilmann bubeck reinform medien- und | | | informationstechnologie AG | | rein | fon : +49 (711) 7 82 76-52 loeffelstr. 40 | | form | fax : +49 (711) 7 82 76-46 70597 stuttgart / germany | | AG | cell.: +49 (172) 8 84 29 72 fon: +49 (711) 75 86 56-10 | | | email: t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org http://www.reinform.de | | +-------------------------------------------------------------+ | | pflichtangaben nach paragraph 80, AktG: | | | reinform medien- und informationstechnologie AG, stuttgart | | | handelsregister stuttgart, HRB 23001 | | | vorstand: dr. tilmann bubeck (vorsitz), dr. tommy kuhn | | | aufsichtsrat: frank stege (vorsitz) | +-------+-------------------------------------------------------------+