Quantcast
Channel: Sysadmins Knowledge Base » Microsoft SQL Server
Viewing all articles
Browse latest Browse all 12

Error: Cannot use file for clustered server

$
0
0

Recently I was trying to restore 100 databases into a newly provisioned shared clustered disks and ran into this error message using Commvault:

ERROR CODE: Query Result [Cannot use file 'G:\Data\database1.mdf' 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.File 'database1' cannot be restored to 'G:\Data\database1.mdf'. Use WITH MOVE to identify a valid location for the file.Cannot use file 'G:\Data\database1.ldf' for clustered server.

It appears if you attempt to create/move a database(s) on another shared cluster drive when the SQL Server resource is not dependant on that disk, you tend to receive the above error or other similar errors as documented by Microsoft.

Steps needed to fix this:

- Open the Cluster Administrator via Administrative Tools

sql-cvault01
- Click on Storage and ensure the new disk is in the same group as the SQL Server resource and Online

sql-cvault02
- Expand Services and applications, click on your clustered application (in my case is the default SQL Server (MSSQLSERVER)), right-click the SQL Server resource, and then click Properties

sql-cvault03
- Click the Insert button to add an additional row, then select the new shared disk that will contain your SQL databases

sql-cvault04
- Ensure that all resources required are present and then click OK to save the changes


Viewing all articles
Browse latest Browse all 12

Trending Articles