Skip to main content

/dev/root is getting full everyday

Comments

16 comments

  • cPanelMichael
    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.
    0
  • hyder95
    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.
    0
  • MironJ
    Hello, Temporary you can reduce default 5% of the /root partition reserved for the root user and system services. Check reserved space:
    tune2fs -l /dev/root | grep "Reserved block count"
    Reduce it from 5% (2.5G) to 1% (0.5G):
    tune2fs -m 1 /dev/root
    0
  • hyder95
    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.
    0
  • MironJ
    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/
    0
  • hyder95
    Hello MironJ, Thank you for your prompt reply, this commands shows : Reserved block count: 639986 what does it means ??
    0
  • hyder95
    Hello, Can we resize this root partition without installing OS ??
    0
  • MironJ
    Hello MironJ, Thank you for your prompt reply, this commands shows : Reserved block count: 639986 what does it means ??

    It means that 5% (639986 * 4k block size = 2.5 = 5% of 50GB) of the partition space is reserved
    0
  • hyder95
    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.
    0
  • Infopro
    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.

    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,
    rm -rf /tmp/*

    Wouldn't that wipe out your mysql.sock? This doc might be of some use:
    0
  • hyder95
    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.
    0
  • Infopro
    no idea why it getting full quickly

    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?
    0
  • hyder95
    Hello, No, I can't see that file in /tmp/ folder.
    0
  • hyder95
    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.
    0
  • Infopro
    I googled this:
    tmp/eaccelerator/

    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
    0
  • hyder95
    Thank You Infopro.
    0

Please sign in to leave a comment.