Portal Home > Knowledgebase > Articles Database > Disk /dev/sda5 (/var) 96 %
Disk /dev/sda5 (/var) 96 %
Posted by Raihan, 03-08-2008, 07:18 PM |
Good day All
the Disk /dev/sda5 (/var) 96 % Full
What I do
|
Posted by Skylar MacMinn, 03-08-2008, 08:07 PM |
I would go into your /var directory and see exactly what is in there. If there are unneeded items located in there, delete them
|
Posted by TheITAdvisory, 03-08-2008, 09:37 PM |
Hello,
It is probably your log files pilling up. When is the last time you cleared your logs?
cd /var/log
ls -al
If you see something like ....
messages.1
messages.2
messages.3
messages.4
You can probably either back these up to another source, or delete them using rm -rf *.1 and so on. You may be able to use rm -rf *.* But I am not sure what else you have in there, so do it wild-card.number to make sure you delete only what you need.
To clear any other log files that are NOT backup's, but hold useless data you no longer need, do the following
> logfilename
Then cat logfilename to ensure the log has cleared.
I hope this has helped you in some way or another.
Good luck, and take care!
In the future, you could also automate this log file deletion process by setting up a shell script for as a cron job. However, I choose to backup my log files to an external source, In my case another linux server at home running sshd.
Script I wrote:
#!/bin/bash
#tar up your files
tar -czvf logbackups.tgz /someother/directory
#Transfer the files - Note this will prompt you for a password of the remote box, So try and create a RSA key, store it locally, and remotely.
scp -P 22 /someother/directory/logbackups.tgz root@yourotherserver.tld:/home/backups/
echo "Log Backups Complete" | mail -s "Backup Completed!" Youremailhere.tld
Now that will, or should work for you!
I hope I was able to shed some light on your problem. Good Luck!
Kind Regards,
Last edited by anon-e-mouse; 03-09-2008 at 03:17 AM.
Reason: merged posts
|
Add to Favourites Print this Article
Also Read