Server runs out of free disk space after trying to download a backup file

Created:

2016-11-16 12:54:24 UTC

Modified:

2017-08-16 16:40:51 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Server runs out of free disk space after trying to download a backup file

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux
  • Plesk 10.x for Linux

Symptoms

Backup file can not be downloaded from Tools & Settings > Backup Manager . Nothing happens while clicking on backup file and server became working slower.

Checking disk space, you can see that disk ran out of free space on one of its partitions:

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ploop10434p1 40G 40G 0G 100% /
none 2.0G 4.0K 2.0G 1% /dev
none 2.0G 12K 2.0G 1% /dev/shm

Cause

When backup files are downloaded from the local repository, Plesk creates temporary files in the following directories:

/usr/local/psa/PMM/tmp        <----Full backups
/usr/local/psa/tmp            <----Domains backups

If there is a lack of disk space on the drive where those directories are located, the issue described above will take place.

Resolution

To maintain consistency, do bind-mounting for folders above:

  1. Remove any symlinks for these folders as they will not work.

  2. Verify that no tasks are running in the Backup and Migration managers.

  3. Stop the Plesk service:

    # service psa stop
  4. Bind-mount the corresponding directories. For example, there is the following extra volume:

    # mount | grep data
    /dev/hdc1 on /data type ext3 (rw)

    Simply bind directories from this volume to the Plesk tree, where it should be:

    # pwd
    /usr/local/psa
    # mount --bind /data/PP/psa_tmp tmp

    # pwd
    /usr/local/psa/PMM
    # mount --bind /data/PP/psa_pmm_tmp tmp

    # mount | grep data
    /dev/hdc1 on /data type ext3 (rw)
    /data/PP/psa_tmp on /usr/local/psa/tmp type none (rw,bind)
    /data/PP/psa_pmm_tmp on /usr/local/psa/PMM/tmp type none (rw,bind)

    The /dev/hdc1 volume is mounted to the /data folder, so /data/PP/psa_tmp and /data/PP/psa_pmm_tmp are bind-mounted from this volume to temporary directories.

  5. Start Plesk service:

    # service psa start
  6. Add the corresponding entries to /etc/fstab for auto-mounting of these folders after reboot:

    /data/PP/psa_tmp /usr/local/psa/tmp none bind
    /data/PP/psa_pmm_tmp /usr/local/psa/PMM/tmp none bind

    Warning : Be very careful editing /etc/fstab . Even a simple mistake can lead to a situation when the server will not boot.

Have more questions? Submit a request
Please sign in to leave a comment.