200 Failed: can't find partner node. Hyper-v HyperConverged!
Posted: Mon Aug 21, 2017 8:25 am
Hello, Starwind Team!
Sorry for my English.
We actively use Starwind in our company. But there was a problem with synchronization, after a long disconnection of one node.
There are two nodes:
#Import-Module StarWindX
try
{
$server = New-SWServer -host 10.131.1.61 -port 3261 -user svc -password *
$server.Connect()
$firstNode = new-Object Node
$firstNode.ImagePath = "My computer\d\ais-vsan\ais-iscsi-fast"
$firstNode.ImageName = "ais-iscsi-fast"
$firstNode.Size = 2048000
$firstNode.CreateImage = $true
$firstNode.TargetAlias = "ais-iscsi-fast"
$firstNode.AutoSynch = $true
$firstNode.SyncInterface = "#p2=172.31.1.62:3260"
$firstNode.HBInterface = "#p2=10.131.1.62:3260"
$firstNode.CacheSize = 8192
$firstNode.CacheMode = "wb"
$firstNode.PoolName = ""
$firstNode.SyncSessionCount = 1
$firstNode.ALUAOptimized = $true
#
# device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes.
#
$firstNode.SectorSize = 512
#
# 'SerialID' should be between 16 and 31 symbols. If it not specified StarWind Service will generate it.
# Note: Second node always has the same serial ID. You do not need to specify it for second node
#
#firstNode.SerialID = "050176c0b535403ba3ce06286e33eab"
$secondNode = new-Object Node
$secondNode.HostName = "10.131.1.62"
$secondNode.HostPort = "3261"
$secondNode.Login = "svc"
$secondNode.Password = "*"
$secondNode.ImagePath = "My computer\d\ais-vsan\ais-iscsi-fast"
$secondNode.ImageName = "ais-iscsi-fast"
$secondNode.Size = 2048000
$secondNode.CreateImage = $true
$secondNode.TargetAlias = "ais-iscsi-fast"
$secondNode.AutoSynch = $true
$secondNode.SyncInterface = "#p1=172.31.1.61:3260"
$secondNode.HBInterface = "#p1=10.131.1.61:3260"
$secondNode.ALUAOptimized = $true
$device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod "Clear"
$syncState = $device.GetPropertyValue("ha_synch_status")
while ($syncState -ne "1")
{
#
# Refresh device info
#
$device.Refresh()
$syncState = $device.GetPropertyValue("ha_synch_status")
$syncPercent = $device.GetPropertyValue("ha_synch_percent")
Start-Sleep -m 2000
Write-Host "Synchronizing: $($syncPercent)%" -foreground yellow
}
}
catch
{
Write-Host "Exception $($_.Exception.Message)" -foreground red
}
$server.Disconnect()
Everything worked fine, but with long disconnection of the second node, the synchronization ends, or does not start at all.
An attempt is made to synchronize an error "Device not synchronized. Synchronize current node from partner 'iqn.2008-08.com.starwindsoftware:10.131.1.61-ais-iscsi-fast'
Exception Error:
200 Failed: can't find partner node."
When trying to solve the problem, it was found that the resources of the cluster (ip address 10.131.1.34, 10.131.1.70) listen for the ports of Starwind 3260.
Previously, while the Management Console was available, we could see in it these interfaces (ip address 10.131.1.34, 10.131.1.70), which Starwind automatically adds. And we could remove them from there and the synchronization passed normally. How should we be in the case of the Free version?
I am hope for your help.
Sorry for my English.
We actively use Starwind in our company. But there was a problem with synchronization, after a long disconnection of one node.
There are two nodes:
#Import-Module StarWindX
try
{
$server = New-SWServer -host 10.131.1.61 -port 3261 -user svc -password *
$server.Connect()
$firstNode = new-Object Node
$firstNode.ImagePath = "My computer\d\ais-vsan\ais-iscsi-fast"
$firstNode.ImageName = "ais-iscsi-fast"
$firstNode.Size = 2048000
$firstNode.CreateImage = $true
$firstNode.TargetAlias = "ais-iscsi-fast"
$firstNode.AutoSynch = $true
$firstNode.SyncInterface = "#p2=172.31.1.62:3260"
$firstNode.HBInterface = "#p2=10.131.1.62:3260"
$firstNode.CacheSize = 8192
$firstNode.CacheMode = "wb"
$firstNode.PoolName = ""
$firstNode.SyncSessionCount = 1
$firstNode.ALUAOptimized = $true
#
# device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes.
#
$firstNode.SectorSize = 512
#
# 'SerialID' should be between 16 and 31 symbols. If it not specified StarWind Service will generate it.
# Note: Second node always has the same serial ID. You do not need to specify it for second node
#
#firstNode.SerialID = "050176c0b535403ba3ce06286e33eab"
$secondNode = new-Object Node
$secondNode.HostName = "10.131.1.62"
$secondNode.HostPort = "3261"
$secondNode.Login = "svc"
$secondNode.Password = "*"
$secondNode.ImagePath = "My computer\d\ais-vsan\ais-iscsi-fast"
$secondNode.ImageName = "ais-iscsi-fast"
$secondNode.Size = 2048000
$secondNode.CreateImage = $true
$secondNode.TargetAlias = "ais-iscsi-fast"
$secondNode.AutoSynch = $true
$secondNode.SyncInterface = "#p1=172.31.1.61:3260"
$secondNode.HBInterface = "#p1=10.131.1.61:3260"
$secondNode.ALUAOptimized = $true
$device = Add-HADevice -server $server -firstNode $firstNode -secondNode $secondNode -initMethod "Clear"
$syncState = $device.GetPropertyValue("ha_synch_status")
while ($syncState -ne "1")
{
#
# Refresh device info
#
$device.Refresh()
$syncState = $device.GetPropertyValue("ha_synch_status")
$syncPercent = $device.GetPropertyValue("ha_synch_percent")
Start-Sleep -m 2000
Write-Host "Synchronizing: $($syncPercent)%" -foreground yellow
}
}
catch
{
Write-Host "Exception $($_.Exception.Message)" -foreground red
}
$server.Disconnect()
Everything worked fine, but with long disconnection of the second node, the synchronization ends, or does not start at all.
An attempt is made to synchronize an error "Device not synchronized. Synchronize current node from partner 'iqn.2008-08.com.starwindsoftware:10.131.1.61-ais-iscsi-fast'
Exception Error:
200 Failed: can't find partner node."
When trying to solve the problem, it was found that the resources of the cluster (ip address 10.131.1.34, 10.131.1.70) listen for the ports of Starwind 3260.
Previously, while the Management Console was available, we could see in it these interfaces (ip address 10.131.1.34, 10.131.1.70), which Starwind automatically adds. And we could remove them from there and the synchronization passed normally. How should we be in the case of the Free version?
I am hope for your help.