StarWind VSAN free Powershell scripts

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

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

Post Reply
dpetrek1
Posts: 5
Joined: Sat Nov 13, 2021 9:13 pm

Sat Nov 13, 2021 9:22 pm

Hi,
the scripts work well, I was able to create highly available device in two-node scenario.
So now primary (priority "First") device (node hosting it) fails.
How to set secondaries (priority Second) priority to "First" using the scripts, and push the synchronisation in opposite direction?
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Sat Nov 13, 2021 10:43 pm

StarWind HA devices are replicated synchronously, meaning that each replica can present the storage, provided that it is synchronized. See more about priorities at https://forums.starwindsoftware.com/vie ... f=5&t=5731

Could you be more specific to describe what fail is it?

Make sure to have HA devices connected over iSCSI. What configuration is it? Hyperconvrged/Converged? VSAN for vSphere/Windows bare metal deployment?

Make sure that your setup meets system requirements https://www.starwindsoftware.com/system-requirements and you have redundant network adapter involved in heartbeat oe synchronization.
dpetrek1
Posts: 5
Joined: Sat Nov 13, 2021 9:13 pm

Sun Nov 14, 2021 12:30 pm

Yaroslav, thank you for your answer.
I understand that each replica can present storage.
This is HyperV based Windows Server VM replicating virtual disk to another HyperV based Windows Server VM scenario/configuration - does not include clustering.
So lets assume two nodes with corresponding replicating devices.
Fail is situation where one computing node (VM) is destroyed, and can not be recovered.
Let suppose thats priority "First" node that failed. We use the alive node replica now, without data loss. Then the failing node is rebuilt from scratch, Starwind set up again on that node, and synchronization/replication must be configured towards it - it needs to have lower priority. How would we do that?

Or maybe the "priority first" node did not fail in way it cannot be recovered again, it just can not be started for the time being, so we must consume virtual disk on another node.
Then, when failing node starts up again it needs to have lower priority since we had changed on another node already.
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Mon Nov 15, 2021 5:04 am

Priorities do not matter that much in this situation. As I mentioned in my post I shared with you just need to have primary (i.e., old secondary) on one side, while secondary (i.e., the new replica) on another side. If you still want to stick with the old priorities, you need to recreate replicas as described here https://forums.starwindsoftware.com/vie ... _ha#p33085, wait for full synchronization to complete, and modify the priorities as I mentioned here https://www.starwindsoftware.com/system-requirements
dpetrek1
Posts: 5
Joined: Sat Nov 13, 2021 9:13 pm

Wed Nov 17, 2021 11:14 am

OK thank you, understood.
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 17, 2021 4:44 pm

You are welcome.
Post Reply