can't get HA2 script to successfully complete.

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

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

Post Reply
efbeckwith
Posts: 2
Joined: Sun Aug 25, 2024 7:32 pm

Sun Aug 25, 2024 9:05 pm

I have installed starwind on 2 windows 2022 servers that I will be using for testing some failover clustering. when I run the provided powershell script It successfully creates the LUN but synchronization fails.

Server 1:
Windows IP 192.168.1.50
CVM1 Mgmt: 192.168.1.70
CVM1 iSCSI/Data: 10.0.0.75
CVM1 synch: 10.2.0.75

Server 2:
Windows IP 192.168.1.51
CVM2 Mgmt: 192.168.1.71
CVM2 iSCSI/Data: 10.0.0.76
CVM2 synch: 10.2.0.76

I have a storage pool, SDC1, and a volume within that called firstdatastore, showing on both cvm.

when I use the following parameters for the powershell script it creates the paired LUN but sychronization fails with the error message : Request to 192.168.1.70 ( 192.168.1.70 ) : 3261
-
control 0x000000000525C240 -InitSynchronize:"" -SynchronizationType:"1" -SynchronizerTargetName:"iqn.2008-08.com.starwindsoftware:192.168.1.70-testha"
-
200 Failed: Operation cannot be completed. Can't send command to the partner node..

Code: Select all

#common
	$initMethod="syncfromfirst",
	$size=1024,
	$sectorSize=512,
	$failover=0,
	$bmpType=1,
	$bmpStrategy=0,
#primary node
	$imagePath="/mnt/sdc1/firstdatastore",
	$imageName="testHA1",
	$createImage=$true,
	$storageName="",
	$targetAlias="TestHA",
	$poolName="sdc1",
	$syncSessionCount=1,
	$aluaOptimized=$true,
	$cacheMode="none",
	$cacheSize=0,
	$syncInterface="#p2=10.2.0.76:3260" -f $addr2,
	$hbInterface="#p2=10.0.0.76:3260" -f $addr2,
	$createTarget=$true,
	$bmpFolderPath="",
#secondary node
	$imagePath2="/mnt/sdc1/firstdatastore",
	$imageName2="TestHA1",
	$createImage2=$true,
	$storageName2="",
	$targetAlias2="TestHA",
	$poolName2="sdc1",
	$syncSessionCount2=1,
	$aluaOptimized2=$false,
	$cacheMode2=$cacheMode,
	$cacheSize2=$cacheSize,
	$syncInterface2="#p2=10.2.0.75:3260" -f $addr,
	$hbInterface2="#p2=10.0.0.75:3260" -f $addr,
	$createTarget2=$true,
	$bmpFolderPath2=""
	)
efbeckwith
Posts: 2
Joined: Sun Aug 25, 2024 7:32 pm

Sun Aug 25, 2024 9:08 pm

also I have some detritus left from previous attempts where it didn't even create on the second system, how do I clean them up, they don't show as LUN in the web controller, I can see the files if I use the troubleshooting terminal on the running machine, and they show up greyed out in the windows console. Can't delete them there because I've got the "free" license running on this system.
yaroslav (staff)
Staff
Posts: 3598
Joined: Mon Nov 18, 2019 11:11 am

Mon Aug 26, 2024 8:45 am

See this script here
1. viewtopic.php?f=5&t=6852&p=37208&hilit=HINT8#p37208
2. viewtopic.php?f=5&t=6863&p=37290&hilit=HINT8#p37290

First, remove the entries from the *.cfg
For each VM
1. systemctl stop starwind-virtual-san
2. cp /opt/starwind/starwind-virtual-san/drive_c/starwind/StarWind.cfg .
3. nano /opt/starwind/starwind-virtual-san/drive_c/starwind/StarWind.cfg
4. find the line <target> remove every unnecessary entry (i.e., those left after you tried to create a device).
5. find the line <target> remove every unnecessary entry (i.e., those left after you tried to create a device).
6. systemctl start starwind-virtual-san

Then remove them just as files from /mnt/... and their directories from /opt/starwind/starwind-virtual-san/drive_c/starwind/headers

P.s. If you do not need a software RAID inside the VM or you are after NVMe-oF in the long run, use the Windows-based version of StarWind VSAN https://starwindsoftware.com/tmplink/starwind-v8.exe (guide https://www.starwindsoftware.com/resour ... rver-2016/) Same script I shared here should work.
Post Reply