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.

/dev/root is getting full everyday

Discussion in 'Workarounds and Optimization' started by hyder95, Jul 12, 2016.

Tags:
  1. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    I got server from SoYouStart and during installation unfortunately i did not expand its default /dev/root partition size and now it gets full every second day due to temporary files and every time i execute these commands :
    rm -fv /home/*/tmp/Cpanel_*
    rm -rf /tmp/*
    locate .pureftpd-upload | xargs rm -fv
    yum clean all
    these commands clears 2 GB space only.
    My question is can we increase its /dev/root partition size ??
    currently its 49G

    Thank You.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Changing the partition size is likely to require an OS reinstall unless this is a VPS with software that supports live partition changes. However, are you sure /dev/root is 49G? Could you post the output from "df -h" and "df -i" to this thread?

    Thank you.
     
  3. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    Yes, It is 49G.
    Here is the results :
    Filesystem Size Used Avail Use% Mounted on
    rootfs 49G 46G 682M 99% /
    /dev/root 49G 46G 682M 99% /
    devtmpfs 16G 468K 16G 1% /dev
    /dev/md3 1.8T 1.4T 292G 83% /home
    tmpfs 16G 0 16G 0% /dev/shm
    /dev/root 49G 46G 682M 99% /var/tmp
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/bin
    devtmpfs 16G 468K 16G 1% /home/virtfs/domain/dev
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/lib
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/opt
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/tmp
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/usr
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/var
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/sbin
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/lib64
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/var/log
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/var/tmp
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/etc/mail
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/usr/sbin
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/var/spool
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/etc/pki/tls
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/var/cpanel/email_send_limits
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/usr/local/cpanel/3rdparty/mailman
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/usr/local/cpanel/3rdparty/mailman/logs
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/usr/local/cpanel/3rdparty/mailman/lists
    /dev/root 49G 46G 682M 99% /home/virtfs/domain/usr/local/cpanel/3rdparty/mailman/locks

    If it is not possible to resize partition without OS installation, Then is there any way to set cron job on daily basis ?? because OS installation and backing up all customer data is not an easy task. There must be a way to get rid of this issue.

    Thank You.
     
  4. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Temporary you can reduce default 5% of the /root partition reserved for the root user and system services.

    Check reserved space:
    Code:
    tune2fs -l /dev/root | grep "Reserved block count"
    Reduce it from 5% (2.5G) to 1% (0.5G):
    Code:
    tune2fs -m 1 /dev/root
     
  5. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello MironJ,
    Reducing reserved partition is not a solution at all sorry to say, I want to do something permanent and once for all to get rid of this issue. Even i am ready to pay for this issue if anybody could fix this issue.

    Any further suggestions please ??

    Thanks.
     
  6. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I have suggested reducing reserved space only as a temporary solution.
    Except suggestion from @cPanelMichael, check if you can move some things to some other partition and connect it with symlink under /dev/root/
     
  7. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello MironJ,
    Thank you for your prompt reply, this commands shows :
    Reserved block count: 639986
    what does it means ??
     
  8. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    Can we resize this root partition without installing OS ??
     
  9. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    It means that 5% (639986 * 4k block size = 2.5 = 5% of 50GB) of the partition space is reserved
     
  10. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    Does this root partition contains MySQL temp files ?? If yes then how can we remove those temp files ?? because i remember there was an command which clears 6 GB now i completely forgot that command and i just remember mentioned above commands and these commands clears 1.5 GB only.

    Thanks.
     
  11. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Whats generating the temporary files that you mention? It might be easier to solve that problem and reclaim the wasted space rather than to consider resizing anything.

    Also,
    Wouldn't that wipe out your mysql.sock?

    This doc might be of some use:
    https://documentation.cpanel.net/display/CKB/How+to+Manage+your+Hard+Drive+Space
     
  12. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    The command you mentioned does not clear space only this command clears 1.5 Gb space :
    rm -fv /home/*/tmp/Cpanel_*
    and this 1.5 Gb gets full in couple of hours and i repeat this command after every 2 hours, and no idea why it getting full quickly.
    Secondly this thread is useless for me where you refered me, i already tried this.

    Thanks.
     
  13. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Choose any account on your server that you have access to. Make sure that tmp directory is cleared. Upload a file from File Manager, then check that tmp/ directory again. Do you see a new file?
     
  14. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    No, I can't see that file in /tmp/ folder.
     
  15. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hello,
    When i execute this command it clears up some space but it shows some folders are in it like :

    root@server [~]# rm -rf /tmp/*
    rm: cannot remove `/tmp/eaccelerator/555/f': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/555/9': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/555/2/b': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/555/0': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/840/5': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/840/2': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/840/8/9': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/802/9': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/802/a': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/802/0': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/802/4': Directory not empty
    rm: cannot remove `/tmp/eaccelerator/579/1': Directory not empty

    What are these folders ?? and how can we delete those directories ?? and is it safe to delete these directories ??
    I hope i could clear up more space by deleting these folders.

    any suggestions please ??

    Thank You.
     
  16. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I googled this:
    Lots of results. This one may be of some use to you:
    account.geekghost.net/knowledgebase/18/How-can-I-stop-Eaccelerator-from-filling-up-ortmp.html
     
  17. hyder95

    hyder95 Active Member

    Joined:
    May 26, 2016
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Thank You Infopro.
     
    Infopro likes this.
Loading...

Share This Page