System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: unable to find what is filling up /tmp

 
SOLVED
Go to solution
Acclaimed Contributor

Re: unable to find what is filling up /tmp

>it's the same stuff:

 

So it's not very useful, kill them all!  You don't really need 194 processes pinging the same IP.  ;-)

Also, you really should be sending this info to a pipe so you can do data reduction on the fly.  Or only send errors when ping fails.

 

>Does this file exist: /tmp/fr/ping_date.txt?

 

That's the missing file, since it's so large.

 

>I would look and see if you can kill those processes.

 

I would just wave bye-bye to the unmutual script and kill them all.

You could check to see if all of them are the same IP and output file.

Super Advisor

Re: unable to find what is filling up /tmp

Hi

 

The /tmp/fr/ping_date.txt file does not exist, and I am not quite sure how can kill 194 processes at the same time, please can you give a hint?

 

FR

Honored Contributor

Re: unable to find what is filling up /tmp

You can try to script the process. Otherwise you will just have to go through the list and kill the appropriate processes.

Super Advisor

Re: unable to find what is filling up /tmp

 

 

does this:

 

 

ps -ef |awk '/pong/{print $2}' | xargs kill -15

 

 

will do the job?

Valued Contributor

Re: unable to find what is filling up /tmp

Nandinho,

 

Try using lsof on /tmp with sorting SIZE column.

 

# lsof /tmp > lsof_tmp.out

# cat lsof_tmp.ou | sort -k 8 | more 

 

You will see the large size , the program using, try to check that program with the PID given. May be you need to bounce that program/application or to kill it .

 

Hth,

Raj D.

 

Acclaimed Contributor
Solution

Re: unable to find what is filling up /tmp

>ps -ef | awk '/pong/{print $2}' | xargs kill -15;   will do the job?

 

Yes, unless you want to limit it to be safe:

ps -fu root | awk '/ping.*pong/ {print $2}' | xargs kill

 

>Try using lsof on /tmp with sorting SIZE column.

> cat lsof_tmp.out | sort -k 8

 

I count column 7.  Also no need to use an evil cat:

sort -k 7 lsof_tmp.out

Super Advisor

Re: unable to find what is filling up /tmp

 

Hi

 

Thank you Dennis, I used your command, but with a pipe, (I think you missed it)

 

ps -fu root | awk '/ping.*pong/ {print $2}'| xargs kill

 

It worked fine, problem solved.

 

Thank you

 

FR