input license here

How to fix Cpanel full disk error 2022


During the operation, we may encounter the error Cpanel full disk. Today, BKNS will guide how to fix this error in the fastest and latest way in 2022.


Sometimes, unknown things start consuming a lot of your disk space in cPanel. This can lead to a partitioned disk space which is a full space error in cPanel. In this guide, BKNS will walk you through what is taking up most of your disk space and how to free it up.


Cpanel full disk How to free up disk space in Cpanel?


First, use the def command to check if the disk space is really close to full.


df -h

You should see a result similar to the one below:


df -h

Filesystem Size Used Avail Use% Mounted on

devtmpfs 8.7G 0 8.7G 0% /dev

tmpfs 8.7G 7.6M 8.7G 1% /dev/shm

tmpfs 8.7G 59M 8.7G 1% /run

tmpfs 8.7G 0 8.7G 0% /sys/fs/cgroup

/dev/mapper/centos-root 51G 36G 16G 73% /

/dev/sda1 1016M 351M 664M 35% /boot

/dev/mapper/centos-home 1.8T 2.6G 1.8T 1% /home

/dev/loop0 2.2G 195M 1.9G 10% /tmp

tmpfs 2.6G 4.0K 2.6G 1% /run/user/42

tmpfs 2.6G 40K 2.6G 1% /run/user/0

The fifth line in the above output indicates the partition /dev/mapper/centos – root was filled 73%. This is the root partition, that is, all other partitions are in this partition. So it is very reasonable to investigate this partition and this partition alone. Do not confuse this partition with other partitions. Otherwise it will take a lot of time. After getting the results, you will be able to see the partition taking up the most space. See the name of that partition and execute the following command by replacing $partitionpath with the file path.


du -h --max-depth=1 -x /$partition | sort -hr

For example


Consider the following example:


# du -h --max-depth=1 -x /usr | sort -hr

22G /usr

16G /usr/share

3.9G /usr/local

2.1G /usr/lib64

2.2G /usr/lib

413M /usr/bin

272M /usr/src

181M /usr/sbin

162M /usr/libexec

40M /usr/include

0 /usr/selector.etc

0 /usr/selector

0 /usr/games

0 /usr/etc


Here, /usr/share takes up the most space. Now we will use the above mentioned command by replacing $partitionpath with /usr/share.


# du -h --max-depth=1 -x /usr/share | sort -hr

Now you have found the folder that consumes the most space. You can check out individual files in the directory. Finally, you might find out which log files or backups you forgot to delete. Now you can decide what to keep and what to delete to free up disk space.


Conclude


Here is how to fix the error Cpanel full disk. Good luck!


===> See more:



Related Posts
Diệp Quân
Nguyen Manh Cuong is the author and founder of the vmwareplayerfree blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.
SHARE

Related Posts

Subscribe to get free updates

Post a Comment

Sticky