#1 Global Leader in Data Resilience

Failed to prepare guest for SQL Server transaction log backup Details: Job owns SQL Server transaction logs backup

KB ID: 2029
Product: Veeam Backup & Replication | 12 | 12.1 | 12.2
Published: 2015-04-27
Last Modified: 2024-08-16
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Challenge

Microsoft SQL Server Log Backup job displays the following warning:

Failed to prepare guest for SQL Server transaction log backup Details: Job <job_name> owns SQL Server transaction logs backup
Failed to prepare guest for SQL Server transaction log backup Details: Job SQL owns SQL Server transaction logs backup

This issue can also occur for Oracle Archived Log Backup, and will display the following warning:

Cannot delete Oracle archived logs because job <job_name> is active

For PostgreSQL Transaction Log Backup, this issue will manifest with the warning:

Failed to prepare guest for PostgreSQL log backup Details: Another job is currently backing up PostgreSQL logs
Failed to prepare guest for PostgreSQL log backup Details: Another job is currently backing up PostgreSQL logs

Cause

Veeam Backup & Replication is designed only to allow one Backup Job to be responsible for a server's log backup. This is done to prevent possible restore issues. To prevent another job from attempting to take over the log backup process, there is a 7-day timeout in which the job currently responsible for the log backup must not run.
Note Regarding SQL Always On availability groups

When backing up an Always On availability group's nodes it is best practice to have all the nodes in the same job.

Veeam Backup & Replication will display the warning related to this KB if it detects that the server being backed up is part of a SQL Always On group and another node in that group is already being processed by SQL Transaction Log Backup.

Further reading on this topic:

Solution

Scenario 1: Unintended Duplicate Transaction Log Backup

If the job throwing the warning is not intended to manage the server's log backup operations, edit the backup job and disable the log backup function for that VM.

 

Scenario 2: Transaction Log Responsibility Migration

If you are migrating the responsibility of log backup from one job to another job, disable log backup in the old job and then review the three options below:

Option 1: Wait

Wait for the 7-day timeout to pass, and the new job can then back up the logs.
The timer will start from the last day the VM was processed by the old job.

Option 2: Delete all Log Backups created by the Old Job

*This option is not available for PostgreSQL Transaction Log Backups.
This option will remove all transaction/archive logs for the SQL /Oracle VMs in that backup set collected after the most recent restore point was created. You will still have point-in-time restores for all restore points leading to the most recent backup.

Remove
Option 3: Adjust the Timeout

*This option is not available for PostgreSQL Transaction Log Backups.

The timeout between the last time one job performed SQL Log Backup for a Microsoft SQL server and when another job will be permitted to do so is adjustable by creating the following value on the Veeam Backup Server.

Key Location: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\
Value Name: SqlBackupLogsAgeDaysToSkipLogBackup
Value Type: DWORD (32-bit) Value
Value Data(Dec) Default: 7

*No reboot or service restart is required; the new timeout value will be used during the next job run.

Microsoft SQL Truncation Restriction
In addition to not allowing another job to take over Microsoft SQL Transaction Log backups for SQL Server, the software will also prevent another job from triggering Microsoft SQL Log truncation on a SQL server if any job is actively performing an SQL Transaction Log Backup for that SQL Server. By default, the timeout between the last time an SQL Transaction Log Backup occurred and when another job will be permitted to trigger truncation of that same SQL log is 7 days. This value can be adjusted using the DWORD SqlBackupLogsAgeDaysToSkipTruncate.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.