# Database Restoration Failure: Receiving ERROR 1832 (HY000) Yet Have Available Disk Space

**URL:** <https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859>\
**Category:** Help\
**Created:** [April 22, 2020, 11:50am UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859 "2020-04-22T11:50:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymonye](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/y/f14d63/32.png) [@ymonye](https://www.singlestore.com/forum/u/ymonye)\
**Post date:** [April 22, 2020, 11:50am UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/1 "2020-04-22T11:50:43Z")

</div>

Hi,

I’m receiving the following error in mysql when attempting to restore a database pulled from another server, granted I’m attempting to restore from the master aggregator instance of mysql:

  

> ERROR 1832 (HY000): Restoring partitions on `db_data`. Couldn’t find backup file for partition 0 of database `db_data` (there are 24 partitions without backup files).

  

The Operational Errors documentation states “This error means that there is not enough available disk in the backup directory.” However, I have plenty of disk space, roughly 4TB, while the backup is around 100GB. The backup files were copied with the following suffixes, were any missing?:

- db\_data\_0.backup
- db\_data\_0.backup.columns0.tar
- db\_data\_0.backup.columns1.tar  
…
- db\_data\_23.backup
- db\_data\_23.backup.columns0.tar
- db\_data\_23.backup.columns1.tar  
  

[https://docs.memsql.com/v7.0/reference/troubleshooting-reference/operations-errors/](https://docs.memsql.com/v7.0/reference/troubleshooting-reference/operations-errors/)

  

Also, this is a 2 server MemSQL Cluster config as documented from the below thread:

> **[2 Server Cluster Config: External Nodes Stay in an Offline State After...](https://www.singlestore.com/forum/t/2-server-cluster-config-external-nodes-stay-in-an-offline-state-after-restart-ssh-issue/1842)**
>
> Hey all, I’m currently running MemSQL in a 2 server setup on the same private network, with 2 hosts total & 4 nodes total, 1 host per server & 2 nodes per server. Both servers are running CentOS 7.x: Host 1 (Local Host 192.168.1.3):...

---

<div class="post-metadata">

**Author:** ![ymonye](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/y/f14d63/32.png) [@ymonye](https://www.singlestore.com/forum/u/ymonye)\
**Post date:** [April 22, 2020, 6:55pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/2 "2020-04-22T18:55:04Z")

</div>

All files are accesible by the ‘memsql’ account, after performing:

> `chown memsql:memsql`

Still no luck. Here’s the Node view under MemSQL Studio. Those 8TB represent other data, while the database (and backup itself) is under 600GB:

 ![nodes](https://forum-prod-assets20231213123829991800000001.s3.dualstack.us-east-1.amazonaws.com/original/1X/d7d967a328d4c2bf2ccb60f696d8bf2366ec3e76.png)

---

<div class="post-metadata">

**Author:** ![nhoran](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nhoran](https://www.singlestore.com/forum/u/nhoran)\
**Post date:** [April 22, 2020, 7:32pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/3 "2020-04-22T19:32:28Z")

</div>

Hello,

What version of memSQL are you running on?

also I saw a small naming bug, the columnar tar files should have the suffix .backup\_columns, instead of the .backup.columns

---

<div class="post-metadata">

**Author:** ![ymonye](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/y/f14d63/32.png) [@ymonye](https://www.singlestore.com/forum/u/ymonye)\
**Post date:** [April 22, 2020, 8:03pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/4 "2020-04-22T20:03:47Z")

</div>

Hey nhoran

Ahh yes, I’d manually written those into the forum box, but they do have the proper extension of .backup\_colums0.tar & etc.

Source db:  
MemSQL Server 7.0.9

Destination db:  
MemSQL Server 7.0.15

---

<div class="post-metadata">

**Author:** ![nhoran](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nhoran](https://www.singlestore.com/forum/u/nhoran)\
**Post date:** [April 22, 2020, 8:31pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/5 "2020-04-22T20:31:15Z")

</div>

What are you backing up to/restoring from? Cloud storage, network storage, local disk?

It would be helpful if you email your tracelogs of the ma and leaves that are missing partitions to [bug-report@memsql.com](mailto:bug-report@memsql.com) so I can take a look at them.

---

<div class="post-metadata">

**Author:** ![ymonye](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/y/f14d63/32.png) [@ymonye](https://www.singlestore.com/forum/u/ymonye)\
**Post date:** [April 22, 2020, 8:34pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/6 "2020-04-22T20:34:57Z")

</div>

I am backing up from 1 locally managed cluster (1 master, 1 aggregator, 1 leaf), into another locally managed cluster with the same hardware & number of nodes.

I am not sure how to get those logs.

---

<div class="post-metadata">

**Author:** ![nhoran](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nhoran](https://www.singlestore.com/forum/u/nhoran)\
**Post date:** [April 22, 2020, 8:35pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/7 "2020-04-22T20:35:32Z")

</div>

Where did you put the backup files? Are all the partitions on the local disk of the leaf?

---

<div class="post-metadata">

**Author:** ![ymonye](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/y/f14d63/32.png) [@ymonye](https://www.singlestore.com/forum/u/ymonye)\
**Post date:** [April 22, 2020, 8:36pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/8 "2020-04-22T20:36:47Z")

</div>

I have the backup files in the aggregator node directory, on Server 1, while my leaf is on another server.

Should I be restoring it from the same server as the leaf?

---

<div class="post-metadata">

**Author:** ![nhoran](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nhoran](https://www.singlestore.com/forum/u/nhoran)\
**Post date:** [April 22, 2020, 8:38pm UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/9 "2020-04-22T20:38:47Z")

</div>

Yep, so how restore works, the MA will restore the Reference database, in your case named db\_data.backup (there also may be columns associated with it), and the leaves will restore the partition databases. So the leaf needs to be able to access all of the partition files {db\_data\_0.backup, db\_data\_0.backup\_columns\*, … }

I hope that helps!

---

<div class="post-metadata">

**Author:** ![ymonye](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/y/f14d63/32.png) [@ymonye](https://www.singlestore.com/forum/u/ymonye)\
**Post date:** [April 23, 2020, 12:00am UTC](https://www.singlestore.com/forum/t/database-restoration-failure-receiving-error-1832-hy000-yet-have-available-disk-space/1859/10 "2020-04-23T00:00:32Z")

</div>

Thanks,

I was able to resolve this by copying the backup directory to the `<base-install-dir>/data` path on both the master aggregator (on Server 1) and the leaf (on Server 2).

  
From there, I had to change the path and file root permissions on both servers using:

`chmod u=rwx,g=rx,o=rx <base-install-dir>/data/<backup-folder-name>/*`

  
Lastly, I had to ensure the 'memsql' user had permissions to the backup path & files, again on both servers:

```auto
chown memsql:memsql <base-install-dir>/data/<backup-folder-name>
chown memsql:memsql <base-install-dir>/data/<backup-folder-name>/*

```
