I am creating the cluster with the PowerShell scripting
New-Cluster -Name $Clustername -Node $Hostname -StaticAddress $ClusterIP
But when it comes to execute the command it gives the below error
New-Cluster: Cannot convert '192.168.155.196' to the type 'System.Collections.Specialized.StringCollection' required by parameter 'StaticAddress'. Unable to cast object of type 'System.Net.IPAddress' to type 'System.String'
The error shows $ClusterIP
is a [System.Net.IPAddress]
object. Use its ToString()
method instead:
New-Cluster -Name $Clustername -Node $Hostname -StaticAddress $ClusterIP.ToString()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.