The Latest Gartner® Magic Quadrant™Hyperconverged Infrastructure Software
Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)
I'm looking at the script now, but how will it know the interfaces for the 2nd node? Starwinds advice is in 2 and 3 clusters to use direct connections. The connection from node 2 and 3 will be on other interfaces therefore. It seems to me that I would need to specify also the hb and sync channels for node 2 to be used by node 3. Or do I miss something?yaroslav (staff) wrote:Hi Alex,
Welcome to StarWind Forum!
AddHaPartner can be fit to this task. You need to use interfaces of the 1st and 3rd nodes; interfaces for the 2nd node (the one that has already been added) the module retrieves automatically.
I've played with it but I don't see how this can work. The script starts as follows:yaroslav (staff) wrote:It retrieves interfaces of 2nd node from the device info. In other words, StarWind Service should retrieve them automatically.
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
)
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"
)
You do not need to specify node 2 anywhere. Just node 1 p1= and node 2 p2=But nowhere I need to specify for node-2 which interfaces thát node needs to use.
Code: Select all
aram($addr="192.168.2.91", $port=3261, $user="root", $password="starwind", $deviceName="HAImage2",
$addr2="192.168.2.93", $port2=$port, $user2=$user, $password2=$password,
#secondary node
$imagePath2="My computer\C\starwind",
$imageName2="partnerImg23",
$createImage2=$true,
$targetAlias2="partnerha23",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2="none",
$cacheSize2=0,
$syncInterface2="#p1=172.16.12.10:3260" -f $addr,
$hbInterface2="#p1=172.16.22.10:3260" -f $addr,
$selfSyncInterface="#p1=172.16.12.30:3260" -f $addr2,
$selfHbInterface="#p1=72.16.22.30:3260" -f $addr2
)
Code: Select all
Request to TEST-NODE1 ( 192.168.2.91 ) : 3261
-
control 0x000002783EFFF540 -AddPartner:"" -PartnerTargetName:"#p1=iqn.2008-08.com.starwindsoftware:192.168.2.93-partnerha23" -Priority:"#p1=2" -nodeType:"#p1=1" -P
artnerIP:"#p1=172.16.12.30:sync:3260:1,72.16.22.30:heartbeat:3260:1" -AuthChapType:"#p1=none" -AuthChapLogin:"#p1=0b" -AuthChapPassword:"#p1=0b" -AuthMChapName:"#p
1=0b" -AuthMChapSecret:"#p1=0b" -Replicator:"#p1=0"
-
200 Failed: operation cannot be completed..
Code: Select all
Param($addr="192.168.2.91", $port=3261, $user="root", $password="starwind", $deviceName="HAImage2",
$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" -f $addr,
$hbInterface2="#p1=172.16.22.10:3260" -f $addr,
$selfSyncInterface="#p1=172.16.12.30:3260" -f $addr2,
$selfHbInterface="#p1=72.16.22.30:3260" -f $addr2
)