VSAN Free question regarding my configuration

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

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

yaroslav (staff)
Staff
Posts: 3472
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 05, 2024 5:53 pm

Let us look into it together. Log a call with support@starwind.com. Use this thread and 1181718 as your references.
thomas_lt
Posts: 10
Joined: Sat Jun 15, 2024 3:41 pm

Thu Jul 11, 2024 7:16 am

Hi,

For your information : I could not wait and installed a trial version of VSAN, with the exact same setup. I only deleted the existing CVM on both hypervisors, imported new ones, and activated them with a trial key.
There was no problem creating the LUNs using the web interface.
I ran the checktargets script, in order to confirm the image paths created, as this was a setting we weren't sure about in the createHA_2 script we have to use with the free version.
(in our case : VSA Storage\mnt\nvme0n1p1\volume1\LUN1\LUN1.img)

I deleted the trial CVMs, and installed back the free CVMs, modified and double checked the createHA_2 script, but again : invalid partner info...

So there is definitively something wrong with the script used in the free version.

I understand the support is limited with the free version, and we could be happy being offered a free version, but why can't we have a sample script with all correct settings ? Ideally, we should only have to modify a few settings only for both nodes, like IP addresses and image path .

I hope we'll be able to test the free version, before considering upgrading to a paid version...
yaroslav (staff)
Staff
Posts: 3472
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 11, 2024 9:52 am

I am glad to know that it works. Please note that moving to FREE will not be possible.
As of the script, I think there was something wrong with the path, that's why I wanted to take a look at the system.
I noticed that $aluaOptimized is set to different values.
You can refer to this script viewtopic.php?f=5&t=5624&p=31505&hilit=tip+3#p31505. Please look carefully each parameter and align them carefully for each side.
thomas_lt
Posts: 10
Joined: Sat Jun 15, 2024 3:41 pm

Thu Jul 11, 2024 10:33 am

Hi Yaroslav,
Thank you for your answer.
Well... it works with the trial version, but I would like it to work with the free version !

Indeed, we had so many tries that the script is now a mess. I carefully reviewed it :

Code: Select all

param($addr="192.168.10.220", $port=3261, $user="root", $password="starwind",
	$addr2="192.168.10.221", $port2=$port, $user2=$user, $password2=$password,
#common
	$initMethod="Clear",
	$size=1200,
	$sectorSize=512,
	$failover=0,
#primary node
	$imagePath="VSA Storage/mnt/nvme0n1p1/volume0",
	$imageName="LUNDATA004",
	$createImage=$true,
	$storageName="",
	$targetAlias="LUNDATA004",
	$autoSynch=$true,
	$poolName="nvme0n1p1",
	$syncSessionCount=1,
	$aluaOptimized=$true,
	$cacheMode="none",
	$cacheSize=0,
	$syncInterface="#p2=172.16.20.20:3260" -f $addr2,
	$hbInterface="#p2=172.16.10.20:3260,192.168.10.221:3260" -f $addr2,
	$createTarget=$true,
#secondary node
	$imagePath2="VSA Storage/mnt/nvme0n1p1/volume0",
	$imageName2="LUNDATA004",
	$createImage2=$true,
	$storageName2="",
	$targetAlias2="LUNDATA004",
	$autoSynch2=$true,
	$poolName2="",
	$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.10.220: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
#	$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.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
#$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()
}

Error code is desperately the same :
Request to 192.168.10.220 ( 192.168.10.220 ) : 3261
-
control HAImage -CreateHeader:"Headers\LUNDATA004\LUNDATA004_HA.swdsk" -pathDirHeaderBackup:"VSA Storage/mnt/nvme0n1p1/volume0" -file:"imagefile9" -size:"2048" -Priority:"#p0=0;#p1=1" -nodeType:"#p0=1;#p1=1" -PartnerTargetName:"#p1=iqn.2008-08.com.starwindsoftware:192.168.10.221-lundata004" -PartnerIP:"#p1=172.16.20.20:sync:3260:1,172.16.10.20:heartbeat:3260:1,192.168.10.221:heartbeat:3260:1" -IsAutoSynchEnabled:"1" -AuthChapLogin:"#p1=0b" -AuthChapPassword:"#p1=0b" -AuthMChapName:"#p1=0b" -AuthMChapSecret:"#p1=0b" -AuthChapType:"#p1=none" -Offset:"0" -CacheMode:"none" -CacheSizeMB:"0" -serial:"23008FB16ABE3518" -eui64:"23008FB16ABE3518" -revision:"0001" -product:"STARWIND" -vendor:"STARWIND" -Replicator:"#p0=0" -WitnessType:"0" -AluaAccessState:"#p0=0;#p1=0"
-
200 Failed: invalid partner info..

I'll try not to look at it until Monday, when we'll discuss about this.

Thanks,
Thomas
yaroslav (staff)
Staff
Posts: 3472
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 11, 2024 11:50 am

It looks like there is something with backup header and the main one.
Let us revert to it on Mon!
CombFiltered
Posts: 30
Joined: Tue Sep 17, 2024 2:11 pm

Wed Sep 18, 2024 6:42 pm

Did this ever get resolved? I'm on the Free as well, trying to figure out LUNs via powershell. I was really confused until I found threads here mentioning it had to be powershell. I had figured there would be an example if it had to be via powershell. That coupled with no reference besides a listing of the scripts is a little baffling.
yaroslav (staff)
Staff
Posts: 3472
Joined: Mon Nov 18, 2019 11:11 am

Wed Sep 18, 2024 8:30 pm

Yes, It was resolved.
The script for standalone device creation is called CreateImageFile.ps1.
Scripts are here viewtopic.php?f=5&t=6852&p=37208&hilit=HINT8#p37208
CombFiltered
Posts: 30
Joined: Tue Sep 17, 2024 2:11 pm

Thu Sep 19, 2024 12:52 am

thomas_lt wrote:
Wed Jul 03, 2024 4:27 pm
it is not possible to search for terms in the forum, so we have to browse every discussion
Fun fact that I found. It’s available on mobile, but you can also force the search icon to show up if you shrink a desktop browser window way down horizontally. Guessing it’s a theme issue?
yaroslav (staff)
Staff
Posts: 3472
Joined: Mon Nov 18, 2019 11:11 am

Thu Sep 19, 2024 6:21 am

yep. That's why I am using desktop appearance all the time.
Post Reply