Have. A nice weekend.
The Latest Gartner® Magic Quadrant™Hyperconverged Infrastructure Software



Code: Select all
param($addr="10.35.15.15", $port=3261, $user="root", $password="starwind", $deviceName="HAImage1",
$addr2="10.35.15.14", $port2=$port, $user2=$user, $password2=$password,
#secondary node
$imagePath2="/mnt/sdb1/twotbnvme",
$imageName2="lun0",
$createImage2=$true,
$targetAlias2="lun0",
$autoSynch2=$true,
$poolName2="sdb1",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$syncInterface2="#p1={0}:3260" -f $addr,
$hbInterface2="",
$bmpType=1,
$bmpStrategy=0,
$bmpFolderPath="",
$selfSyncInterface="#p1={0}:3260" -f $addr2,
$selfHbInterface=""
)
PS C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell> C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell\AddHaPartner_cust.ps1
Request to 10.35.51.15 ( 10.35.15.15 ) : 3261
-
control 0x000000000118DA00 -AddPartner:"" -PartnerTargetName:"#p1=iqn.2008-08.com.starwindsoftware:10.35.15.14-lun0" -Priority:"#p1=2" -nodeType:"#p1=1" -PartnerIP:"#p1=10.35.
15.14:sync:3260:1" -AuthChapType:"#p1=none" -AuthChapLogin:"#p1=0b" -AuthChapPassword:"#p1=0b" -AuthMChapName:"#p1=0b" -AuthMChapSecret:"#p1=0b" -Replicator:"#p1=0" -typeBitma
pStore:"#p1=1"
-
200 Failed: invalid partner info..
PS C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell>Code: Select all
PS C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell> C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell\AddHaPartner_cust.ps1
Device not found