AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We have a NW of more than 45 AIX machines.
We have regular problems with /var File system in one or the other nodes.
It becomes full regularly.
The reasons noticed are
1. The directories /var/spool/mqueue and /var/preserve
sometimes occuppy hundreds of junkfiles.
We delete them.
Is it possible to disable the generation of junk files?
2. The file /var/adm/ras/errlog becomes large
We use errclear command to clear it.
But, even if we use errclear 0, the size of /var/adm/ras/errlog does not change
We can not delete it, as it is needed by the errpt command
What can I do?
3. The file /var/adm/wtmp grows verylarge. Even 550 MB.
How to control it. Can we remove it?
Can anybody help us
Last edited by AbrahamJose; 02-06-2006 at 12:28 AM.
Also check your email. It sounds like your system is trying to send email and failing, which suggests sendmail isn't correctly configured with a valid MTA.
We have a NW of more than 45 AIX machines.
We have regular problems with /var File system in one or the other nodes.
It becomes full regularly.
The reasons noticed are
3. The file /var/adm/wtmp grows verylarge. Even 550 MB.
How to control it. Can we remove it?
Can anybody help us
This can be solve your problem :
1. du -k . | sort -n
for sort the largest file
2. ls -lrt
just list it for now
3. > wtmp
reduce this file to 0
4. ls -l wtmp
check it again for sure
Maybe your problem is solve
5. Now run this command to check /var file system
df -k or df -h
yes the above can help u solve ur problem temporarily but the important thing will be to have a look at your policy
what kind of logs do u need to archive
so with logroate u can archive them on a regular basis and put those different archives in a different directory and move to another location
man logrotae resulted
Manual entry for logrotate not found or not installed
Also I searched by
find / -fstype nfs -prune -o -name logrotae -print
It resulted nothing
Look at the /etc/syslog.conf file (name from memory - might be slightly different). It has quite clear instructions on how to rotate logfiles.
Yes, you can remove wtmp whenever you want. For example, to just keep a week's worth of entries, do something like the following from cron once a week :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.