Mon Mar 11, 2024 11:32 am
HI,
I used the "createimagefile" and then the "CreateHA_2" powershell script when creating them
Which part of the script creates the failover strategy is in the "createHA_2" script or the "createimagefile"?
"Createimagefile":
param($addr="127.0.0.1", $port=3261, $user="root", $password="starwind",
$fileName="img1",
$filePath="My Computer\C\Starwind",
$size=12,
$targetAlias="targetimg1",
$sectorSize=512,
$numaNode=0,
$cacheMode="wb",
$cacheSize=128)
CreateHA_2:
param($addr="192.168.0.1", $port=3261, $user="root", $password="starwind",
$addr2="192.168.0.2", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="Clear",
$size=12,
$sectorSize=512,
$failover=0,
$bmpType=1,
$bmpStrategy=0,
#primary node
$imagePath="My computer\C\starwind",
$imageName="masterImg21",
$createImage=$true,
$storageName="",
$targetAlias="targetha21",
$autoSynch=$true,
$poolName="pool1",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="wb",
$cacheSize=128,
$syncInterface="#p2={0}:3260" -f $addr2,
$hbInterface="",
$createTarget=$true,
$bmpFolderPath="",
#secondary node
$imagePath2="My computer\C\starwind",
$imageName2="partnerImg22",
$createImage2=$true,
$storageName2="",
$targetAlias2="partnerha22",
$autoSynch2=$true,
$poolName2="pool1",
$syncSessionCount2=1,
$aluaOptimized2=$false,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1={0}:3260" -f $addr,
$hbInterface2="",
$createTarget2=$true,
$bmpFolderPath2=""
)