NetWorker:叢集上的 SQL 資料庫還原失敗:「無法將檔案『<path>』用於叢集伺服器」

Summary: 用於 Microsoft (NMM) SQL 資料庫還原的 NetWorker 模組失敗,並顯示錯誤: nsrsqlrc:無法使用檔案''為群集伺服器。只能使用伺服器的群集資源具有依賴關係的格式化檔。群集組中缺少磁碟資源,或者 SQL Server 群集資源缺少對它的依賴關係。

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 (NMM) SQL 資料庫還原的 NetWorker 模組失敗,並顯示錯誤:

nsrsqlrc: Cannot use file ‘<path>’  for clustered server.
Only formatted files on which the cluster resource of the server has a dependency can be used.
Either the disk resource containing the file is not present in the cluster group or the cluster 
resource of the Sql Server does not have a dependency on it.

例如:

The file  F:\TestRestore\mdd_restore.mdf is the Destination location on a Cluster Drive (Volume)

Cause

該問題的根本原因與目標路徑的群集卷和 SQL Server 的Microsoft故障轉移群集資源有關。
SQL Server 群集資源組缺少與還原目標路徑對應的磁碟的依賴項。

Resolution

若要解決此問題,SQL Server 資料庫管理員應遵循 SQL Server 群集資源和磁碟依賴項的Microsoft指南。


目標是為 SQL Server 資源添加依賴項,以依賴於作為資料庫還原目標的群集卷。

下面分享了上述文章中的步驟。

若要將磁碟依賴項添加到 SQL Server,共用群集磁碟必須與群集管理器中的 SQL Server 資源位於同一組中。

若要移動共用群集磁碟,請選擇要移動到 SQL Server 組的磁碟,然後右鍵按兩下該資源。按一下變更群組。磁碟位於 SQL Server 資源所在的同一組中后,請按照以下步驟將其添加為 SQL Server 依賴項:

  1. 開啟叢集管理員。
  2. 請確定包含 SQL Server 資料庫的所有硬碟資源與 SQL Server 資源位於同一群組中。
  3. 右鍵按下 SQL Server 資源,然後通過選擇「離線」使資源進入離線狀態。
  4. 以滑鼠右鍵按一下 SQL Server 資源,然後選取內容。
  5. 選取相依性標籤。
  6. 選擇“修改”,將磁碟添加到該資源的依賴項清單中。
  7. 使 SQL Server 資源重新連線,然後將 SQL Server 檔放在該共用群集磁碟上

Affected Products

NetWorker Module for Microsoft

Products

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2, NetWorker
Article Properties
Article Number: 000219743
Article Type: Solution
Last Modified: 07 Feb 2025
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.