The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by obak, Jan 14, 2015.

  1. obak

    obak Member

    Joined:
    Jan 14, 2015
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    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:
    root@host [/]# 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:
    root@host [/var]# find /var -type f -size +500000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
    /var/log/messages: 19G
    
    please help me.
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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 ?
     
  3. obak

    obak Member

    Joined:
    Jan 14, 2015
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    hey,

    yes it's pretty simple to configure log rotation since the config file, etc/logrotate.conf is straightforward
     
Loading...

Share This Page