Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-25221

mariabackup deletes sourcefile on "no space left on device"

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            o.friedrich Oliver Friedrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.