SOLVED root and tmp partitions running low on space

Dec 22, 2017
7
4
3
Mumbai
cPanel Access Level
Root Administrator
Hello.. I am not sure why the "/" and "/var/tmp" on my server gets used up so quickly day in day out.

I am running Litespeed and Cloudlinux on this server.

Below are the specs and details.

From WHM:1568443280511.png

Code:
uname -a
Linux sky.example.com 3.10.0-962.3.2.lve1.5.26.3.el7.x86_64 #1 SMP Wed Aug 14 08:29:59 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                  32G     0   32G   0% /dev
tmpfs                     32G  1.5M   32G   1% /dev/shm
tmpfs                     32G  915M   31G   3% /run
tmpfs                     32G     0   32G   0% /sys/fs/cgroup
/dev/mapper/centos-root   50G   46G  5.0G  91% /
/dev/sda1                497M  283M  214M  57% /boot
/dev/mapper/centos-home  850G  121G  729G  15% /home
tmpfs                    6.3G     0  6.3G   0% /run/user/0

lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0 931.5G  0 disk
├─sda1            8:1    0   500M  0 part /boot
└─sda2            8:2    0   931G  0 part
  ├─centos-root 253:0    0    50G  0 lvm  /
  ├─centos-swap 253:1    0  31.4G  0 lvm  [SWAP]
  └─centos-home 253:2    0 849.5G  0 lvm  /home

 cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Feb 13 02:52:33 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root /       xfs     defaults,uquota 0       0
UUID=2409319d-d96c-4f3b-8367-f1bcf430af58 /boot                   xfs     defaul                                                   ts        0 0
/dev/mapper/centos-home /home   xfs     defaults,uquota 0       0
/dev/mapper/centos-swap swap                    swap    defaults        0 0
I tried "yum clean all" and deleting the lshttpd/swap files from /tmp & /var/tmp manually.. but still it goes up after few minutes.

Installed tmpwatch and put the cronjob to clear tmp files, still not happy with it.

I would need some help in bringing down the /tmp usage as lower as possible.

Also, If I move /home to a secondary SSD, can I re-arrange diskspace for "/", "/boot", and "/var/tmp" on current drive? If yes, How can I do it?

Thanks in Advance.

anybody helping?
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
7,508
591
263
Houston
cPanel Access Level
DataCenter Provider
Hello,

tmp is used pretty frequently by a lot of the services on your server, including mysql and php. For disk space issues like those you're encountering the best advice I can provide to you would be to contact your service provider or system administrator if you're unsure how to proceed. If you don't have a system administrator you might find one here: System Administration Services

You might want to look at the following for the issue you're having with tmp How To Increase size of /var/tmp and /tmp ?

Also, If I move /home to a secondary SSD, can I re-arrange diskspace for "/", "/boot", and "/var/tmp" on current drive? If yes, How can I do it?
I wouldn't recommend this but this is primarily something a system administrator can tell you if it's possible - on some VM systems it is possible to resize but for the most part this is going to be something you need to provision a new server for.
 
Dec 22, 2017
7
4
3
Mumbai
cPanel Access Level
Root Administrator
Hello,

tmp is used pretty frequently by a lot of the services on your server, including mysql and php. For disk space issues like those you're encountering the best advice I can provide to you would be to contact your service provider or system administrator if you're unsure how to proceed. If you don't have a system administrator you might find one here: System Administration Services

You might want to look at the following for the issue you're having with tmp How To Increase size of /var/tmp and /tmp ?

I wouldn't recommend this but this is primarily something a system administrator can tell you if it's possible - on some VM systems it is possible to resize but for the most part this is going to be something you need to provision a new server for.
Thanks..

I asked the DC to install a new SSD with custom and bigger partitions for var & tmp, installed Cpanel and other scripts and moved backup from old drive to SSD.

Looks good now :)
 
  • Like
Reactions: cPanelLauren