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?:
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 so I can take a look at them.
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.
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 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: