linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to stop kernel nfsd?
@ 2009-06-08 10:52 harald.dunkel
  2009-06-10  2:13 ` Christian Kujau
  0 siblings, 1 reply; 4+ messages in thread
From: harald.dunkel @ 2009-06-08 10:52 UTC (permalink / raw)
  To: linux-kernel

Hi folks,

Which signal would be correct to gracefully kill the kernel nfs daemons?


Debian's runlevel script (just for example) tries SIGINT, but this
doesn't work, as it seems.


Regards

Harri




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to stop kernel nfsd?
  2009-06-08 10:52 how to stop kernel nfsd? harald.dunkel
@ 2009-06-10  2:13 ` Christian Kujau
  2009-06-10 16:42   ` Harald Dunkel
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Kujau @ 2009-06-10  2:13 UTC (permalink / raw)
  To: harald.dunkel; +Cc: LKML

On Mon, 8 Jun 2009, harald.dunkel@t-online.de wrote:
> Which signal would be correct to gracefully kill the kernel nfs daemons?

What are you trying to achieve? "killing", "terminating" or "graceful 
reloading", as in "re-exporting the shares", which can be done with 
exportfs(8).

> Debian's runlevel script (just for example) tries SIGINT, but this
> doesn't work, as it seems.

Which version of Debian? 5.0 over here just terminates the processes to 
stop nfs-kernel-server.

Christian.
-- 
BOFH excuse #438:

sticky bit has come loose

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to stop kernel nfsd?
  2009-06-10  2:13 ` Christian Kujau
@ 2009-06-10 16:42   ` Harald Dunkel
  2009-06-10 19:25     ` Christian Kujau
  0 siblings, 1 reply; 4+ messages in thread
From: Harald Dunkel @ 2009-06-10 16:42 UTC (permalink / raw)
  To: Christian Kujau; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

Christian Kujau wrote:
> On Mon, 8 Jun 2009, harald.dunkel@t-online.de wrote:
>> Which signal would be correct to gracefully kill the kernel nfs daemons?
> 
> What are you trying to achieve? "killing", "terminating" or "graceful 
> reloading", as in "re-exporting the shares", which can be done with 
> exportfs(8).
> 

Its a HA setup. Heartbeat is supposed to terminate the nfs service, umount
the local filesystem, set the drbd resources to "secondary", and release
the shared IP address (in this sequence).

To terminate the nfs service Lenny's /etc/init.d/nfs-kernel-server tries

	kill -INT <pid>

for all nfs daemons. Even though nfs is not active the nfs daemons don't
go away and keep the local mount point busy. If I patch the nfs runlevel
script to use SIGQUIT or SIGHUP instead, then the nfs daemons terminate.

Lenny's kernel is 2.6.26 plus patches.

Surely I am not asking for support for Lenny's kernel. But it would be
interesting to know what the kernel nfs daemons are supposed to do when
they receive a signal. AFAICS this is not documented.


Regards

Harri



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to stop kernel nfsd?
  2009-06-10 16:42   ` Harald Dunkel
@ 2009-06-10 19:25     ` Christian Kujau
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Kujau @ 2009-06-10 19:25 UTC (permalink / raw)
  To: Harald Dunkel; +Cc: LKML

On Wed, 10 Jun 2009, Harald Dunkel wrote:
> To terminate the nfs service Lenny's /etc/init.d/nfs-kernel-server tries
> 	kill -INT <pid>

Mine does:   start-stop-daemon --stop --name nfsd
...thus sending signal 15 (terminate) to the nfsd processes. Not sure what 
INT does to nfsd.

> Surely I am not asking for support for Lenny's kernel. But it would be
> interesting to know what the kernel nfs daemons are supposed to do when
> they receive a signal. AFAICS this is not documented.

It's called nfs-kernel-server because it communicates with the kernel NFS 
moduels, but it's a userspace issue nonetheless, methinks:

  https://lists.sourceforge.net/lists/listinfo/nfs 

(I justed tested it: kill -INT ends the nfsd processes, but I'm not sure 
if graceful or not...)

HTH,
Christian.
-- 
BOFH excuse #245:

The Borg tried to assimilate your system. Resistance is futile.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-10 19:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 10:52 how to stop kernel nfsd? harald.dunkel
2009-06-10  2:13 ` Christian Kujau
2009-06-10 16:42   ` Harald Dunkel
2009-06-10 19:25     ` Christian Kujau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).