Skip to main content

DISKWARN (but my tmp folder is only 113mb)

Comments

6 comments

  • cPanelMichael
    Hello :) You may want to check the disk space with commands such as:
    cd /tmp du --max-depth=1 | sort -n | awk 'BEGIN {OFMT = "%.0f"} {print $1/1024,"MB", $2}'
    This should help determine what's taking up the space in your /tmp directory. Thank you.
    0
  • Luis Mota
    Thanks for your reply but when I execute the commands
    cd /tmp du --max-depth=1 | sort -n | awk 'BEGIN {OFMT = "%.0f"} {print $1/1024,"MB", $2}'
    I get this return o_O:
    0 MB ./.ICE-unix 0 MB ./pear 76 MB ./yum-scppt-W0sllP 112 MB .
    0
  • Luis Mota
    I think I found my issue, i've run the command:
    du -sh /*
    And I got the following:
    26G /backup 7.9M /bin 57M /boot 180K /dev 4.0K /error_log 29M /etc 48G /home 251M /lib 30M /lib64 16K /lost+found 4.0K /media 0 /misc 4.0K /mnt 0 /net 32M /opt du: cannot access `/proc/6005/task/6005/fd/4': No such file or directory du: cannot access `/proc/6005/task/6005/fdinfo/4': No such file or directory du: cannot access `/proc/6005/fd/4': No such file or directory du: cannot access `/proc/6005/fdinfo/4': No such file or directory du: cannot access `/proc/17567/task/17583/fdinfo/906': No such file or directory du: cannot access `/proc/17567/task/17583/fdinfo/907': No such file or directory 0 /proc 12K /quota.user 4.0K /razor-agent.log 43M /root 14M /sbin 0 /scripts 4.0K /selinux 4.0K /srv 0 /sys 112M /tmp 8.6G /usr 6.2G /var
    So, I assume the fault is from the /backup folder. There is any problem if I change the settings on WHM to make the backup to /home/backup And if I do so, what will happen to /backup ? I will need to remove it manually?
    0
  • cPanelMichael
    You simply ran the disk usage utility on the root directory instead of the tmp directory. It's possible some processes that are using files from /tmp have not yet closed. A reboot is quick way to ensure those files are closed and to determine if the disk space usage is accurate. Thank you.
    0
  • Luis Mota
    I've run the command on root because: /dev/mapper/vg_servidor-lv_root ext4 50G 41G 5.9G 88% / /tmp none 50G 41G 5.9G 88% /var/tmp
    0
  • cPanelMichael
    There is any problem if I change the settings on WHM to make the backup to /home/backup And if I do so, what will happen to /backup ? I will need to remove it manually?

    I don't advise using the /home partition for backups due to potential quota conflicts. You may want to consider a remote server for backups if you don't have sufficient space for them. As far as removing the existing backups, yes, you would have to remove them manually through the command line. Thank you.
    0

Please sign in to leave a comment.