Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?

Neil Brown
2010-08-26T21:43:46Z

On Thu, 26 Aug 2010 06:59:16 -0500
Peng Yu <pengyu.ut@gmail.com> wrote:

> On Wed, Aug 25, 2010 at 6:36 PM, Neil Brown <neilb@suse.de> wrote:
> > On Wed, 25 Aug 2010 15:02:14 -0500
> > Peng Yu <pengyu.ut@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I changed the value of RPCNFSDCOUNT in /etc/default/nfs-kernel-server
> >> (ubuntu). Do I need to restart the machine?
> >>
> >> Or I need to restart nfsd? If so, would you please let me know how to
> >> restart nfsd?
> >>
> >
> > Easiest thing to do is simply
> >
> >   rpc.nfsd $NUMBER
> >
> > it will change the number of running threads to match the number that you
> > give.
>
> This will change the number in /etc/default/nfs-kernel-server? Or it
> will not, meaning if I reboot machine, there will still be an old
> number of nfsd running?
>

Try it an see ???

No, it doesn't change any file. It just changes the number of running
threads.

If you want to change the number of threads at next reboot, change the file.
If you want to change the number of threads running now, run the command.
If you want to do both, do both.

NeilBrown