hyder95

Active Member
May 26, 2016
42
2
8
Lahore
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

hyder95

Active Member
May 26, 2016
42
2
8
Lahore
cPanel Access Level
Root Administrator
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.
 

MironJ

Active Member
Dec 9, 2009
43
0
56
cPanel Access Level
Root Administrator
Hello,

Temporary you can reduce default 5% of the /root partition reserved for the root user and system services.

Check reserved space:
Code:
tune2fs -l /dev/root | grep "Reserved block count"
Reduce it from 5% (2.5G) to 1% (0.5G):
Code:
tune2fs -m 1 /dev/root
 

hyder95

Active Member
May 26, 2016
42
2
8
Lahore
cPanel Access Level
Root Administrator
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.
 

MironJ

Active Member
Dec 9, 2009
43
0
56
cPanel Access Level
Root Administrator
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/
 

hyder95

Active Member
May 26, 2016
42
2
8
Lahore
cPanel Access Level
Root Administrator
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.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
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:
https://documentation.cpanel.net/display/CKB/How+to+Manage+your+Hard+Drive+Space
 

hyder95

Active Member
May 26, 2016
42
2
8
Lahore
cPanel Access Level
Root Administrator
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.
 

hyder95

Active Member
May 26, 2016
42
2
8
Lahore
cPanel Access Level
Root Administrator
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.