1832621 Members
2864 Online
110043 Solutions
New Discussion

Re: /var full

 
SOLVED
Go to solution
Prashanth Waugh
Esteemed Contributor

/var full

hi friends
on my server /var is 100%(full).so i serch the the files and dirctory in /var/adm it is found that /var/adm/wtmp and /var/adm/utmp consumed more space .so can i empty this file wtmp and utmp
pls thanks in advance.
For success, attitude is equally as important as ability
8 REPLIES 8
Noble Sebastian
Frequent Advisor
Solution

Re: /var full

hi
You can empty this file
This is for system startup ,details
this file is more space using
you can do
>wtmp
>utmp

Regards
Noble
Prashanth Waugh
Esteemed Contributor

Re: /var full

On this system users are logged in now.
Can i still execute the command

>wtmp
>utmp
For success, attitude is equally as important as ability
gr8
Advisor

Re: /var full

yes you can
Prashanth Waugh
Esteemed Contributor

Re: /var full

Thanks Noble and gr8 .problem is solved.

thanks again for ur quick response.


cheers!
For success, attitude is equally as important as ability
Yogeeraj_1
Honored Contributor

Re: /var full

hi,

you can also go into SAM-> Routine Tasks -> System Log Files ->

and selectively purge/trim the system log files.

You may also purge temporary files in /var/tmp/

do get the size of the /var/tmp, you can run:
du -sk /var/tmp

or find the huge files by running:
ls -lR|sort +4 -5nr|more

hope this helps too!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Jollyjet
Valued Contributor

Re: /var full

check any core files are there
Bill Hassell
Honored Contributor

Re: /var full

/var will ALWAYS fill up unless you regularly inspect the directories for growth. Don't look for large files!! Instead, look for large directories, then look inside the directory for what is causing the large directory. To find the large directories:

du -kx /var | sort -rn | head -20

This list will sort the largest directories to the top. Then use:

ll /var/some_large_directory | sort -rnk5 | heada -20

to find large files by sorting the big ones to the top of the list. You can apply these commands to any mountpoint.


Bill Hassell, sysadmin
Prashanth Waugh
Esteemed Contributor

Re: /var full

Thanks Bill,Yogeeraj and jollyiet for ur valuable suggestion
For success, attitude is equally as important as ability