usr/tmpdsk is huge
usr/tmpDSK is over 4GB but tmp folder is on 1%
[root@XXXXX ~]# 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
[root@XXXXX ~]# 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
-
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. 0 -
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
0 -
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. 0 -
Thanks, @andrew.n 0
Please sign in to leave a comment.
Comments
4 comments