The file system /dev/vzfs, which is mounted at /, has reached critical status because it is 97% full

DaveL

Well-known member
Hi,

Ive just received this automated email saying:

The file system /dev/vzfs, which is mounted at /, has reached critical status because it is 97% full.

Ive had a google and performed a df -h which shows up:

Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 44G 11G 367M 97% /
none 1.0G 4.0K 1.0G 1% /dev

Any idea whats likely to be in this folder? Im guessing backups? How do I access the folder to delete some of this to free up some space?

Any help greatly appreciated!
 
I would take a look into the /tmp and the /var/log directories and delete old tmp files and old log files.
 
Please talk with your server admin about that.

I'd not blindly delete all files in /tmp. Some of them may be important!

But if you don't care:
Code:
rm -rf /tmp/*
 
Please talk with your server admin about that.

I'd not blindly delete all files in /tmp. Some of them may be important!

Thats going to be a problem. Its a VPS from GoDaddy and there support isnt very good!

I have no idea whats taking up all the space, as none of my sites are really that big.
 
cd /var/log
ls -la (this will list all files and sizes in the folder)
rm -rf filename.log
Thanks Mike. I carried out the first two commands and this was the result:

total 176576
drwxr-xr-x 7 root root 4096 Sep 1 18:11 ./
drwxr-xr-x 22 root root 4096 Aug 29 02:58 ../
drwxr-xr-x 3 root wheel 4096 Jun 8 11:52 bandwidth/
-rw------- 1 root root 0 Jun 8 11:11 boot.log
-rw------- 1 root utmp 24246912 Aug 30 20:46 btmp
-rw-r--r-- 1 root root 15496440 Sep 1 18:08 chkservd.log
-rw-r--r-- 1 root root 4882635 Jun 8 12:20 cpanel-install.log
-rw------- 1 root root 36707524 Sep 1 18:12 cron
drwx------ 3 root root 4096 Sep 1 18:10 dcpumon/
-rw-r--r-- 1 root root 0 Jul 5 22:58 dmesg
-rw-r--r-- 1 root root 0 Jun 11 20:30 dmesg.old
-rw-r--r-- 1 root root 141490 Jun 8 11:15 dracut.log
-rw-r----- 1 mailnull mail 14088511 Sep 1 18:11 exim_mainlog
-rw-r----- 1 mailnull mail 8193 Jul 5 03:00 exim_paniclog
-rw-r----- 1 mailnull mail 867124 Sep 1 18:11 exim_rejectlog
drwx------ 2 root root 4096 Jun 8 11:11 httpd/
-rw-r--r-- 1 root root 9347796 Sep 1 18:11 lastlog
-rw------- 1 root root 39002142 Sep 1 18:09 maillog
-rw------- 1 root root 21183673 Sep 1 18:08 messages
-rw-r----- 1 mysql mysql 62158 Sep 1 17:57 mysqld.error.log
-rw-r--r-- 1 root root 220 Jun 8 13:56 quota_enable.log
drwxr-xr-x 2 root root 4096 Sep 1 00:00 sa/
drwx------ 3 root root 4096 Jun 6 03:22 samba/
-rw------- 1 root root 19047212 Sep 1 18:12 secure
-rw-r--r-- 1 mysql mysql 4537539 Sep 1 17:57 slow_queries.log
-rw------- 1 root root 0 Jun 6 03:22 spooler
-rw------- 1 root root 0 Jun 6 03:22 tallylog
-rw-rw-r-- 1 root utmp 29184 Sep 1 18:11 wtmp
-rw-r--r-- 1 root root 3 Sep 1 02:58 xferlog.offset
-rw-r--r-- 1 root root 1 Sep 1 18:11 xferlog.offsetftpsep
-rw------- 1 root root 12973 Jun 12 10:58 yum.log
 
You can also try deleting your httpd error log too

rm -rf /etc/httpd/logs/error_log
service httpd restart
 
Ok, tried deleting som log files, not sure its actually doing anything though as im still at 97% :confused:
 
You can also run

Code:
echo > logfile.log
as an alternative without having to restart any services.
 
Try this too as I see from your ls printout your using cPanel..

rm -fv /home/$user/backup-*$user.tar.gz ; done

rm -fv /home/*/tmp/Cpanel_*

rm -rfv /home/*/fantastico_backups if you use Fantastico.
 
Try this too as I see from your ls printout your using cPanel..

rm -fv /home/$user/backup-*$user.tar.gz ; done

rm -fv /home/*/tmp/Cpanel_*

rm -rfv /home/*/fantastico_backups if you use Fantastico.

Hi Mike,

The first command wouldnt work - said -
-bash: syntax error near unexpected token `done'

I ran the second command and thats taken me down to 87% - so heading in the right direction!

Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 45G 11G 1.6G 87% /
none 1.0G 4.0K 1.0G 1% /dev
 
Back
Top Bottom