Когда я пытаюсь настроить общий ресурс кластера в Windows 2008 R2, я получаю следующую ошибку:
PS C:\> get-clusterresource share3
Name State Group ResourceType
---- ----- ----- ------------
Share3 Offline Test File Share
PS C:\> get-clusterresource share3|set-clusterparameter path "c:\program files (x86)"
Set-ClusterParameter : Unable to save property changes for 'Share3'.
The cluster resource dependency cannot be found
At line:1 char:48
+ get-clusterresource share3|set-clusterparameter <<<< path "c:\program files (x86)"
+ CategoryInfo : NotSpecified: (:) [Set-ClusterParameter], ClusterCmdletException
+ FullyQualifiedErrorId : Set-ClusterParameter,Microsoft.FailoverClusters.PowerShell.SetClusterParameterCommand
Google и Bing ничего полезного по этому поводу не возвращают.
Любые идеи?
То же самое происходит, когда я использую cluster.exe. И Powershell, и cluster.exe запускались от имени администратора.
Оказывается, мне сначала нужно настроить зависимости для общего ресурса:
add-clusterresourcedependency share3 some_network_name_in_the_same_group
Тогда это работает.