Quantcast
Channel: StarWind Software
Viewing all articles
Browse latest Browse all 792

StarWind Virtual SAN (VSAN) [+Free], HCI Appliance (HCA), Virtual HCI Appliance (VHCA) [+Free] • starwind vsan powershell issue

$
0
0
I tryed hours over hours to create a ha device again, but it fails, no matter what i change

Code:

param($addr="192.168.150.48", $port=3261, $user="root", $password="starwind",   $addr2="192.168.150.49", $port2=$port, $user2=$user, $password2=$password,#common$initMethod="Clear",$size=1200,$sectorSize=512,$failover=0,#primary node$imagePath="My computer\D",$imageName="masterImg23",$createImage=$true,$storageName="",$targetAlias="targetha21",$autoSynch=$true,$poolName="pool1",$syncSessionCount=1,$aluaOptimized=$true,$cacheMode="wb",$cacheSize=128,$syncInterface="#p2=172.16.20.20:3260" -f $addr2,$hbInterface="#p2=172.16.10.20:3260,192.168.150.49:3260" -f $addr2,$createTarget=$true,#secondary node$imagePath2="My computer\D",$imageName2="partnerImg24",$createImage2=$true,$storageName2="",$targetAlias2="partnerha22",$autoSynch2=$true,$poolName2="pool1",$syncSessionCount2=1,$aluaOptimized2=$true,$cacheMode2=$cacheMode,$cacheSize2=$cacheSize,$syncInterface2="#p1=172.16.20.10:3260" -f $addr,$hbInterface2="#p1=172.16.10.10:3260,192.168.150.48:3260" -f $addr,$createTarget2=$true)    Import-Module StarWindXtry{Enable-SWXLog$server = New-SWServer -host $addr -port $port -user $user -password $password$server.Connect()$firstNode = new-Object Node$firstNode.HostName = $addr$firstNode.HostPort = $port$firstNode.Login = $user$firstNode.Password = $password$firstNode.ImagePath = $imagePath$firstNode.ImageName = $imageName$firstNode.Size = $size$firstNode.CreateImage = $createImage$firstNode.StorageName = $storageName$firstNode.TargetAlias = $targetAlias$firstNode.SyncInterface = $syncInterface$firstNode.HBInterface = $hbInterface$firstNode.PoolName = $poolName$firstNode.SyncSessionCount = $syncSessionCount$firstNode.ALUAOptimized = $aluaOptimized$firstNode.CacheMode = $cacheMode$firstNode.CacheSize = $cacheSize$firstNode.FailoverStrategy = $failover$firstNode.CreateTarget = $createTarget$firstNode.BitmapStoreType = $bmpType$firstNode.BitmapStrategy = $bmpStrategy$firstNode.BitmapFolderPath = $bmpFolderPath    ## device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes. #$firstNode.SectorSize = $sectorSize    $secondNode = new-Object Node$secondNode.HostName = $addr2$secondNode.HostPort = $port2$secondNode.Login = $user2$secondNode.Password = $password2$secondNode.ImagePath = $imagePath2$secondNode.ImageName = $imageName2$secondNode.CreateImage = $createImage2$secondNode.StorageName = $storageName2$secondNode.TargetAlias = $targetAlias2$secondNode.SyncInterface = $syncInterface2$secondNode.HBInterface = $hbInterface2$secondNode.SyncSessionCount = $syncSessionCount2$secondNode.ALUAOptimized = $aluaOptimized2$secondNode.CacheMode = $cacheMode2$secondNode.CacheSize = $cacheSize2$secondNode.FailoverStrategy = $failover$secondNode.CreateTarget = $createTarget2$secondNode.BitmapFolderPath = $bmpFolderPath2        $device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod $initMethod    while ($device.SyncStatus -ne [SwHaSyncStatus]::SW_HA_SYNC_STATUS_SYNC){$syncPercent = $device.GetPropertyValue("ha_synch_percent")        Write-Host "Synchronizing: $($syncPercent)%" -foreground yellowStart-Sleep -m 2000$device.Refresh()}}catch{Write-Host $_ -foreground red }finally{$server.Disconnect()}
-
200 Failed: invalid partner info..

im not sure whats going on, used the "CreateHA_2.ps1" as reference, but still fails

Windows Server 2019 Standard using StarWind VSAN Free 8.0.15469.0, i can connect to both starwind vsan instances with the limited gui and ping to all ip is going as expected, still starwind trows this non informational 200 failed error. it does create the .img file on the local machine, but not more happens

Statistics: Posted by fritte — Sat Jul 20, 2024 9:03 am



Viewing all articles
Browse latest Browse all 792

Trending Articles