NetWorker:還原資料庫的 SQL Server 紀錄備份失敗:次要複本失敗

Summary: 適用於 Microsoft 的 NetWorker 模組 (NMM) SQL Server 記錄備份失敗。 當資料庫最近已還原時,會發生這種情況 並且 SQL Server AlwaysOn 可用性組 (AAG) 備份首選項設置為“輔助”。

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

適用於 Microsoft 的 NetWorker 模組 (NMM) SQL Server 僅記錄備份失敗。
當滿足以下條件時,會發生這種情況:

  • SQL Server AlwaysOn 可用性群組 (AAG) 備份偏好設定設定為「次要」。
  • 最近已還原一個 SQL 資料庫並將其添加到 AAG 中

症狀包括:

  • 還原的資料庫備份的第一個僅日誌備份升級到完全級別並成功完成
  • 第二次 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 層級僅記錄備份
  • 將 AAG 備份偏好設定為次要
  • 再次執行 NetWorker 層級僅記錄備份

 

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.