SQLSTATE[HY000]: General error: 1021 Disk full - waiting for someone to free some space

Created:

2016-11-16 12:52:28 UTC

Modified:

2017-08-16 17:34:23 UTC

5

Was this article helpful?


Have more questions?

Submit a request

SQLSTATE[HY000]: General error: 1021 Disk full - waiting for someone to free some space

Applicable to:

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

Symptoms

Plesk shows the error in the browser:

ERROR: Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_4f20f_5); waiting for someone to free some space... (Pdo.php:234)

Cause

The error is coming from MySQL server:

http://dev.mysql.com/doc/refman/5.1/en/error-messages-server.html#error_er_disk_full

Error: 1021 SQLSTATE: HY000 (ER_DISK_FULL)
Message: Disk full (%s); waiting for someone to free some space...

The error is self-explained. The mentioned partition in the does not have enough disk space.

Resolution

Free up disk space on the partition.

There are a lot methods to increase free disk space on the partition (/tmp used as an example):

  1. For example, you can mount the additional partition with bind option instead:
    mount -o bind  /var/tmp/ /tmp/
  2. And add the following line to /etc/fstab :
        /var/tmpfs              /tmp                 none    bind    0 0
  3. If the server's filesystem has configured LVM you can extend the /tmp . See more details by link http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
Have more questions? Submit a request
Please sign in to leave a comment.