February 11, 2016

What to Do If Linux Plesk Server Gets Exhausted?

Finding no disk space after trying to donwload a backup file? 

Are you getting the following warning sign?

When you perform a system backup from the Parallels Plesk Control Panel, then after its completion you normally go to the Backup Manager and Click to download the current backup file. But sometimes file never get downloaded and you experience a slow server performance.

Here's the reason behind it -

The above situation occurs most likely due to the unavailable free disk space on one of your partitions.

Explanation -

If you have a small root partition:

[root@/]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/isw_Volume0p2
9.5G 6.1G 3.0G 68% /
/dev/mapper/isw_Volume0p6
437G 51G 364G 13% /var

You may have set up backups to be stored on another partition:
Directory for storing backup files â "/var/lib/psa/dumps"
Temporary directory for dumps â "/var/tmp"

[root@/]# grep DUMP /etc/psa/psa.conf
DUMP_D /var/lib/psa/dumps
DUMP_TMP_D /var/tmp

However when you download backup files from the Plesk Control Panel, they are copied to a temporary location as a temporary file (these parameters are not manageable):
Full backups -> /usr/local/psa/PMM/tmp
Domains backups -> /usr/local/psa/tmp

Since those folders are located on the small root partition, you server runs out of free space.

The solution is simple - 

You need to create a symlink from the default location to some folder which have the enough free disk space.

For Example:

[root@ /]# ln -s /var/tmp/ /usr/local/psa/PMM/
[root@ /]# ln -s /var/plesk_temp/local-tmp /usr/local/psa/tmp
[root@ /]# chmod -R 777 /var/plesk_tmp/local-tmp

To know more about Linux Servers - https://www.bodhost.com/linux-server-management.php

Click Here!