Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    14
    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:
    143
    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 ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. obak

    obak Member

    Joined:
    Jan 14, 2015
    Messages:
    14
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    143
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice