NetWorker:群集上的 SQL 数据库还原失败:“无法为群集服务器使用文件'<path>”
Summary:
NetWorker Module for Microsoft (NMM) SQL 数据库恢复失败,并显示错误: 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
NetWorker Module for Microsoft (NMM) SQL 数据库恢复失败,并显示错误:
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 指导准则。
- 群集磁盘依赖关系:请参阅此 Microsoft 文章:
- 在最初未安装 SQL Server 的共享群集驱动器上创建数据库或更改磁盘文件位置
目标是为 SQL Server 资源添加依赖关系,使其依赖于群集卷,而群集卷是数据库还原的目标。
下面分享了上述文章中的步骤。
若要向 SQL Server 添加磁盘依赖关系,共享群集磁盘必须与群集管理器中的 SQL Server 资源位于同一组中。
若要移动共享群集磁盘,请选择要移动到 SQL Server 组的磁盘,然后右键单击该资源。单击更改组。在磁盘位于 SQL Server 资源所在的同一组中后,请按照以下步骤将其添加为 SQL Server 依赖项:
- 打开群集管理器。
- 确保包含 SQL Server 数据库的所有硬盘资源都与 SQL Server 资源位于同一组中。
- 右键单击 SQL Server 资源,然后选择“脱机”,使资源进入脱机状态。
- 右键单击 SQL Server 资源,然后选择“属性”。
- 选择“依赖关系”选项卡。
- 选择Modify以将磁盘添加到该资源的依赖项列表。
- 使 SQL Server 资源重新联机,然后将 SQL Server 文件放在该共享群集磁盘上
Affected Products
NetWorker Module for MicrosoftProducts
Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2, NetWorkerArticle 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.