I have Starwind operating "CSV-Witness" and "CSV-Disk01" between two nodes.
Its working great.
I have tried to use Add-HAPartner.ps1 to add a third node and get powershell error:
I'd really appreciate any tips or help with where i'm going wrong.The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
Node 1 + Node 2 are doing other duties. So my 3x node starwind cluster are Node 3,4,5
I have followed Starwinds best practice and
- SYNC: each node has 2x 25gb (mellanox-x4) ports direct cable connected to the other two nodes
- SYNC: node 3: 172.16.20.3 <--> node 4: 172.16.20.4
- SYNC: node 4: 172.16.21.4 <--> node 5: 172.16.21.5
- SYNC: node 5: 172.16.22.5 <--> node 3: 172.16.22.3
- ISCSI: each node has 2x 25gb (mellanox-x4) ports connected to SWITCH1, SWITCH2
- ISCSI: node 3: 172.16.30.3, 172.16.40.3
- ISCSI: node 4: 172.16.30.4, 172.16.40.4
- ISCSI: node 5: 172.16.30.5, 172.16.40.5
- HB: each node has 2x mgmt interfaces which HB is on
- HB: node 3: 192.168.1.93, 192.168.1.193
- HB: node 4: 192.168.1.94, 192.168.1.194
- HB: node 5: 192.168.1.95, 192.168.1.195
Code: Select all
#Get-Help Add-HAPartner -full
#Get-Help Add-HADevice
#Get-Help about_node
param($addr="192.168.1.93", $port=3261, $user="x", $password="x", $deviceName="HAImage4",
$addr2="192.168.1.95", $port2=$port, $user2=$user, $password2=$password,
#secondary node
$imagePath2="My computer\S\starwindVHDs",
$imageName2="CSV-Disk01",
$createImage2=$true,
$targetAlias2="csv-disk01", #lowercase
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$syncInterface2="#p2=172.16.20.4:3260,172.16.21.4:3260;#p3=172.16.21.5:3260,172.16.22.5:3260",# -f $addr,
$hbInterface2="#p2=192.168.1.194:3260,192.168.1.94:3260;#p3=192.168.1.195:3260,192.168.1.95:3260",
#$bmpType=1,
#$bmpStrategy=0,
#$bmpFolderPath="",
$selfSyncInterface="#p1=172.16.20.3:3260,172.16.22.3:3260;#p2=172.16.20.4:3260,172.16.21.4:3260",# -f $addr2,
$selfHbInterface="#p1=192.168.1.193:3260,192.168.1.93:3260;#p2=192.168.1.194,192.168.1.94:3260"
)
Import-Module StarWindX
try {
Enable-SWXLog
$server = New-SWServer $addr $port $user $password
$server.Connect()
$device = Get-Device $server -name $deviceName
if( !$device ){
Write-Host "Device not found" -foreground red
return
}
$node = new-Object Node
$node.HostName = $addr2
$node.HostPort = $port2
$node.Login = $user2
$node.Password = $password2
$node.ImagePath = $imagePath2
$node.ImageName = $imageName2
$node.CreateImage = $createImage2
$node.TargetAlias = $targetAlias2
$node.SyncInterface = $syncInterface2
$node.HBInterface = $hbInterface2
$node.AutoSynch = $autoSynch2
$node.SyncSessionCount = $syncSessionCount2
$node.ALUAOptimized = $aluaOptimized2
$node.PoolName = $poolName2
#$node.BitmapStoreType = $bmpType
#$node.BitmapStrategy = $bmpStrategy
#$node.BitmapFolderPath = $bmpFolderPath
Add-HAPartner $device $node $selfSyncInterface $selfHbInterface #$selfBmpFolderPath
} catch {
Write-Host $_ -foreground red
} finally {
$server.Disconnect()
}