Anyone know how I can prevent receiving an error when my backup is verified? I have a SQL 2012 availability group each with it's own backup maintenance plan with the verify option enabled. However, my availability group has "Prefer Secondary"
enabled so backups are being run on the secondary replica. The Primary server still tries to verify a backup it can't perform. It seems like the verify portion of the maintenance plan isn't checking "sys.fn_hadr_backup_is_preferred_replica"
per the documentation. Is the only solution to write my own backup script that does use "sys.fn_hadr_backup_is_preferred_replica"? It's annoying to get emails every 15 minutes saying my transaction log backup failed when it really didn't...
Error message:
DESCRIPTION:BackupDiskFile::OpenMedia: Backup device '\\MyComputer.MyDomain.com\MyBackupShare\MyDatabase_backup_2013_11_07_095204_0072761.bak' failed to open. Operating system error 2(The system cannot find the file specified.).
Error message:
DESCRIPTION:BackupDiskFile::OpenMedia: Backup device '\\MyComputer.MyDomain.com\MyBackupShare\MyDatabase_backup_2013_11_07_095204_0072761.bak' failed to open. Operating system error 2(The system cannot find the file specified.).