Portal Home > Knowledgebase > Articles Database > My Space goes almost full. damn dont know what to do :/


My Space goes almost full. damn dont know what to do :/




Posted by muhammadaqib1889, 09-15-2016, 05:27 PM
Hi i have been using this vps for long time I dont know why i got temp files 44gb i started receiving such emails [*****] DISKWARN blocks ⚠: Mount Point “/” (151.80.13.196): 43.37 GB/49.98 GB - 86.79083% Mount Point: /var/tmp Percent Used: 86.79% Disk Block Usage: Used: 43.37 GB Available: 6.6 GB Total: 49.98 GB Mount Point: / Percent Used: 86.79% Disk Block Usage: Used: 43.37 GB Available: 6.6 GB Total: 49.98 GB Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 44G 6.8G 87% devtmpfs 7.6G 0 7.6G 0% /dev tmpfs 7.6G 0 7.6G 0% /dev/shm tmpfs 7.6G 396M 7.2G 6% /run tmpfs 7.6G 0 7.6G 0% /sys/fs/cgroup /dev/sda1 494M 166M 328M 34% /boot /dev/mapper/centos-home 942G 25G 918G 3% /home tmpfs 1.6G 0 1.6G 0% /run/user/0 tmpfs 1.6G 0 1.6G 0% /run/user/1002 tmpfs 1.6G 0 1.6G 0% /run/user/1001 tmpfs 1.6G 0 1.6G 0% /run/user/988 Attached Thumbnails  

Posted by SenseiSteve, 09-15-2016, 05:39 PM
Have you asked your web hosting provider for assistance? That's the first place I'd start.

Posted by HostingBig, 09-15-2016, 06:13 PM
install tmpwatch

Posted by USHost247-ChrisGrigg, 09-15-2016, 07:53 PM
^ | yum install tmpwatch -y Then set it up to run every day via cron when you'd like it to run. Be sure to make it only delete tmp files older than say...12 hours or so. That way it doesn't delete tmp files that are in use.

Posted by BrianHarrison, 09-15-2016, 08:43 PM
A maxed out /tmp is not normal. Tmpwatch will "fix" the problem by automatically deleting files in your /tmp, but it would be good to understand what exactly is building up in your /tmp. You can use the command: du -h --max-depth=1 to track down which folders contain the bulk of the data in your /tmp.

Posted by sleddog, 09-15-2016, 10:29 PM
There is no /var/tmp mountpoint, so that first alert (saying /var/tmp is 86.79% full) is bogus. The root partition (/) is 86.79% full. The problem might be temp files in /var/tmp or /tmp, or it could be log files in /var/log, or it could be files anywhere else (except /boot and /home). du -h --max-depth=1 will show what's going on (as Brian has said).

Posted by net, 09-15-2016, 11:12 PM
Make sure to check also that you do not have bad script/site or no suspicious activity there :-)

Posted by muhammadaqib1889, 09-16-2016, 04:21 AM
How to setup cron job? Is there anyway to run that job now and then in every 3 day.

Posted by muhammadaqib1889, 09-16-2016, 04:26 AM
Can we check it?

Posted by kevincheri, 09-16-2016, 06:08 AM
Have you checked with your host? (should be the easiest of all) Here is the cron job that needed configured, 0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client (make sure you install the package first)

Posted by pluto01, 09-16-2016, 08:47 AM
Check the bigger files du -Sh | sort -rh | head -10 and if you do not need the file please delete, my assuming that the logs

Posted by Maple-Hosting, 09-16-2016, 09:03 AM
Enjoy: http://crontab-generator.org/



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
eAccelerator (Views: 567)