Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
None
-
Linux, x86_64
Description
On executing of
mariabackup --move-back --target-dir=.
|
mariabackup deletes the current sourcefile after an "No space left on device" error before exiting. Only the incomplete target file is still available.
[01] 2021-03-22 16:33:28 Moving ./interactive@002dcreator_log/campaign__event#P#future.ibd to /var/lib/mysql/interactive@002dcreator_log/campaign__event#P#future.ibd
|
[01] 2021-03-22 16:33:28 Copying ./interactive@002dcreator_log/campaign__event#P#future.ibd to /var/lib/mysql/interactive@002dcreator_log/campaign__event#P#future.ibd
|
mariabackup: Error writing file '/var/lib/mysql/interactive@002dcreator_log/campaign__event#P#future.ibd' (errno: 28 "No space left on device")
|
[01] 2021-03-22 16:43:08 Error: copy_file() failed.
|
[01] 2021-03-22 16:43:08 Removing ./interactive@002dcreator_log/campaign__event#P#future.ibd
|
After this the prepared backup is useless as at least one file is missing/incomplete.
mariabackup should delete the incomplete target file instead and allow a re-run of the process to complete the restore.
Also mariabackup should try to use a native filesystem move if on same filesystem instead of a copy/delete cycle to reduce required disk space during the restore step and the option --move-back.