yaroslav (staff) wrote:It retrieves interfaces of 2nd node from the device info. In other words, StarWind Service should retrieve them automatically.
I've played with it but I don't see how this can work. The script starts as follows:
Code: Select all
param($addr="192.168.0.1", $port=3261, $user="root", $password="starwind", $deviceName="HAImage1",
$addr2="192.168.0.2", $port2=$port, $user2=$user, $password2=$password,
#secondary node
$imagePath2="My computer\C\starwind",
$imageName2="partnerImg22",
$createImage2=$true,
$targetAlias2="partnerha22",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2="none",
$cacheSize2=0,
$syncInterface2="#p1={0}:3260" -f $addr,
$hbInterface2="#p1={0}:3260" -f $addr,
$selfSyncInterface="#p1={0}:3260" -f $addr2,
$selfHbInterface="#p1={0}:3260" -f $addr2
)
This is using the management IP's also for Sync and HB. Also it named p1= in both the interfaces for the existing node ad for the new node. When creating a new 3-node cluster you use p1=, p2= and p3=. I modified the script with the correct hb and sync interfaces but I keep getting invalid partner information.
As recommended by Starwind I use direct connections between all nodes. The current setup has only 1 sync and 1 hb between node 1 and 2.
Mangement IP's
Node-1: 192.168.2.91 (already in cluster)
Node-1: 192.168.2.92 (already in cluster)
Node-1: 192.168.2.93 (new node to be added)
Sync between node 1 and 2: 172.16.10.10 and 172.16.10.20 (already in place and working)
Sync between node 2 and 3: 172.16.11.20 and 172.16.11.30
Sync between node 1 and 3: 172.16.12.10 and 172.16.12.30
HB between node 1 and 2: 172.16.20.10 and 172.16.20.20 (already in place and working)
HB between node 2 and 3: 172.16.21.20 and 172.16.21.30
HB between node 1 and 3: 172.16.22.10 and 172.16.22.30
I would assume I need to change the script as follows:
Code: Select all
param($addr="192.168.2.91", $port=3261, $user="root", $password="starwind", $deviceName="HAImage1",
$addr2="192.168.2.93", $port2=$port, $user2=$user, $password2=$password,
#secondary node
$imagePath2="My computer\C\starwind",
$imageName2="partnerImg22",
$createImage2=$true,
$targetAlias2="partnerha22",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2="none",
$cacheSize2=0,
$syncInterface2="#p1=172.16.12.10:3260;#p2=172.16.11.20:3260",
$hbInterface2="#p1=172.16.22.10:3260;#p2=172.16.21.20:3260",
$selfSyncInterface="#p2=172.16.10.20:3260;#p3=172.16.12.30:3260",
$selfHbInterface="#p2=172.16.20.20:3260;#p3=172.16.22.30:3260"
)
But nowhere I need to specify for node-2 which interfaces thát node needs to use. It seems this script is not suitable for this kind of task, or am I missing something?
Running the above results in: 200 Failed: invalid partner info..
Where do I go wrong?