Disk Space Problem

Hi Experts,
I am new to system admin of Linux (7.2.4) and got this message in my mailbox today .

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda8              4577712    629468   3715708  15% /
/dev/hda1                23302     10562     11537  48% /boot
/dev/hda6             35752284   4396292  29539848  13% /home
none                    257072         0    257072   0% /dev/shm
/dev/hda5             35752284   4451844  29484296  14% /usr
/dev/hda7               256667    227393     16022  94% /var

Is it more likely with the used 94% storage space in /var directory ? If so, what files and directories  can be deleted to have more space ? If there are some other issues, please let me know .
Thanks alot in avance for your co-operation.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is this the same server as in

If so that may be the problem.
web pages are generally stored at /var/www/htdocs
Or something similar but in still in /var
256 MB is awfully small (at least in my opinion), to store web pages for clients
mn210Author Commented:
I haven't yet installed the second mail server.
I want to try few options :
1)  Delete some files from /var
2) As some of the partitions like /home & /usr are exceptionally big, Is it possible that I  can reduce their size and allocate some space to /var.
But as I am new to system admin. what would  be the simplest and safest method of increasing the partition size of /var. and it would be great if you can outline the steps in an order to be followed to achieve this .
Thanks alot

what is the server going to be used for?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Hi mn210,
You could move /var/www into /use and create a symlink so that it still appears as though it is in the same place so you dont need to change any configuration.

mv /var/www /usr
cd /var
ln -s /usr/www www
yeah my thoughts exactly.
but that won't help if mn210 isn't serving web pages
mn210Author Commented:
It is our Web Server and also DNS Server
then follow grblades instructions and then run


to see if you still have the problem
mn210Author Commented:
I checked the disk usage of various folders in /var and found the following result -
1) /var/log - 104 MB
 2) /var/spool - 40 MB
3) /var/www - 15 MB
I think it would be better if I replace the /var/log directory  with /var/www directory in the above mentioned steps to achieve more free spcae. Is it possible?
mv /var/log /usr
cd /var
ln -s /usr/log log

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You better install logrotate, and configure it to rotate the older logs into oblivian. The logrotate package is probably allready installed but not (or no longer) being called from cron on a daily basis. If it is a RedHat you are administering that is most likely the case...
100MB is not that large for log files. Web logs can get very big and normally they are rotated weekly and the last 4 weeks kept.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.