file system rootfs, which is mounted at /, has reached warn status because it is 90% full

obak

Member
Jan 14, 2015
14
0
1
cPanel Access Level
Root Administrator
I am receiving this email message titled "The file system rootfs, which is mounted at /, has reached warn status because it is 90% full."

The rootfs & /dev/root is 90% full (please see bellow). What Can I do now? How to clean this and get free spaces?

Code:
[email protected] [/]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           49G   42G  4.9G  90% /
/dev/root        49G   42G  4.9G  90% /
devtmpfs         16G  272K   16G   1% /dev
/dev/md3        1.8T   17G  1.7T   1% /home
tmpfs            16G     0   16G   0% /dev/shm
/dev/loop0      485M   11M  449M   3% /tmp
/dev/loop0      485M   11M  449M   3% /var/tmp
I also found this 16 GB files here:
Code:
[email protected] [/var]# find /var -type f -size +500000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
/var/log/messages: 19G
please help me.
 

triantech

Well-Known Member
Jul 1, 2014
143
1
18
Kochi, India, India
cPanel Access Level
Root Administrator
Hey,

/var/log/messages contains the general logs associated with your server. If you do not have anything to check or investigate, you can safely clear this log to free up the space ! Also, why not consider about enabling log rotation for these logs ? I guess you haven't turned it on yet ?
 

obak

Member
Jan 14, 2015
14
0
1
cPanel Access Level
Root Administrator
@triantech,

Did you mean schedule logging? If not, how can i do that?
In WHM Backup settings previously it was each day of week. But I set it today once a week.
please tell me how to enable enabling log rotation and proper setting.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello :)

Log rotation for /var/log/messages is an OS-level function as opposed to a cPanel/WHM function. You can enable logrotate for /var/log/messages using the instructions in the following thread as an example:

Log Rotation

Thank you.