1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

100% Spaced Used

Discussion in 'Plesk for Linux - 8.x and Older' started by maxx200x, Mar 29, 2007.

  1. maxx200x

    maxx200x Guest

    0
     
    Hi,

    I have this problem that appears every day. I see that I have 100% Space Used.
    I checked the all the log files and they are under 100 MB (I have 20GB disk space). If I stop or restart the server the space returns to 1% as it should be.

    The problem is that when I reach 100% the site does not work anymore.

    Can anybody help me please?
     
  2. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    Do you have root access to your server? If so what 'df -h' command shows?
     
  3. maxx200x

    maxx200x Guest

    0
     
    Yes I have root access.
    Now it shows 435 MB used because I have stopped the server.

    But all I have done was to reset the server and the space used (as it is reported by PLESK) went from 100% to 1 %.

    And I have this problem every day.
     
  4. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    It is quite strange situation. When did you meet it first time? Did you try to re-run statistics utility manually:

    # PRODUCT_ROOT/admin/sbin/statistics
     
  5. maxx200x

    maxx200x Guest

    0
     
    No I haven't tried. But I will do so from now on.
    It should get correct size after I re-run the statistics?
     
  6. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    Statistics utility should be run daily and it updates disk usage statistics in Plesk. Probably it is not run once a day. You need to check your cron entities where should be listed something like:

    0 0 * * * /usr/local/psa/admin/sbin/statistics --calculate-all

    You can also check cron log files, to make sure if statistics is run daily or not.
    Hope this information helps somehow.
     
  7. maxx200x

    maxx200x Guest

    0
     
    Thank you for your help.

    I have schedule the server to execute the command as you told me.
    I have executed the command and I see that the Space Used came from 2% to 1% as it should. It should send me an email when tha task is done.
    If I want to execute the command evry 6 hours, cron should look like:

    0 */6 * * * /usr/local/psa/admin/sbin/statistics --calculate-all ?

    So thank you for helping me so far.

    Another problem is with error_log. When I have problems with my site it grows to 20GB. How can I keep it under 10GB?
     
  8. maxx200x

    maxx200x Guest

    0
     
    Hi, same problem again
    My disk space is 100% used again. I used this command:
    /usr/local/psa/admin/sbin/statistics --calculate-all
    and I get this error:

    I have checked the log files from / var/www/vhosts/mysite/statistics/logs/
    and they are under 100MB.
    There can be other log files that can grow so big (20GB)?

    IF I stop the VPS, the space used starts to go to 1% (as it should be). Than I start the VPS and in 1 or 2 days the problem appears again.

    Can anyone help me, PLEASE?
     
Loading...