Operating System - Linux
1827894 Members
1782 Online
109969 Solutions
New Discussion

File system /var is fulll

 
SOLVED
Go to solution
Edwin Ruiz_2
Super Advisor

File system /var is fulll

Hi..

My /var file system is full.. i know that the /var/spool mqueue has all space used... can i erase all files on that directory?

Something is afected if i erase yhat files?
7 REPLIES 7
Jerome Henry
Honored Contributor
Solution

Re: File system /var is fulll

You can delete them ! But know that you are deleting mail queue...
Look here for type of files you'll find :
http://nscp.upenn.edu/aix4.3html/files/aixfiles/mqueue.htm

J
You can lean only on what resists you...
Steven E. Protter
Exalted Contributor

Re: File system /var is fulll

mailq

This will show lots of email that is waiting to get off your machine.

If you care about the mail, you don't want to delete it.

rm -f /var/spool/mqueue/*

Will clear the mail.

It will give you space on /var

Next you need to look at your mail setup and figure out why mail can't get off the box.

/etc/resolv.conf

Valid DNS servers

sendmail.cf

Is DS relay set and not working?

sendmail -v -d8 -d38 someone@aol.com
type some text

.


will get you trace diagnostics so this does not happen again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sergejs Svitnevs
Honored Contributor

Re: File system /var is fulll

Sendmail maintains its mail related files in /var/spool/mqueue/*. Don't delete these files because these are the mails which are in queue.
"mailq" command prints a summary of the mail messages.

Regards,
Sergejs
Martin P.J. Zinser
Honored Contributor

Re: File system /var is fulll

Just to recover some space to the get the system up again have a look at /var/log . At least on my system this contains archived message and login files (look for .gz files) that at least can be moved off the disk without problems (depending on your needs you might also dispose of them all together). Else I agree you do need to check your mail setup.

Greetings, Martin
Edwin Ruiz_2
Super Advisor

Re: File system /var is fulll

Ok! thanks...Now i have other situation

Using df -k command i see var until 100% used.. but whn i use du -k on /var i have only 82 MB used.. /var/size is 2 GB.

Martin P.J. Zinser
Honored Contributor

Re: File system /var is fulll

Hello Edwin,

did you execute the du on /var as root? Files you are not allowed to read will not be reported...

Greetings, Martin
Jerome Henry
Honored Contributor

Re: File system /var is fulll

Hi Edwin,

The result is normal :
"If an argument is the absolute file name of a disk device node containing a mounted filesystem, df shows the space available on that filesystem rather than on the filesystem containing the device node (which is always the root filesystem). " (from man df).
In other words, umount /var and df shoudl give you proper result. DU result is the right one.
BTW, why -k argument, if you don't precise block size ?
I usually use df -h or du -h (or -H).

j
You can lean only on what resists you...