I'm trying your Free product on a 2-node config consisting of 2 HP Proliant DL380 Gen 9's.
Last week I tried the configuration as a Windows application but got struck on the CreateHA_2.ps1 script.
I got errors all over and after diving into all suggested posts on those matters and trying out every suggested thing, I gave up on that.
So I tried the configuration as a CVM instead and the Web UI has proved to be a great help.
I now managed to configure everything (network, physical disks, storage pools and volumes) and all configurations passed the checks. So far so good.
Unfortunately the script keeps spawning the following error and despite the fact I can reach all networks from both CVMs I can't get both to communicate with each other:
200 Failed: invalid partner info..
Here is the NIC Configuration:
Node 1:
192.168.22.95 - Host
192.168.22.50 - CVM
172.16.20.50 - Sync
172.16.50.50 - Sync2
172.16.10.50 - Heartbeat
172.16.40.50 - Heartbeat2
Node 2:
192.168.22.96 - Host
192.168.22.51 - CVM
172.16.20.51 - Sync
172.16.50.51 - Sync2
172.16.10.51 - Heartbeat
172.16.40.51 - Heartbeat2
Here is the script I am currently using (single NICs for testing):
Code: Select all
param($addr="192.168.22.50", $port=3261, $user="root", $password="starwind",
$addr2="192.168.22.51", $port2=$port, $user2=$user, $password2=$password,
#common
$initMethod="SyncFromFirst",
$size=3056000,
$sectorSize=512,
$failover=0,
# $bmpType=1,
# $bmpStrategy=0,
#primary node
$imagePath="VSA Storage\mnt\sdb1\volume1",
$imageName="masterImg21",
$createImage=$true,
$storageName="",
$targetAlias="targetha21",
$poolName="",
$syncSessionCount=1,
$aluaOptimized=$true,
$cacheMode="none",
$cacheSize=0,
$syncInterface="#p2=172.16.20.51:3260" -f $addr,
$hbInterface="#p2=172.16.10.51:3260" -f $addr,
$createTarget=$true,
# $bmpFolderPath="",
#secondary node
$imagePath2="VSA Storage\mnt\sda1\volume1",
#$imagePath2="VSA Storage\mnt\crypted1",
$imageName2="partnerImg22",
$createImage2=$true,
$storageName2="",
$targetAlias2="partnerha22",
$poolName2="",
$syncSessionCount2=1,
$aluaOptimized2=$true,
$cacheMode2=$cacheMode,
$cacheSize2=$cacheSize,
$syncInterface2="#p1=172.16.20.50:3260" -f $addr2,
$hbInterface2="#p1=172.16.10.50:3260" -f $addr2,
$createTarget2=$true
# $bmpFolderPath2=""
)
Import-Module StarWindX
try
{
Enable-SWXLog -level SW_LOG_LEVEL_DEBUG
$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 yellow
Start-Sleep -m 2000
$device.Refresh()
}
}
catch
{
Write-Host $_ -foreground red
}
finally
{
$server.Disconnect()
}
All suggestions would be more than welcome!
Thanks in advance
Kurt