i got a problem with my VSAN konfiguration.
Created two HA Devices like described in
https://www.starwindsoftware.com/resour ... rver-2016/
Problem is, my HA Devices doesnt´t sync anymore after shutdown of both nodes.
Jumbo Packet is on 9014 Bytes
Code: Select all
Import-Module StarWindX
try
{
#specify the IP address and credential (this is default cred) of a first node
$server = New-SWServer -host 127.0.0.1 -port 3261 -user root -password starwind
$server.Connect()
$firstNode = new-Object Node
# Specify the path where image file is stored
$firstNode.ImagePath = "My computer\D\"
# Specify the image name
$firstNode.ImageName = "Data"
# Size of the image
$firstNode.Size = 6144000
# Create the image
$firstNode.CreateImage = $true
# iSCSI target alias (lower case only supported because of RFC)
$firstNode.TargetAlias = "data"
# Synchro auto ?
$firstNode.AutoSynch = $true
# partner synchronization interface (second node)
$firstNode.SyncInterface = "#p2=172.16.20.20:3260"
# partner heartbeat interface (second node)
$firstNode.HBInterface = "#p2=172.16.10.20:3260"
# cache size
$firstNode.CacheSize = 64
# cache mode (write-back cache)
$firstNode.CacheMode = "wb"
# storage pool name
$firstNode.PoolName = ""
# synchronization session count. Leave this value to 1
$firstNode.SyncSessionCount = 1
# ALUA enable or not
$firstNode.ALUAOptimized = $true
#
# device sector size. Possible values: 512 or 4096(May be incompatible with some clients!) bytes.
#
$firstNode.SectorSize = 4096
#
# '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 = "050176c0b535403ba3ce02102e33eab"
$secondNode = new-Object Node
$secondNode.HostName = "192.168.120.49"
$secondNode.HostPort = "3261"
$secondNode.Login = "root"
$secondNode.Password = "starwind"
$secondNode.ImagePath = "My computer\D\"
$secondNode.ImageName = "Data"
$secondNode.Size = 6144000
$secondNode.CreateImage = $true
$secondNode.TargetAlias = "data"
$secondNode.AutoSynch = $true
# First node synchronization IP address
$secondNode.SyncInterface = "#p1=172.16.20.10:3260"
# First node heartbeat IP address
$secondNode.HBInterface = "#p1=172.16.10.10: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()
Code: Select all
6/15 10:32:09.791383 1914 Common: *** MountTarget: (session(0000019F25984900), local(0.0.0.0), peer(172.16.20.20), port(3260), target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-zeuge).
6/15 10:32:09.791397 1af4 Common: *** MountTarget: (session(0000019F274B4010), local(0.0.0.0), peer(172.16.10.20), port(3260), target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-zeuge).
6/15 10:32:09.792411 1914 Common: *** MountTarget: Failed to log in to target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-zeuge). Error message: Failed to log in to target. Status: Target not found(515)
.
6/15 10:32:09.792487 1af4 Common: *** MountTarget: Failed to log in to target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-zeuge). Error message: Failed to log in to target. Status: Target not found(515)
.
6/15 10:32:09.792526 1914 HA: *** CNIXInitiator::MountTarget: unable to mount the target (55)!
6/15 10:32:09.792637 1af4 HA: *** CNIXInitiator::MountTarget: unable to mount the target (55)!
6/15 10:32:10.088167 1b28 Common: *** MountTarget: (session(0000019F274B73B0), local(0.0.0.0), peer(172.16.10.20), port(3260), target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-data).
6/15 10:32:10.088787 1b78 Common: *** MountTarget: (session(0000019F2F0AF200), local(0.0.0.0), peer(172.16.20.20), port(3260), target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-data).
6/15 10:32:10.089208 1b28 Common: *** MountTarget: Failed to log in to target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-data). Error message: Failed to log in to target. Status: Target not found(515)
.
6/15 10:32:10.089337 1b28 HA: *** CNIXInitiator::MountTarget: unable to mount the target (55)!
6/15 10:32:10.089622 1b78 Common: *** MountTarget: Failed to log in to target(iqn.2008-08.com.starwindsoftware:c01-node02.idm-energie.at-data). Error message: Failed to log in to target. Status: Target not found(515)
.
6/15 10:32:10.089762 1b78 HA: *** CNIXInitiator::MountTarget: unable to mount the target (55)!