LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 02-06-2006, 12:22 AM   #1
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 167

Rep: Reputation: 31
Red face Problem with /var File system


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.
 
Old 02-06-2006, 03:05 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
lookout for

logrotate and syslog

man logrotate

will help u more

regards
 
Old 02-06-2006, 09:25 AM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
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.
 
Old 02-07-2006, 01:45 PM   #4
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 167

Original Poster
Rep: Reputation: 31
About logrotate

Thanks.

But Pl give the full PATHs of logrotate and syslog

It seems they are not available in our systems.

Last edited by AbrahamJose; 02-07-2006 at 01:47 PM.
 
Old 02-07-2006, 11:07 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what do u get for

man logrotate

and

man syslog

also did u look at google for that???

regards
 
Old 02-08-2006, 02:14 AM   #6
HIDOKAI
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Red face

Quote:
Originally Posted by AbrahamJose
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

/var/adm/wtmp : Contains connect accounting information.
 
Old 02-08-2006, 02:40 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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

regards
 
Old 02-15-2006, 02:48 AM   #8
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 167

Original Poster
Rep: Reputation: 31
Post Hello masad,

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

for syslog also, the same result
 
Old 02-19-2006, 03:28 PM   #9
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
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 :

Code:
cp /var/adm/wtmp /var/adm/wtmp.1
cp /dev/null /var/adm/wtmp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem: a read only file system milo36472 Linux - Newbie 3 01-24-2005 09:11 AM
file system problem... mahamkali Red Hat 2 12-04-2003 12:24 AM
file system problem.... mahamkali Linux - General 2 12-03-2003 04:28 PM
file system problem... mahamkali Linux - Software 0 12-03-2003 03:09 PM
RedHat 8.0 Installation hanging while formatting /var file system slangley Linux - Distributions 2 02-07-2003 07:34 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration