All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: "Dr. Tilmann Bubeck" <t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org>
Cc: "J. Bruce Fields" <bfields@fieldses.org>, linux-nfs@vger.kernel.org
Subject: Re: Is order for "exportfs -r" and rpc.mountd important?
Date: Thu, 04 Dec 2008 08:59:31 -0500	[thread overview]
Message-ID: <4937E243.1080608@RedHat.com> (raw)
In-Reply-To: <200812041025.02563.t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org>

Dr. Tilmann Bubeck wrote:
> Sorry for the confusion. Maybe I can make myself clearer this time:
> 
> Fedora 10 uses the following simplified /etc/init.d/nfs to start the NFS 
> server:
> 
>   1. exportfs -r
>   2. modprobe nfsd
>      This also does (see modprobe.conf.dist): mount -t nfsd nfsd /proc/fs/nfsd
> 
> As you can read in "man exportfs" there are two modes: "legacy" and "new"
> depending on the existance of /proc/fs/nfsd. The above version of
> /etc/init.d/nfs executes exportfs in lecacy mode and therefore feeds
> /var/lib/nfs/rmtab into the kernel. After "mount -t nfsd ..." the "new" mode 
> is used. In this case the previously fed rmtab is disturbing because we have 
> a mix of "legacy" and "new" mode. This results in the problem that some NFS 
> clients are receiving a "Stale NFS file handle" after a server reboot.
> 
> I tracked the problem down to the kernel based export table which is found 
> in /proc/fs/nfsd/exports. The above start order results in:
> 
> root# cat /proc/fs/nfsd/exports  | grep dhcp-10-1-1-209
> /home   
> dhcp-10-1-1-209.loef.reinform.de(rw,root_squash,sync,wdelay,no_subtree_check,fsid=1510)
> 
> which results from "exportfs -r" reading rmtab and feeding into the kernel.
> 
> By changing the start order to:
> 
>   1. modprobe nfsd
>      This also does (see modprobe.conf.dist): mount -t nfsd nfsd /proc/fs/nfsd
>   2. exportfs -r
> 
> then "exportfs -r" starts in "new" mode and does not feed the rmtab into the 
> kernel. 
This has been fixed in both Fedora 9 and 10... The update nfs-utils version
should be hitting a yum repository near you soon... 

steved.

  parent reply	other threads:[~2008-12-04 14:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-28 14:41 Is order for "exportfs -r" and rpc.mountd important? Dr. Tilmann Bubeck
     [not found] ` <200811281541.39272.t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org>
2008-11-28 16:05   ` Dr. Tilmann Bubeck
     [not found]     ` <200811281705.45087.t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org>
2008-12-03 17:25       ` J. Bruce Fields
2008-12-04  9:25         ` Dr. Tilmann Bubeck
     [not found]           ` <200812041025.02563.t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org>
2008-12-04 13:59             ` Steve Dickson [this message]
     [not found]               ` <4937E243.1080608-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2008-12-04 14:16                 ` Dr. Tilmann Bubeck
     [not found]                   ` <200812041516.14114.t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org>
2008-12-04 14:35                     ` J. Bruce Fields
2008-12-04 14:43                       ` Steve Dickson
2008-12-05  6:05                   ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4937E243.1080608@RedHat.com \
    --to=steved@redhat.com \
    --cc=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=t.bubeck-dx1aEnP5Zukb1SvskN2V4Q@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.