Mon Nov 04, 2024 2:03 pm
OK, thanks, but where is "your script"?
I took the ones from C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell that came with the actual starwind vsan installation.
You mean that "{0}" should be replaced with the IP from the second node in the first node declarations and with the IP from the first node in the second node declarations like this:
param($addr="192.168.10.10", $port=3261, $user="root", $password="starwind",
$addr2="192.168.10.191", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="Clear",
$size=1848576,
$sectorSize=4096,
$failover=0,
$bmpType=1,
$bmpStrategy=0,
#primary node
$imagePath="My computer\D\VSAN",
$imageName="masterImg3",
$createImage=$true,
$storageName="",
$targetAlias="targetha3",
$poolName="pool1",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="none",
$cacheSize=0,
$syncInterface="#p2=192.168.10.191:3260" -f $addr2,
$hbInterface="#p4=192.168.10.67:3260,192.168.10.144:3260",
$createTarget=$true,
$bmpFolderPath="",
#secondary node
$imagePath2="My computer\D\VSAN",
$imageName2="partnerImg3",
$createImage2=$true,
$storageName2="",
$targetAlias2="partnerha3",
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$false,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=192.168.10.10:3260" -f $addr,
$hbInterface2="#p3=192.168.10.66:3260,192.168.10.79:3260",
$createTarget2=$true,
$bmpFolderPath2=""
)
Again, it does create imagefile1, but nothing happens on node 2...