* Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
@ 2010-08-25 20:02 Peng Yu
2010-08-25 23:11 ` sfaibish
2010-08-25 23:36 ` Neil Brown
0 siblings, 2 replies; 9+ messages in thread
From: Peng Yu @ 2010-08-25 20:02 UTC (permalink / raw)
To: linux-nfs
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?
--
Regards,
Peng
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-25 20:02 Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited? Peng Yu
@ 2010-08-25 23:11 ` sfaibish
2010-08-25 23:36 ` Neil Brown
1 sibling, 0 replies; 9+ messages in thread
From: sfaibish @ 2010-08-25 23:11 UTC (permalink / raw)
To: Peng Yu, linux-nfs
On Wed, 25 Aug 2010 16:02:14 -0400, 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 service.
> restart nfsd?
Try this
/etc/init.d/nfs start
>
--
Best Regards
Sorin Faibish
Corporate Distinguished Engineer
Network Storage Group
EMC²
where information lives
Phone: 508-435-1000 x 48545
Cellphone: 617-510-0422
Email : sfaibish@emc.com
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-25 20:02 Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited? Peng Yu
2010-08-25 23:11 ` sfaibish
@ 2010-08-25 23:36 ` Neil Brown
2010-08-26 0:12 ` sfaibish
2010-08-26 11:59 ` Peng Yu
1 sibling, 2 replies; 9+ messages in thread
From: Neil Brown @ 2010-08-25 23:36 UTC (permalink / raw)
To: Peng Yu; +Cc: linux-nfs
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.
NeilBrown
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-25 23:36 ` Neil Brown
@ 2010-08-26 0:12 ` sfaibish
2010-08-26 0:31 ` Neil Brown
2010-08-26 11:59 ` Peng Yu
1 sibling, 1 reply; 9+ messages in thread
From: sfaibish @ 2010-08-26 0:12 UTC (permalink / raw)
To: Neil Brown, Peng Yu; +Cc: linux-nfs
On Wed, 25 Aug 2010 19:36:48 -0400, 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.
You still need to stop and restart the nfs for this to take effect.
/Sorin
>
> NeilBrown
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Best Regards
Sorin Faibish
Corporate Distinguished Engineer
Network Storage Group
EMC²
where information lives
Phone: 508-435-1000 x 48545
Cellphone: 617-510-0422
Email : sfaibish@emc.com
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-26 0:12 ` sfaibish
@ 2010-08-26 0:31 ` Neil Brown
2010-08-26 10:17 ` sfaibish
0 siblings, 1 reply; 9+ messages in thread
From: Neil Brown @ 2010-08-26 0:31 UTC (permalink / raw)
To: sfaibish; +Cc: Peng Yu, linux-nfs
On Wed, 25 Aug 2010 20:12:02 -0400
sfaibish <sfaibish@emc.com> wrote:
> On Wed, 25 Aug 2010 19:36:48 -0400, 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.
> You still need to stop and restart the nfs for this to take effect.
Have you tried it?
I assure you that running rpc.nfsd like this does change the number of
threads from whatever it is to the given number. (I should know, I wrote the
code :-)
NeilBrown
>
> /Sorin
>
> >
> > NeilBrown
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> >
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-26 0:31 ` Neil Brown
@ 2010-08-26 10:17 ` sfaibish
2010-08-26 10:42 ` Neil Brown
0 siblings, 1 reply; 9+ messages in thread
From: sfaibish @ 2010-08-26 10:17 UTC (permalink / raw)
To: Neil Brown; +Cc: Peng Yu, linux-nfs
On Wed, 25 Aug 2010 20:31:52 -0400, Neil Brown <neilb@suse.de> wrote:
> On Wed, 25 Aug 2010 20:12:02 -0400
> sfaibish <sfaibish@emc.com> wrote:
>
>> On Wed, 25 Aug 2010 19:36:48 -0400, 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.
>> You still need to stop and restart the nfs for this to take effect.
>
> Have you tried it?
Have you? Obviously not.
>
> I assure you that running rpc.nfsd like this does change the number of
> threads from whatever it is to the given number. (I should know, I wrote
> the
> code :-)
No it does not if you check how many daemons are running (ps) you will see
that it only
changed the value not the number of running daemons.
>
> NeilBrown
>
>>
>> /Sorin
>>
>> >
>> > NeilBrown
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe linux-nfs"
>> in
>> > the body of a message to majordomo@vger.kernel.org
>> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>> >
>> >
>>
>>
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Best Regards
Sorin Faibish
Corporate Distinguished Engineer
Network Storage Group
EMC²
where information lives
Phone: 508-435-1000 x 48545
Cellphone: 617-510-0422
Email : sfaibish@emc.com
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-26 10:17 ` sfaibish
@ 2010-08-26 10:42 ` Neil Brown
0 siblings, 0 replies; 9+ messages in thread
From: Neil Brown @ 2010-08-26 10:42 UTC (permalink / raw)
To: sfaibish; +Cc: Peng Yu, linux-nfs
On Thu, 26 Aug 2010 06:17:43 -0400
sfaibish <sfaibish@emc.com> wrote:
> On Wed, 25 Aug 2010 20:31:52 -0400, Neil Brown <neilb@suse.de> wrote:
>
> > On Wed, 25 Aug 2010 20:12:02 -0400
> > sfaibish <sfaibish@emc.com> wrote:
> >
> >> On Wed, 25 Aug 2010 19:36:48 -0400, 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.
> >> You still need to stop and restart the nfs for this to take effect.
> >
> > Have you tried it?
> Have you? Obviously not.
>
> >
> > I assure you that running rpc.nfsd like this does change the number of
> > threads from whatever it is to the given number. (I should know, I wrote
> > the
> > code :-)
> No it does not if you check how many daemons are running (ps) you will see
> that it only
> changed the value not the number of running daemons.
We must be talking about different things.
sh-4.1# ps axgu | grep nfsd
root 2771 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd4]
root 2772 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2773 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2774 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2775 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2776 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2777 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2778 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2779 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 9621 0.0 0.0 112308 868 pts/14 S+ 20:39 0:00 grep nfsd
sh-4.1# rpc.nfsd 16
sh-4.1# ps axgu | grep nfsd
root 2771 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd4]
root 2772 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2773 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2774 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2775 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2776 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2777 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2778 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2779 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 9623 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9624 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9625 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9626 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9627 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9628 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9629 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9630 0.0 0.0 0 0 ? S 20:39 0:00 [nfsd]
root 9632 0.0 0.0 112308 868 pts/14 S+ 20:39 0:00 grep nfsd
sh-4.1# rpc.nfsd 3
sh-4.1# ps axgu | grep nfsd
root 2771 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd4]
root 2772 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2773 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 2774 0.0 0.0 0 0 ? S Aug20 0:00 [nfsd]
root 9635 0.0 0.0 112308 864 pts/14 S+ 20:39 0:00 grep nfsd
sh-4.1#
So when I run "rpc.nfsd N" and I check with "ps" how many deamons are
running, I find that N are running.
Maybe you mean something different??
NeilBrown
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-25 23:36 ` Neil Brown
2010-08-26 0:12 ` sfaibish
@ 2010-08-26 11:59 ` Peng Yu
2010-08-26 21:43 ` Neil Brown
1 sibling, 1 reply; 9+ messages in thread
From: Peng Yu @ 2010-08-26 11:59 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-nfs
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?
--
Regards,
Peng
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
2010-08-26 11:59 ` Peng Yu
@ 2010-08-26 21:43 ` Neil Brown
0 siblings, 0 replies; 9+ messages in thread
From: Neil Brown @ 2010-08-26 21:43 UTC (permalink / raw)
To: Peng Yu; +Cc: linux-nfs
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-08-26 21:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 20:02 Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited? Peng Yu
2010-08-25 23:11 ` sfaibish
2010-08-25 23:36 ` Neil Brown
2010-08-26 0:12 ` sfaibish
2010-08-26 0:31 ` Neil Brown
2010-08-26 10:17 ` sfaibish
2010-08-26 10:42 ` Neil Brown
2010-08-26 11:59 ` Peng Yu
2010-08-26 21:43 ` Neil Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox