StarWind VSAN Free

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Tue Jun 15, 2021 8:28 am

Hey,

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
Image

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)!
Someone got a solution maybe for that problem? Would be great
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Tue Jun 15, 2021 8:41 am

Welcome to StarWind Forum. Something similar was reported here https://forums.starwindsoftware.com/vie ... ync#p32682
Good script is here https://forums.starwindsoftware.com/vie ... p+3#p31505.
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Tue Jun 15, 2021 9:24 am

yaroslav (staff) wrote:Welcome to StarWind Forum. Something similar was reported here https://forums.starwindsoftware.com/vie ... ync#p32682
Good script is here https://forums.starwindsoftware.com/vie ... p+3#p31505.
Thanks for your answer, i tryed to add the managment IP to Heatbeat like written in the Articel, no change.

Now when i want to create a new HA its stuck at 0%
Image
Image
There was a thread there "https://forums.starwindsoftware.com/vie ... 5&start=15" about it.

Need i change something in the config .cfg file in starwind folder?

Node01:
192.168.120.48 second HB + Managment
172.16.20.10 Sync
172.16.10.10 HB

Node02:
192.168.120.49 second HB+ Managment
172.16.20.20 sync
172.16.10.20 HB

I use Intel X710 10Gbit Network Card.
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Tue Jun 15, 2021 9:47 am

Please make sure to use IPs of the second server under the Primary Node section and IPs of the first one under the Secondary Node.
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Tue Jun 15, 2021 10:04 am

yaroslav (staff) wrote:Please make sure to use IPs of the second server under the Primary Node section and IPs of the first one under the Secondary Node.
Check, everything allright.


# 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,192.168.120.49:3260"

# 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,192.168.120.48:3260"
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Wed Jun 16, 2021 8:07 am

What is the size of the device you are trying to create? Try creating a 1 GB volume and then extending it with the script.
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Wed Jun 16, 2021 9:26 am

yaroslav (staff) wrote:What is the size of the device you are trying to create? Try creating a 1 GB volume and then extending it with the script.
i want to create a Witness for Cluster with size 2048mb at first, but fails
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Thu Jun 17, 2021 5:25 pm

Cann I have the entire script, please?
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Fri Jun 18, 2021 7:29 am

yaroslav (staff) wrote:Cann I have the entire script, please?
sure

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 192.168.120.48 -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 = "Zeuge"
    # Size of the image
    $firstNode.Size = 2048
    # Create the image
    $firstNode.CreateImage = $true
    # iSCSI target alias (lower case only supported because of RFC)
    $firstNode.TargetAlias = "zeuge"
    # 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,192.168.120.49: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 = "Zeuge"
    $secondNode.Size = 2048
    $secondNode.CreateImage = $true
    $secondNode.TargetAlias = "zeuge"
    $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,192.168.120.48: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() 
Node01:
192.168.120.48 second HB + Managment
172.16.20.10 Sync
172.16.10.10 HB

Node02:
192.168.120.49 second HB+ Managment
172.16.20.20 sync
172.16.10.20 HB
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Mon Jun 21, 2021 8:33 am

It seems you are using script in a wrong way.
Remove the imgs and headers from D:\ and try configuring this part

Code: Select all

param($addr="192.168.0.1", $port=3261, $user="root", $password="starwind",
	$addr2="192.168.0.2", $port2=$port, $user2=$user, $password2=$password,
#common
	$initMethod="Clear",
	$size=12,
	$sectorSize=512,
	$failover=0,
#primary node
	$imagePath="My computer\C\starwind",
	$imageName="masterImg21",
	$createImage=$true,
	$storageName="",
	$targetAlias="targetha21",
	$autoSynch=$true,
	$poolName="pool1",
	$syncSessionCount=1,
	$aluaOptimized=$true,
	$cacheMode="wb",
	$cacheSize=128,
	$syncInterface="#p2={0}:3260" -f $addr2,
	$hbInterface="",
	$createTarget=$true,
#secondary node
	$imagePath2="My computer\C\starwind",
	$imageName2="partnerImg22",
	$createImage2=$true,
	$storageName2="",
	$targetAlias2="partnerha22",
	$autoSynch2=$true,
	$poolName2="pool1",
	$syncSessionCount2=1,
	$aluaOptimized2=$false,
	$cacheMode2=$cacheMode,
	$cacheSize2=$cacheSize,
	$syncInterface2="#p1={0}:3260" -f $addr,
	$hbInterface2="",
	$createTarget2=$true
	)
	
