cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to kill a process

SOLVED
Go to solution
hangyu
Regular Advisor

Unable to kill a process

I want to umount a path , I have checked what process is running in the path by lsof , now I found that there are three processes is running , I try to kill this process but can't , it is strange that the pid is change and change , every time I use lsof , the output is different , so I can't kill any process , can advise how can I umount it ? thx


#lsof /orc_tmp
lsof 14429 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14430 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14434 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14435 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14441 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14442 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp
4 REPLIES
Stuart Browne
Honored Contributor
Solution

Re: Unable to kill a process

You aren't in '/orc_tmp' when you're doing the 'lsof' are you?
One long-haired git at your service...
palaniappan.sp
Regular Advisor

Re: Unable to kill a process

Hi,
Make sure u r not in the current directory path.From root kill that processes forcely.
Use fuser -v which will identitfy and displays the PIDs of processes using the specified files or sockets.
Normally if ur not able to kill some proccesses becaz the processes may be dependent on other processes.so try to find the dependent processes files using fuser.And then try to kill it.
Make sure that u unmount the directories which are required by the processes if u had manually mounted.

Regds,
Palani



Everything is Possible and Anything is Feasible if u try
Ashish Parashar
Frequent Advisor

Re: Unable to kill a process

Hello Hangyu

You just grep the process id by

ps -ef | grep process_name

and then use

kill -9 Pid.

it will work,if the processes are not Zombie.

Regards

Ashish
Rasheed Tamton
Honored Contributor

Re: Unable to kill a process

cd /
fuser -ku /orc_tmp
fuser -ku /dev/device
or
fuser -k -m /dev/device

kill -9 process_id (as always)