Operating System - HP-UX
1832502 Members
4694 Online
110043 Solutions
New Discussion

Re: how can I kill the processes!

 
leyearn
Regular Advisor

how can I kill the processes!

I want to umount the file system
but it indicated busy
so I #fuser -ku /data
but I didn't work
how can I kill the processes which on the /data
9 REPLIES 9
Vibhor Kumar Agarwal
Esteemed Contributor

Re: how can I kill the processes!

First find the process's id

ps -ef | grep data

then

kill -9 pid
Vibhor Kumar Agarwal
Mel Burslan
Honored Contributor

Re: how can I kill the processes!

or

fuser -k /mountpoint

________________________________
UNIX because I majored in cryptology...
Muthukumar_5
Honored Contributor

Re: how can I kill the processes!

Some of your users are still using /data directory. You have to collect pid with fuser -u /data and kill with that process ID.

hth.
Easy to suggest when don't know about the problem!
morganelan
Trusted Contributor

Re: how can I kill the processes!

Hi,
Try using lsof:
Lsof stands for LiSt Open Files, and it does just that. It lists information about files that are open by the processes running on a UNIX system.
prebuild binary downlod:
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/binaries/hpux/B.11.11/lsof_4.73.gz

binary file download:
http://hpux.cs.utah.edu/

#lsof /data
Kamal Mirdad
morganelan
Trusted Contributor

Re: how can I kill the processes!

After run lsof then:
#kill -9 pid-job-from-lsof
Kamal Mirdad
Sยภเl Kย๓คг
Respected Contributor

Re: how can I kill the processes!

Try with
#fuser -kuc /mountpoint
Your imagination is the preview of your life's coming attractions
Ranjith_5
Honored Contributor

Re: how can I kill the processes!

Hi,

Attahed lsof binary. Copy the same to /usr/bin and execute

#lsof /data

This will give all the open files.
You can then kill using kill -9

Regards,
Syam
Cem Tugrul
Esteemed Contributor

Re: how can I kill the processes!

kill -9 pid
Our greatest duty in this life is to help others. And please, if you can't
Juan Manuel López
Valued Contributor

Re: how can I kill the processes!

kill -9 pid
You can see with fuser /dev/vgxx/lvxx which process are over logical volume.
I hope this solve your problem.
Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.