Run away process

Run away process

am 01.02.2006 11:18:43 von Dermot Paikkos

Hi,

I have a problem this morning.

I created a perl script to make a backup copy of some files. The
destination was a remote server (win2k) using a NFS mount. The win2k
server has fallen over during the process and I can't terminate the
backup script that was run via cron.

If I df, my terminal freezes. lsof never returns. kill -9 doesn't do
anything and I tried to kill -9 the parent, crond. The parent is now
inetd. It doesn't show in ipcs -a.

I can't do a reboot the linux box until much later tonight when
everyone is off and I can't put the windows box on the network as it
will fall over again if the above process is still running.

Does anyone know how I can stop this process?
Thanx.
Dp.


....ps -ef
root 12684 1657 0 02:19 ? 00:00:00 smbd -D
root 14351 1 0 03:28 ? 00:00:07 /usr/bin/perl
/root/dbbackup.pl
root 14354 15 0 03:28 ? 00:00:00 [pdflush]
....


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Run away process

am 01.02.2006 11:57:08 von urgrue

welcome to the wonderful world of NFS. how about you reconnect the
windows just long enough for NFS to recover so you can kill the
process, then detach it again?
other than that, you should look into the various NFS mount options.
the default settings in most systems are absurd. i recommend you look
into at least: soft,intr,bg,nfsvers=3,tcp,timeo=30.
these wont help you with your immediate problem, but may help prevent
similar problems in the future.


> Hi,
>
> I have a problem this morning.
>
> I created a perl script to make a backup copy of some files. The
> destination was a remote server (win2k) using a NFS mount. The win2k
> server has fallen over during the process and I can't terminate the
> backup script that was run via cron.
>
> If I df, my terminal freezes. lsof never returns. kill -9 doesn't do
> anything and I tried to kill -9 the parent, crond. The parent is now
> inetd. It doesn't show in ipcs -a.
>
> I can't do a reboot the linux box until much later tonight when
> everyone is off and I can't put the windows box on the network as it
> will fall over again if the above process is still running.
>
> Does anyone know how I can stop this process?
> Thanx.
> Dp.
>
>
> ...ps -ef
> root 12684 1657 0 02:19 ? 00:00:00 smbd -D
> root 14351 1 0 03:28 ? 00:00:07 /usr/bin/perl
> /root/dbbackup.pl
> root 14354 15 0 03:28 ? 00:00:00 [pdflush]
> ...
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin"
> 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-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: Run away process

am 01.02.2006 12:02:18 von Khushil Dep

Try to renice the process with a negative figure and then attempt to
kill?

-----------------------
Khushil Dep

-----Original Message-----
From: linux-admin-owner@vger.kernel.org
[mailto:linux-admin-owner@vger.kernel.org] On Behalf Of urgrue
Sent: 01 February 2006 10:57
To: dermot@sciencephoto.com
Cc: linux-admin@vger.kernel.org
Subject: Re: Run away process

welcome to the wonderful world of NFS. how about you reconnect the
windows just long enough for NFS to recover so you can kill the
process, then detach it again?
other than that, you should look into the various NFS mount options.
the default settings in most systems are absurd. i recommend you look
into at least: soft,intr,bg,nfsvers=3,tcp,timeo=30.
these wont help you with your immediate problem, but may help prevent
similar problems in the future.


> Hi,
>
> I have a problem this morning.
>
> I created a perl script to make a backup copy of some files. The
> destination was a remote server (win2k) using a NFS mount. The win2k
> server has fallen over during the process and I can't terminate the
> backup script that was run via cron.
>
> If I df, my terminal freezes. lsof never returns. kill -9 doesn't do
> anything and I tried to kill -9 the parent, crond. The parent is now
> inetd. It doesn't show in ipcs -a.
>
> I can't do a reboot the linux box until much later tonight when
> everyone is off and I can't put the windows box on the network as it
> will fall over again if the above process is still running.
>
> Does anyone know how I can stop this process?
> Thanx.
> Dp.
>
>
> ...ps -ef
> root 12684 1657 0 02:19 ? 00:00:00 smbd -D
> root 14351 1 0 03:28 ? 00:00:07 /usr/bin/perl
> /root/dbbackup.pl
> root 14354 15 0 03:28 ? 00:00:00 [pdflush]
> ...
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin"
> 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-admin"
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-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Run away process

am 01.02.2006 12:03:53 von Dermot Paikkos

Thanx for the replies.

Managed to resolve it with `umount -f /mnt/servermount`

That halted the process. Phew.
Dp.




On 1 Feb 2006 at 10:18, Linux Admin wrote:

> Hi,
>
> I have a problem this morning.
>
> I created a perl script to make a backup copy of some files. The
> destination was a remote server (win2k) using a NFS mount. The win2k
> server has fallen over during the process and I can't terminate the
> backup script that was run via cron.
>
> If I df, my terminal freezes. lsof never returns. kill -9 doesn't do
> anything and I tried to kill -9 the parent, crond. The parent is now
> inetd. It doesn't show in ipcs -a.
>
> I can't do a reboot the linux box until much later tonight when
> everyone is off and I can't put the windows box on the network as it
> will fall over again if the above process is still running.
>
> Does anyone know how I can stop this process?
> Thanx.
> Dp.
>
>
> ...ps -ef
> root 12684 1657 0 02:19 ? 00:00:00 smbd -D
> root 14351 1 0 03:28 ? 00:00:07 /usr/bin/perl
> /root/dbbackup.pl
> root 14354 15 0 03:28 ? 00:00:00 [pdflush]
> ...
>
>


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Run away process

am 01.02.2006 12:07:44 von Dermot Paikkos

On 1 Feb 2006 at 10:57, urgrue wrote:

the default settings in most systems
> are absurd. i recommend you look into at least:
> soft,intr,bg,nfsvers=3,tcp,timeo=30.

I like the look of the timeo option. i have bg in my fstab. Should
these setting go into fstab or export?
Thanx.
Dp.


>
>
> > Hi,
> >
> > I have a problem this morning.
> >
> > I created a perl script to make a backup copy of some files. The
> > destination was a remote server (win2k) using a NFS mount. The win2k
> > server has fallen over during the process and I can't terminate the
> > backup script that was run via cron.
> >
> > If I df, my terminal freezes. lsof never returns. kill -9 doesn't do
> > anything and I tried to kill -9 the parent, crond. The parent is now
> > inetd. It doesn't show in ipcs -a.
> >
> > I can't do a reboot the linux box until much later tonight when
> > everyone is off and I can't put the windows box on the network as it
> > will fall over again if the above process is still running.
> >
> > Does anyone know how I can stop this process?
> > Thanx.
> > Dp.
> >
> >
> > ...ps -ef
> > root 12684 1657 0 02:19 ? 00:00:00 smbd -D
> > root 14351 1 0 03:28 ? 00:00:07 /usr/bin/perl
> > /root/dbbackup.pl
> > root 14354 15 0 03:28 ? 00:00:00 [pdflush]
> > ...
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-admin" 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-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Run away process

am 01.02.2006 14:05:39 von Glynn Clements

Dermot Paikkos wrote:

> the default settings in most systems
> > are absurd. i recommend you look into at least:
> > soft,intr,bg,nfsvers=3,tcp,timeo=30.
>
> I like the look of the timeo option. i have bg in my fstab. Should
> these setting go into fstab or export?

fstab.

/etc/fstab controls mounting filesystems. /etc/export controls what is
exported by an NFS server.

--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html