NetWorker:已还原数据库的 SQL Server 日志备份失败:辅助复制副本失败
Summary: NetWorker Module for Microsoft (NMM) SQL Server 日志备份失败。 最近还原数据库时会发生这种情况 SQL Server AlwaysOn 可用性组 (AAG) 备份首选项设置为“Secondary”。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
NetWorker Module for Microsoft (NMM) SQL Server 日志仅备份失败。
当满足以下条件时,会发生这种情况:
- SQL Server AlwaysOn 可用性组 (AAG) 备份首选项设置为“Secondary”。
- SQL 数据库最近已还原并添加到 AAG
症状包括:
- 还原的数据库备份的第一个 Logsonly 备份升级到完整级别并成功完成
- 第二个 Logsonly 备份失败,并显示以下错误:
Log backup for database "aogdbcopy" on a secondary replica failed because a synchronization point could not be established on the primary database. Either locks could not be acquired on the primary database or the database is not operating as part of the availability replica. Check the database status in the SQL Server error log of the server instance that is hosting the current primary replica. If the primary database is participating in the availability group, retry the operation.
Cause
此问题的根本原因是,数据库最近已还原并添加到 AAG,但未在 AAG 的主节点上启动完整备份周期。
Resolution
要解决此问题:
- 打开 SQL Server Management Studio 并编辑 可用性组 属性
- 将 AAG 备份首选项 设置为 主
- 为恢复的数据库运行 NetWorker 级别完整备份
- 为还原的数据库运行 NetWorker 级别 Logsonly 备份
- 将 AAG 备份首选项设置为辅助
- 再次运行 NetWorker 级别 Logsonly 备份
Article Properties
Article Number: 000218527
Article Type: Solution
Last Modified: 18 Feb 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.