I am having a huge problem here with my /var partition filling up on my Linux Red Hat box. This is stopping all email sent from my web server due to lack of space. I usually solve the problem by deleting log files and other miscelaneous stuff on the /var directory but this time I ran out of files to delete.
So I was investigating and it seems like /var/lib/rpm is taking up a lot of space (26 MB) that I could use. Can I just delete this directory? Why is it so big??? I don't understand.
[root@internal var]# pwd
[root@internal var]# du -sh *
As you can see the only thing there taking up a lot of space is lib which insisde contains RPM files which are taking a lot of space. Can I go ahead and delete those files or just empty whatever is in them.
Also notice that when I do : df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 372M 142M 211M 41% /
/dev/hda1 45M 18M 25M 42% /boot
/dev/hda5 11G 3.1G 7.3G 30% /home
none 314M 0 313M 0% /dev/shm
/dev/hda2 24G 1.2G 21G 5% /usr
/dev/hda7 251M 238M 0 100% /var
/var seems to have 251 MB of space but when I do
[root@internal /]# du -sh *
du: `proc/16060/fd/3': No such file or directory
It says var only is using 32MB?
How can this be?
I am somwhat stumped and I need my web server to start sending emails asap.
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation.
From the Ubuntu vi…
You ever wonder how to backup Linux system files just like Windows System Restore? Well you can use Timeshift in Linux to perform those similar action. This tutorial will show you how to backup your system files and keep regular intervals.
Learn how to get help with Linux/Unix bash shell commands.
Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell.
Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…