Server is running out of disk space!

Status
Not open for further replies.

m1rr0z

Banned
Banned
80
2009
10
0
Hello,

I need help to clean my VPS from unwanted files..
I use WHM/Cpanel and I don't understand how an account can reach over 150GB data stored when I can't see even 1GB of file size on it..could be hidden data?
pls help..

root@vinge [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 192G 182G 304M 100% /
/dev/sda1 99M 24M 70M 26% /boot
tmpfs 5.9G 0 5.9G 0% /dev/shm
/usr/tmpDSK 485M 15M 445M 4% /tmp
 
11 comments
Delete logs, they too take a lot of space.

Thank you for reply, I do delete logs..but only decrease few MB's..
theres is a cpanel account used more than 150GB..all logs associated with this account is already empty..but still I can't find any GB's files in this account..weird for me.. any WHM/cPanel expert here??..
 
Hmm seems your /tmp is full , it can cause this problem ... Do the following and see if its fixed .

You need to have root access to your server. If not, you can’t increase the size of /tmp and /var/tmp partition directory, sorry.


Shutdown httpd and mysql using these commands


Code:
service httpd stop
service mysql stop


First, you need to edit the file securetmp in /usr/local/cpanel/scripts/ folder.


Code:
nano /usr/local/cpanel/scripts/securetmp


As default the size for tmp is 512 MB , just make it something that is convenient to you .


In /usr/local/cpanel/scripts/securetmp file, look for a line like this:


my $tmpdsksize = 512000; # Must be larger than 250000


and change it to


my $tmpdsksize = 2097152; # Must be larger than 250000


This will allow us to allot 2GB of space size for the tmp partition.
Now, you need to log in to SSH using root account to make the changes. Once you are in, run these commands one by one.


Code:
umount -l /tmp
umount -l /var/tmp
rm -fv /usr/tmpDSK
/usr/local/cpanel/scripts/securetmp


Then Restart the server :-


Code:
shutdown -r 0


Now when the server is fully restarted, you can check the partitions using the following command.


Code:
df -h
 
Dear m1rr0z,

This is one of the main problem most of us face when using linux hosting.
I suggest you to consult your hosting provider, they will help you out.


Best Regards,
Dansh
 
Agree with RDP,

if above all fixes don't work, it means your provider disk is overloaded or something miss config. inform them about this.
 
Status
Not open for further replies.
Back
Top