I have been unable to get a backup working properly via the readable secondary. (if I preference using the primary for backup, the backup succeeds when I connect to the primary or to the cluster address.)
with the preference set to prefer secondary, connecting to the primary does not backup up as it is set to backup from the secondary.
connecting to the secondary fails as pasted below.
I cannot find any other message regarding the reason for the failure in either the event logs of the OS or in sql server logs though there is a dump file created.
what am I missing?
thanx
Date and time: 2016-05-02 10:01:41
Server: CHK-SQL12-1
Version: 12.0.2000.8
Edition: Enterprise Edition (64-bit)
Procedure: [master].[dbo].[DatabaseBackup]
Parameters: @Databases = 'dbus', @Directory = '\\ibafs\CHK-SQL-HA-BACKUP', @BackupType = 'FULL', @Verify = 'N', @CleanupTime = 180, @CleanupMode = 'AFTER_BACKUP', @Compress = 'Y', @CopyOnly = 'Y', @ChangeBackupType = 'N', @BackupSoftware = NULL, @CheckSum =
'Y', @BlockSize = NULL, @BufferCount = NULL, @MaxTransferSize = NULL, @NumberOfFiles = NULL, @CompressionLevel = NULL, @Description = NULL, @Threads = NULL, @Throttle = NULL, @Encrypt = 'N', @EncryptionAlgorithm = NULL, @ServerCertificate = NULL, @ServerAsymmetricKey
= NULL, @EncryptionKey = NULL, @ReadWriteFileGroups = 'N', @OverrideBackupPreference = 'N', @NoRecovery = 'N', @URL = NULL, @Credential = NULL, @MirrorDirectory = NULL, @MirrorCleanupTime = NULL, @MirrorCleanupMode = 'AFTER_BACKUP', @LogToTable = 'Y', @Execute
= 'Y'
Source: https://ola.hallengren.com
Date and time: 2016-05-02 10:01:42
Database: [dbus]
Status: ONLINE
Standby: No
Updateability: READ_ONLY
User access: MULTI_USER
Is accessible: Yes
Recovery model: FULL
Availability group: schedule_grp
Availability group role: SECONDARY
Availability group backup preference: SECONDARY
Is preferred backup replica: Yes
Differential base LSN: 53634000000133400037
Last log backup LSN: 53634000000089000001
Date and time: 2016-05-02 10:01:42
Command: DECLARE @ReturnCode int EXECUTE @ReturnCode = [master].dbo.xp_create_subdir N'\\ibafs\CHK-SQL-HA-BACKUP\CHK-SQL-HA$schedule_grp\dbus\FULL_COPY_ONLY' IF @ReturnCode <> 0 RAISERROR('Error creating directory.', 16, 1)
Outcome: Succeeded
Duration: 00:00:00
Date and time: 2016-05-02 10:01:42
Date and time: 2016-05-02 10:01:42
Command: BACKUP DATABASE [dbus] TO DISK = N'\\ibafs\CHK-SQL-HA-BACKUP\CHK-SQL-HA$schedule_grp\dbus\FULL_COPY_ONLY\CHK-SQL-HA$schedule_grp_dbus_FULL_COPY_ONLY_20160502_100142.bak' WITH CHECKSUM, COMPRESSION, COPY_ONLY
Msg 3013, Level 16, State 1, Line 7
BACKUP DATABASE is terminating abnormally.
Outcome: Failed
Duration: 00:00:01
Date and time: 2016-05-02 10:01:43
Date and time: 2016-05-02 10:01:43
???