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

LVL 3
sugunakarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.