Try this script

Code: Select all

param($addr="192.168.120.48", $port=3261, $user="root", $password="starwind",
	$addr2="192.168.120.49", $port2=$port, $user2=$user, $password2=$password,
#common
	$initMethod="Clear",
	$size=1024,
	$sectorSize=4096,
	$failover=0,
#primary node
	$imagePath="My computer\D\",
	$imageName="masterImg21",
	$createImage=$true,
	$storageName="",
	$targetAlias="targetha21",
	$autoSynch=$true,
	$poolName="pool1",
	$syncSessionCount=1,
	$aluaOptimized=$true,
	$cacheMode="none",
	$cacheSize=128,
	$syncInterface="#p2=172.16.20.20:3260" -f $addr2,
	$hbInterface="172.16.10.20,192.168.120.49" -f $addr2,
	$createTarget=$true,
#secondary node
	$imagePath2="My computer\D\",
	$imageName2="partnerImg22",
	$createImage2=$true,
	$storageName2="",
	$targetAlias2="partnerha22",
	$autoSynch2=$true,
	$poolName2="pool1",
	$syncSessionCount2=1,
	$aluaOptimized2=$false,
	$cacheMode2=$cacheMode,
	$cacheSize2=$cacheSize,
	$syncInterface2="#p1=172.16.20.10:3260" -f $addr,
	$hbInterface2="172.16.10.10,192.168.120.48" -f $addr,
	$createTarget2=$true
	)
	
Import-Module StarWindX

try
{
	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.AutoSynch = $autoSynch
	$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
    
	#
	# 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.AutoSynch = $autoSynch2
	$secondNode.SyncInterface = $syncInterface2
	$secondNode.HBInterface = $hbInterface2
	$secondNode.SyncSessionCount = $syncSessionCount2
	$secondNode.ALUAOptimized = $aluaOptimized2
	$secondNode.CacheMode = $cacheMode2
	$secondNode.CacheSize = $cacheSize2
	$secondNode.FailoverStrategy = $failover
	$secondNode.CreateTarget = $createTarget2
        
	$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()
}
Something similar was reported here viewtopic.php?f=5&t=5815&p=32682&hilit=sync#p32682
Refer to this script viewtopic.php?f=5&t=5624&p=31505&hilit=tip+3#p31505.
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Mon Jun 21, 2021 2:31 pm

yaroslav (staff) wrote:It seems you are using script in a wrong way.
Remove the imgs and headers from D:\ and try configuring this part

Code: Select all

param($addr="192.168.0.1", $port=3261, $user="root", $password="starwind",
	$addr2="192.168.0.2", $port2=$port, $user2=$user, $password2=$password,
#common
	$initMethod="Clear",
	$size=12,
	$sectorSize=512,
	$failover=0,
#primary node
	$imagePath="My computer\C\starwind",
	$imageName="masterImg21",
	$createImage=$true,
	$storageName="",
	$targetAlias="targetha21",
	$autoSynch=$true,
	$poolName="pool1",
	$syncSessionCount=1,
	$aluaOptimized=$true,
	$cacheMode="wb",
	$cacheSize=128,
	$syncInterface="#p2={0}:3260" -f $addr2,
	$hbInterface="",
	$createTarget=$true,
#secondary node
	$imagePath2="My computer\C\starwind",
	$imageName2="partnerImg22",
	$createImage2=$true,
	$storageName2="",
	$targetAlias2="partnerha22",
	$autoSynch2=$true,
	$poolName2="pool1",
	$syncSessionCount2=1,
	$aluaOptimized2=$false,
	$cacheMode2=$cacheMode,
	$cacheSize2=$cacheSize,
	$syncInterface2="#p1={0}:3260" -f $addr,
	$hbInterface2="",
	$createTarget2=$true
	)
	
Try this script

Code: Select all

param($addr="192.168.120.48", $port=3261, $user="root", $password="starwind",
	$addr2="192.168.120.49", $port2=$port, $user2=$user, $password2=$password,
#common
	$initMethod="Clear",
	$size=1024,
	$sectorSize=4096,
	$failover=0,
#primary node
	$imagePath="My computer\D\",
	$imageName="masterImg21",
	$createImage=$true,
	$storageName="",
	$targetAlias="targetha21",
	$autoSynch=$true,
	$poolName="pool1",
	$syncSessionCount=1,
	$aluaOptimized=$true,
	$cacheMode="none",
	$cacheSize=128,
	$syncInterface="#p2=172.16.20.20:3260" -f $addr2,
	$hbInterface="172.16.10.20,192.168.120.49" -f $addr2,
	$createTarget=$true,
#secondary node
	$imagePath2="My computer\D\",
	$imageName2="partnerImg22",
	$createImage2=$true,
	$storageName2="",
	$targetAlias2="partnerha22",
	$autoSynch2=$true,
	$poolName2="pool1",
	$syncSessionCount2=1,
	$aluaOptimized2=$false,
	$cacheMode2=$cacheMode,
	$cacheSize2=$cacheSize,
	$syncInterface2="#p1=172.16.20.10:3260" -f $addr,
	$hbInterface2="172.16.10.10,192.168.120.48" -f $addr,
	$createTarget2=$true
	)
	
Import-Module StarWindX

try
{
	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.AutoSynch = $autoSynch
	$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
    
	#
	# 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.AutoSynch = $autoSynch2
	$secondNode.SyncInterface = $syncInterface2
	$secondNode.HBInterface = $hbInterface2
	$secondNode.SyncSessionCount = $syncSessionCount2
	$secondNode.ALUAOptimized = $aluaOptimized2
	$secondNode.CacheMode = $cacheMode2
	$secondNode.CacheSize = $cacheSize2
	$secondNode.FailoverStrategy = $failover
	$secondNode.CreateTarget = $createTarget2
        
	$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()
}
Something similar was reported here viewtopic.php?f=5&t=5815&p=32682&hilit=sync#p32682
Refer to this script viewtopic.php?f=5&t=5624&p=31505&hilit=tip+3#p31505.
I tryed your script, which doesnt work "Invalid channel format [2]"
Copied the Script from your Reference, changed some but fails too

Code: Select all

param($addr="192.168.120.48", $port=3261, $user="root", $password="starwind",
   $addr2="192.168.120.49", $port2=$port, $user2=$user, $password2=$password,
#common
   $initMethod="Clear",
   $size=1024,
   $sectorSize=4096,
   $failover=0,
#primary node
   $imagePath="My computer\D",
   $imageName="masterImg21",
   $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.120.49:3260" -f $addr2,
   $createTarget=$true,
#secondary node
   $imagePath2="My computer\D",
   $imageName2="partnerImg22",
   $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.120.48:3260" -f $addr,
   $createTarget2=$true
   )
       
    Import-Module StarWindX

    try
    {
       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.AutoSynch = $autoSynch
       $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
       
       #
       # 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.AutoSynch = $autoSynch2
       $secondNode.SyncInterface = $syncInterface2
       $secondNode.HBInterface = $hbInterface2
       $secondNode.SyncSessionCount = $syncSessionCount2
       $secondNode.ALUAOptimized = $aluaOptimized2
       $secondNode.CacheMode = $cacheMode2
       $secondNode.CacheSize = $cacheSize2
       $secondNode.FailoverStrategy = $failover
       $secondNode.CreateTarget = $createTarget2
           
       $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()
    }
again it says there no nics aviable which is false, there are
The imagefile it creates on both nodes but theres no sync, i checked your linked topic about a similar error, yea its similar, but i cant find my issue in my situation

Code: Select all

Antwort von 172.16.20.20: Bytes=32 Zeit<1ms TTL=128
Antwort von 172.16.10.20: Bytes=32 Zeit<1ms TTL=128
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Mon Jun 21, 2021 6:09 pm

Contact us at support@starwind.com. Please use this thread and 527928 as a reference.
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Thu Jul 15, 2021 6:53 am

yaroslav (staff) wrote:Contact us at support@starwind.com. Please use this thread and 527928 as a reference.
Hi yaroslav,

thanks for your support, after disabling iSCSI Targetserver and Fileserver Role everything is working fine.
So if someone got the same issue, above is the solution

After that, i´v got a another problem, maybe someone had the same issue, google didnt helped
One VM is running on ClusterSharedVolume (CSV) and i tested the performance. Read speed is fine, but write speed is slow.

Image
Image

Maybe someone got a solution for that
yaroslav (staff)
Staff
Posts: 2340
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 15, 2021 9:11 am

Hi,

You are always welcome.
Is that happening for 1 VM? I'd like to see underlying storage tests vs. CSV. See the recommended testing methodology here https://www.starwindsoftware.com/best-p ... practices/.
Also, make sure to have the Fixed disks for that VM.
fritte
Posts: 9
Joined: Tue Jun 15, 2021 8:19 am

