Boris Horvat

Active Member
Jul 29, 2014
26
1
51
Split, Croatia, Croatia
cPanel Access Level
Root Administrator
usr/tmpDSK is over 4GB but tmp folder is on 1%

[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 95G 0 95G 0% /dev
tmpfs 50G 0 50G 0% /dev/shm
tmpfs 95G 36M 95G 1% /run
tmpfs 95G 0 95G 0% /sys/fs/cgroup
/dev/md2 1.8T 296G 1.4T 18% /
/dev/nvme0n1p1 510M 3.6M 507M 1% /boot/efi
/dev/loop0 3.9G 8.9M 3.7G 1% /tmp
tmpfs 19G 0 19G 0% /run/user/1001
tmpfs 19G 0 19G 0% /run/user/0
[[email protected] ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
devtmpfs 24712411 1745 24710666 1% /dev
tmpfs 24723335 1 24723334 1% /dev/shm
tmpfs 24723335 2028 24721307 1% /run
tmpfs 24723335 13 24723322 1% /sys/fs/cgroup
/dev/md2 117145600 1722833 115422767 2% /
/dev/nvme0n1p1 0 0 0 - /boot/efi
/dev/loop0 262144 249 261895 1% /tmp
tmpfs 24723335 1 24723334 1% /run/user/1001
tmpfs 24723335 1 24723334 1% /run/user/0
 

andrew.n

Well-Known Member
Jun 9, 2020
930
345
63
EU
cPanel Access Level
Root Administrator
that's fine. It's like an image. As large as you make it takes that much of space regardless how much of that is really being used.
 
Last edited:

Boris Horvat

Active Member
Jul 29, 2014
26
1
51
Split, Croatia, Croatia
cPanel Access Level
Root Administrator
can i delete it?

i found this solution... is it working?


  • stop all services which uses /tmp
    service httpd stop
    service mysql stop
    service chkservd stop
  • remove the tmp directory
    umount -1 / tmp
    umount -1 /var/tmp
    rm -fv /usr/tmpDSK
  • recreate and secure /tmp
    edit /scripts/securetmp and change the $tmpdsksize to your chosen number of bytes (we use 20480000 = 2Gb)
    /scripts/securetmp answering yes to both questions
  • restart the server
    reboot
 
Last edited:

andrew.n

Well-Known Member
Jun 9, 2020
930
345
63
EU
cPanel Access Level
Root Administrator
You can but you will earn like 2GB extra space...is it worth it? and if you have a busy server 2GB might not be enough.
 
  • Like
Reactions: cPRex