Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

backup fails - managed backup seems to break regular differential backups. (added log details)

$
0
0

Hello,

I do full backups and diff backups with Ola Hallengren solution to blob storage. I get the following error message: 

Msg 3035, Sev 16, State 1, Line 1 : Cannot perform a differential backup for database "<database>", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option. [SQLSTATE 42000]

The first full backup fixes the issue. 
in the errorlog i see the following events:

/// azure managed backup stun (probably making snapshot in vm)
2020-02-02 20:42:09.77 spid168     I/O is frozen on database <database>. No user action is required. However, if I/O is not resumed promptly, you could cancel the backup.
/// end stun (snapshot is made)
2020-02-02 20:42:11.07 spid169     I/O was resumed on <database>. No user action is required.
/// managed backup starts
2020-02-02 20:42:11.10 Backup      Database backed up. Database: <database>, creation date(time): 2019/10/21(11:20:59), pages dumped: 20499, first LSN: 50653:1736:49, last LSN: 50653:1776:1, number of dump devices: 1, device information: (FILE=1, TYPE=VIRTUAL_DEVICE: {'{C1234567F-7AC6-1234-ABCD-073C7342FE96}10'}). This is an informational message only. No user action is required.
/// managed backup starts
2020-02-02 20:42:11.29 Backup      BACKUP DATABASE successfully processed 0 pages in 4.136 seconds (0.000 MB/sec).
/// regular backups fail:
2020-02-02 20:45:00.90 Backup      Error: 3041, Severity: 16, State: 1.
2020-02-02 20:45:00.90 Backup      BACKUP failed to complete the command BACKUP DATABASE <database> WITH DIFFERENTIAL. Check the backup application log for detailed messages.
///subsequent differentials fail 
2020-02-03 01:45:00.40 Backup      Error: 3041, Severity: 16, State: 1.
2020-02-03 01:45:00.40 Backup      BACKUP failed to complete the command BACKUP DATABASE <database> WITH DIFFERENTIAL. Check the backup application log for detailed messages.

/// errorlog from backupsolution (ola ahllengren)
Date and time: 2020-02-02 20:45:00 [SQLSTATE 01000]
Command: BACKUP DATABASE [<database>] TO URL = N'https://<name>.blob.core.windows.net/<folder>/<servername>/<database>/DIFF/<servername>_<database>_DIFF_20200202_204500.bak' WITH NO_CHECKSUM, COMPRESSION, DIFFERENTIAL, CREDENTIAL = N'<credentialname>' [SQLSTATE 01000]
Msg 3035, Sev 16, State 1, Line 1 : Cannot perform a differential backup for database "<database>", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option. [SQLSTATE 42000]
Msg 3013, Sev 16, State 1, Line 1 : BACKUP DATABASE is terminating abnormally. [SQLSTATE 42000]
Outcome: Failed [SQLSTATE 01000]

I tried to do the following

/// managed backup master switch (on/off)
https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/managed-backup-sp-backup-master-switch-transact-sql?view=sql-server-ver15

/// result running query on production:
Use msdb;  
GO  
EXEC managed_backup.sp_backup_master_switch @new_state=0;  
Go 
/*
Msg 2812, Level 16, State 62, Line 4
Could not find stored procedure 'managed_backup.sp_backup_master_switch'.
*/

I looked into the portal to check automated backup settings:
there is starts with some graphs and used data storage, a message:
There was a problem getting the status of SQL Server on the VM. Please try again after a few minutes.
then 
Automated Backup is currently disabled due to a change in backup settings via SQL Server Managed Backup. When you enable automated backup, your managed backup settings will be overridden.
which makes me wonder if the vm is missing something. (hence the getting status error)

I did not find the missing managed_backup.* procedures in the msdb. 
(i can device several solutions that in the end fix my problem, but i want to understand what is gone wrong. )
any thoughts an where to start?


Paul Fijma


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>