2002-07-15 12:39:56

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Killing/removing defunct processes?

hi all

How can I kill/remove a defunct process (trying to read on from a chrashed NFS
server) without rebooting? It really should be some sort of hack (extra kill
argument?) to do this.

please

roy
--
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.


2002-07-15 13:27:29

by ilmari

[permalink] [raw]
Subject: Re: Killing/removing defunct processes?

Roy Sigurd Karlsbakk <[email protected]> writes:

> hi all
Hi Roy,

> How can I kill/remove a defunct process (trying to read on from a
> chrashed NFS server) without rebooting? It really should be some
> sort of hack (extra kill argument?) to do this.

>From nfs(5), mount options:

hard If an NFS file operation has a major timeout then report
"server not responding" on the console and continue
retrying indefinitely. This is the default.

intr If an NFS file operation has a major timeout and it is hard
mounted, then allow signals to interupt the file operation
and cause it to return EINTR to the calling program. The
default is to not allow file operations to be interrupted.

You want both these options when mounting. It might be possible to do a
"mount -o remount,intr /hung/nfs/mount" and then kill, but I'm not sure.

--
ilmari

2002-07-15 18:39:12

by Thunder from the hill

[permalink] [raw]
Subject: Re: Killing/removing defunct processes?

Hi,

On 15 Jul 2002, Dagfinn Ilmari Manns?ker wrote:
> You want both these options when mounting. It might be possible to do a
> "mount -o remount,intr /hung/nfs/mount" and then kill, but I'm not sure.

This should only make mount hang in D state, too.

Regards,
Thunder
--
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o? K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y-
------END GEEK CODE BLOCK------