SCSQL backup fails with error "No SQL resource is discovered on the host"
Applies to
- SnapCenter Plugin for SQL (SCSQL) 4.x
- Microsoft SQL Always On Availability Group (SQL AG)
- Microsoft SQL Failover Cluster Instance (SQL FCI)
Issue
- SnapCenter does not show databases that are part of a SQL AG/FCI as available for backup in the Resources pane and the backups fails with error, "
No SQL resource is discovered on the host. Check SQL resource(s) state on the host
” - The SnapCenter SQL discovery logs show an “
Access Denied
” error returned to a WMI query to enumerate the cluster network resources:
C:\Program Files\NetApp\SnapCenter\SnapCenter Plug-in for Microsoft SQL Server\log\Smsql_<JOB ID#>
2022-08-05T07:00:18.2306069-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] Resource: SELECT * FROM MSCLUSTER_RESOURCE WHERE Type = "Network Name"
2022-08-05T07:00:19.2149795-05:00 ERROR SmSql_<JOB ID#> PID=[XXXX] TID=[66] An unexpected error occurred while retrieving the Cluster Resource data. [Type:Network Name]
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
…
…
2022-08-05T07:00:19.2931077-05:00 INFO SmSql_<JOB ID#> PID=[XXXX] TID=[66] Error when getting FCI resources:
2022-08-05T07:00:19.2931077-05:00 ERROR SmSql_<JOB ID#> PID=[XXXX] TID=[66] An error occurred while retrieving the cluster resources of type 'Network Name'
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
2022-08-05T07:00:19.2931077-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] Check JobID [XXXXX] is marked cancelled or not in DiscoverResource
2022-08-05T07:00:19.2931077-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] Running JobID [XXXXX] is not mark cancelled in DiscoverResource
2022-08-05T07:00:19.3087320-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] Start UpdateDiscoveryResults
2022-08-05T07:00:19.3087320-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] UpdateDiscoveryResults Update SQL Instances and AGs with Operation Result
2022-08-05T07:00:19.3087320-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] End UpdateDiscoveryResults
2022-08-05T07:00:19.3087320-05:00 DEBUG SmSql_<JOB ID#> PID=[XXXX] TID=[66] End DiscoverResource
2022-08-05T07:00:19.3087320-05:00 ERROR SmSql_<JOB ID#> PID=[XXXX] TID=[66] No SQL resource is discovered on the host. Check SQL resource(s) state on the host