1833847 Members
2211 Online
110063 Solutions
New Discussion

Unable to kill pid

 
ROSS HANSON
Regular Advisor

Unable to kill pid

I was running a very simple while loop copying one file (85megs) from one lvol to another timing the results. when finished I did a ctrl-c to exit out of the loop. I never got back to a command prompt so after trying to kill serveral times the pid still shows up when doing a ps -ef.
Any suggestion?
Ross Hanson
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Unable to kill pid

It may be that it is waiting for an io operation to finish. If that is the case, the process will not acknowledge the signal until the io is finished.

Have you just tried the plain 'kill pid'? Have you tried 'kill -9 pid'?
Sundar_7
Honored Contributor

Re: Unable to kill pid

Processes that are hung on IO will not respond to kill (even to the SIGKILL signal).

post the ps output for the process - do you see a process ?
Learn What to do ,How to do and more importantly When to do ?
ROSS HANSON
Regular Advisor

Re: Unable to kill pid

when I do a ps -ef | grep hansonr.tar(this is the file I was copying from one spot to another when I was doing the while loop)ps -ef | grep hansonr.tar root 10772 22637 0 11:10:24 console 0:02 find / -name hansonr.tar root 6906 1 0 10:40:25 ? 0:07 cp /tmp/hansonr.tar /rootdbs/hansonr.tar root 9361 9236 1 15:32:07 pts/2 0:00 grep hansonr.tar root 6259 1 0 10:35:18 ? 0:00 cp /tmp/hansonr.tar /rootdbs/hansonr.tar root 10112 1 0 11:04:47 ? 0:07 cp /tmp/hansonr.tar /rootdbs/hansonr.tar root 22294 27151 0 12:59:27 pts/ta 0:02 find / -name hansonr.taras you can see I tried other things and they also became hung
Ross Hanson
Sundar_7
Honored Contributor

Re: Unable to kill pid

How do you know the processes are hung up ?

Try the kill -9
Learn What to do ,How to do and more importantly When to do ?
ROSS HANSON
Regular Advisor

Re: Unable to kill pid

because the spot where that tar file was being copied too I removed the file and another on was placed there again
Ross Hanson