Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1038
  • Last Modified:

AIX OS: /var is full

Dear Gurus,

I am new to IBM AIX boxes.

Today when i checked the disk utilisation, it showed me that /var is 100% full.

I would like to delete few old log files.

when i investigated further, I came to know that /var/adm is occupying a lot of space

Could some one help me out which files I can delete safely.

Thanks in advance

Regards
sugun

0
sugunakar
Asked:
sugunakar
  • 3
1 Solution
 
gheistCommented:
The problem is that you deleted "some old log files" and they still take space while processes do not close tham.

# kill -HUP `cat /var/run/syslogd.pid`
0
 
Sandy_itCommented:
What's the size of your /var partition.

Normally it should be 1 to 2 GB but if you have a fairly active servers with several users then you may increse the size of the /var partition.

See if the wtmp file in /var/adm is taking huge space. System reboot solves the problem in /var cleanup or you can do:
cp /dev/null /path/to/wtmp
Also you can do: errclear 0 to clear all the error logs till date.

Also you can use freeware utilities such as tidysys (http://www.bullfreeware.com/download/aix43/tidysys-2.2.1.0.exe) and logrotate (http://aixpdslib.seas.ucla.edu/packages/logrotate.html) for regular system cleanups.

Rgds
-Sandy
0
 
gheistCommented:
> cp /dev/null /path/to/wtmp

: > wtmp
0
 
sugunakarAuthor Commented:
thanks to all whio responded to this query.

The next day when i checked /var got cleared , i did nothing.

Now it is safe.

Thanks

0
 
gheistCommented:
Some process reopened file because of cron or diag....
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now