Operating System - HP-UX
1833784 Members
2600 Online
110063 Solutions
New Discussion

Low on Space - VAR Directory.

 
Shem_1
Occasional Contributor

Low on Space - VAR Directory.

I am getting this error message "....sendmail[912]: NOQUEUE: low on space (have 2, SMTP-DAEMON needs 101 in /var/spool/mqueue"

This sure means I am out of space in the /var dir and it is 100% (using bdf). What can I clear off in the var directory to solve this problem.
Port 80 on HP-UX 11.0
6 REPLIES 6
Michael Tully
Honored Contributor

Re: Low on Space - VAR Directory.

You could delete all files in /var/tmp that are older than the last boot date.

You could see how big some log files are and trim them. SAM can assist with this.

/var/adm/syslog/syslog.log
/var/adm/syslog/mail.log
/var/adm/sw/sw/sw*.log

root's mail
/var/mail

If the mail is not important that has not been sent, you could remove these files as well.

# mailq

# rm /var/spool/mqueue/*
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: Low on Space - VAR Directory.

Another important one that I neglected to mention and that is cleaning up old patches.

# cleanup -i
Anyone for a Mutiny ?
Con O'Kelly
Honored Contributor

Re: Low on Space - VAR Directory.

I'd aslo look at:
# cleanup -c 2 or cleanup -c 1

This will remove patches that have been superseeded x2 or x1. Note that if you do this you will not be able to remove those patches.

You can also run in preview mode to see space gained eg.
# cleanup -p -c 2.

On many systems this will gain you quite a bit of space in /var.

Cheers
Con
Con O'Kelly
Honored Contributor

Re: Low on Space - VAR Directory.

Sorry should have said the -c will committ patches (not remove!) thenmsuperseeded once (-c 1) or twice (-c 2), meaning that there is no backup in /var/adm/save, hence you'll not be able to remove them.

Cheers
Con
Fragon
Trusted Contributor

Re: Low on Space - VAR Directory.

Hi, you can remove these files:

#/usr/sbin/sendmail -q -v
#cd /var/spool/mqueue
#rm *

Also you can use ">" to empty other log files!

Good luck!
-ux
Sridhar Bhaskarla
Honored Contributor

Re: Low on Space - VAR Directory.

Hi,

If cleaning up /var/tmp and trimming /var/adm/syslog/*log or /var/adm/sw/sw*.log didn't help you, then it is time for you to commit the old patches.
Take a backup of /var/adm/sw/save onto a tape.

#cleanup -c 4

This will commit the patches that are superceded atleast 4 times. Once it is done check the space in /var. If it not sufficient, then use 3. Do not go less than 2 (cleanup -c 2). In case if you need to backout any patches, you will run into issues.

That should clearup reasonable space in your /var.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try