Operating System - HP-UX
1753326 Members
5045 Online
108792 Solutions
New Discussion юеВ

Strange sendmail /var problem.

 
David Heath_1
Advisor

Strange sendmail /var problem.

I have a user whose workstation has filled up /var very rapidly.
He recieved this error message

NOQUEUE: low on space (have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue)

I thought this was due to him receiveing an email which was too large for the filesystem and so it filled it up and timed out. However, there is only the root mail account set up on the machine and this is not full.

Doing a mailq command I receive, no mail in queue.

And when I do a find for large files and compare two different find jobs I find no differences in the size of the files found even though a bdf has told me /var has grown 5% in between finds.

I am stumped and dont know what could be filling up /Var so rapidly.

Any ideas?
12 REPLIES 12
Stefan Farrelly
Honored Contributor

Re: Strange sendmail /var problem.


Are there lots of files in /var/spool/mqueue ? you could have a looping email problem which causes hundreds of files to accumulate in this dir. Check whats in /var/tmp (all temp files - can be removed).

cd /var
du -sk * | sort -n

To see which dirs under /var are big.
How big is /var/adm/sw/save ? If its big you can clean it up by doing;
swmodify -x patch_commit=true \*
Im from Palmerston North, New Zealand, but somehow ended up in London...
David Heath_1
Advisor

Re: Strange sendmail /var problem.

Nope.

/var/spool/mqueue is empty.

I did the swmodify and received this error:

ERROR:
The selected software to be committed was not modified. This is probably the result of none of the selected software having a patch fileset to commit

Thanks for your help though.

Thanks,

David.

David Burgess
Esteemed Contributor

Re: Strange sendmail /var problem.

If /var is growing, check /var/adm/syslog/syslog.log. If this is growing rapidly you've probably got a problem.

tail -f /var/adm/syslog/syslog.log to see what's going on.

Also go into SAM, routine tasks, system logfiles and clear down any large logfiles.

HTH,

Dave.
David Heath_1
Advisor

Re: Strange sendmail /var problem.

Nothing in syslog only it telling me that lvol8 is full and the No queue smtp message - which i know.

Ive cleared all large log files.
But still no joy.

Thanks for your help.
David Heath_1
Advisor

Re: Strange sendmail /var problem.

Actually something else has happened.

I deleted the syslogs maually, but just ran sam to see if I could see what was happening anywhere. I exported the display to my workstation, types sam, the sam logo appeared but then it closed and I received the following error message:

sam
cpp: error 12: Unable to access output file (check for disk error).
sam: Error: The cpp(1) command failed on file: /usr/sam/lib/C/fal.ui.

Now whats going on?
Could the machine have a bad disk?

Thanks.

David Burgess
Esteemed Contributor

Re: Strange sendmail /var problem.

ps -ef | grep syslogd and kill -HUP the pid to make sure it's writing to the syslog file. Then all should be ok with syslog. If not kill it and run /usr/sbin/syslogd -D

You might have a SAM patch the isn't configured. Check this with :-

swlist -l fileset -a state

If you find filesets in the installed state, run :-

swmodify \*

Check it worked :-

swlist -l fileset -a state

Then try running sam again.

Regards,

Dave.
David Burgess
Esteemed Contributor

Re: Strange sendmail /var problem.

How about :-

find /var -name core

Regards,

Dave.
David Heath_1
Advisor

Re: Strange sendmail /var problem.

Cheers David, I think you miss understood me.

Syslog is being written too fine, I meant there was no useful information in there explaining the problem further, not there was nothing in there at all!!

I did the swlist command and all patches have been configured correctly. None are in the installed state.

no core files either.

Cheers for you help.
Robin Wakefield
Honored Contributor

Re: Strange sendmail /var problem.

Hi David,

Are you seeing any pertinent messages in /var/adm/syslog/mail.log (assuming that's where it is).

Also see:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0be7c6af36b7d5118ff10090279cd0f9,00.html

and

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe4b814a24fd1d4118fef0090279cd0f9,00.html

Rgds, Robin.