Mon Jul 19, 2021 1:01 pm

yaroslav (staff) wrote:Hi,

You are always welcome.
Is that happening for 1 VM? I'd like to see underlying storage tests vs. CSV. See the recommended testing methodology here https://www.starwindsoftware.com/best-p ... practices/.
Also, make sure to have the Fixed disks for that VM.
I only have currently one VM on the cluster, tested a new one, same issue.

Code: Select all

172.16.20.20 (sync) Benchmark on Hypervisor
[SUM]   0.00-10.00  sec  11.0 GBytes  9.41 Gbits/sec                  sender
[SUM]   0.00-10.00  sec  10.9 GBytes  9.41 Gbits/sec                  receiver

172.16.10.20 (hbinit) Benchmark on Hypervisor
[SUM]   0.00-10.00  sec  10.9 GBytes  9.40 Gbits/sec                  sender
[SUM]   0.00-10.00  sec  10.9 GBytes  9.40 Gbits/sec                  receiver
Hypervisor Knoten 02 Raid5:

Code: Select all

[Read]
  SEQ    1MiB (Q=  8, T= 1): 14784.792 MB/s [  14099.9 IOPS] <   567.01 us>
  SEQ    1MiB (Q=  1, T= 1):  7487.309 MB/s [   7140.5 IOPS] <   139.80 us>
  RND    4KiB (Q= 32, T= 1):   574.406 MB/s [ 140235.8 IOPS] <   226.72 us>
  RND    4KiB (Q=  1, T= 1):    25.074 MB/s [   6121.6 IOPS] <   163.12 us>

[Write]
  SEQ    1MiB (Q=  8, T= 1):  2178.587 MB/s [   2077.7 IOPS] <  3833.38 us>
  SEQ    1MiB (Q=  1, T= 1):  2154.981 MB/s [   2055.2 IOPS] <   483.76 us>
  RND    4KiB (Q= 32, T= 1):   516.900 MB/s [ 126196.3 IOPS] <   245.41 us>
  RND    4KiB (Q=  1, T= 1):   126.083 MB/s [  30782.0 IOPS] <    32.30 us>
Virtual Machine Test on CSV:

Code: Select all

[Read]
  SEQ    1MiB (Q=  8, T= 1):  6210.557 MB/s [   5922.8 IOPS] <  1346.99 us>
  SEQ    1MiB (Q=  1, T= 1):  3628.800 MB/s [   3460.7 IOPS] <   287.93 us>
  RND    4KiB (Q= 32, T= 1):   367.757 MB/s [  89784.4 IOPS] <   355.49 us>
  RND    4KiB (Q=  1, T= 1):    35.786 MB/s [   8736.8 IOPS] <   113.87 us>

[Write]
  SEQ    1MiB (Q=  8, T= 1):   125.046 MB/s [    119.3 IOPS] < 58533.24 us>
  SEQ    1MiB (Q=  1, T= 1):   100.933 MB/s [     96.3 IOPS] < 10376.80 us>
  RND    4KiB (Q= 32, T= 1):    94.868 MB/s [  23161.1 IOPS] <  1380.04 us>
  RND    4KiB (Q=  1, T= 1):     6.280 MB/s [   1533.2 IOPS] <   650.75 us>
Test on HADevice mounted on one node:

Code: Select all

[Read]
  SEQ    1MiB (Q=  8, T= 1):  2802.211 MB/s [   2672.4 IOPS] <  2990.68 us>
  SEQ    1MiB (Q=  1, T= 1):   556.583 MB/s [    530.8 IOPS] <  1882.40 us>
  RND    4KiB (Q= 32, T= 1):   314.350 MB/s [  76745.6 IOPS] <   413.13 us>
  RND    4KiB (Q=  1, T= 1):     8.352 MB/s [   2039.1 IOPS] <   489.83 us>

[Write]
  SEQ    1MiB (Q=  8, T= 1):   340.181 MB/s [    324.4 IOPS] < 23333.82 us>
  SEQ    1MiB (Q=  1, T= 1):   489.050 MB/s [    466.4 IOPS] <  2140.08 us>
  RND    4KiB (Q= 32, T= 1):   187.068 MB/s [  45670.9 IOPS] <   699.73 us>
  RND    4KiB (Q=  1, T= 1):     6.639 MB/s [   1620.8 IOPS] <   615.50 us>
Least Queue Depth MPIO policy is set on storage.
Post Reply