200 Failed: synchronizer has invalid state

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

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

networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Thu Jul 13, 2023 1:04 pm

HI,

We have a 2 node deployment which have been relocated recently and now they cant synchronise.

I get this error when I run the syncHAdeviceadvanced powershell script
200 Failed: synchronizer has invalid state..

I have updated to the latest version.

Can anyone help?
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 13, 2023 2:59 pm

Welcome to StarWind Forum.
1. Install Management Console
2. Connect to the StarWind VSAN hosts/Control VMs.
See if any of the device mirrors are in sync.
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Thu Jul 13, 2023 4:08 pm

Hi,

No they are showing as not sync'ed.
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 14, 2023 6:10 am

Follow this guide https://knowledgebase.starwindsoftware. ... -blackout/ (mark a node as synchronized with the script).
You might have write back cache. Consider disabling it https://knowledgebase.starwindsoftware. ... -l1-cache/.
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Fri Jul 14, 2023 8:48 am

HI,

I have removed the caching as instructed but get the same error?

I assume the "SyncHADeviceAdvanced" script is the same as using the option in the management software?
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 14, 2023 10:36 am

You are right but please make sure to follow the guide carefully (i.e., mark ONE NODE while partner(s) is/are down).
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Fri Jul 14, 2023 1:06 pm

Hi,

I have followed both instructions exactly, and it has made no difference.

Error when one has its starwind service disabled (I have *** out specific info):
Synchronize device *****
Failed to perform synchronization (1) from
-
control 0x0000016A945F7DC0 -Synchronize: -SynchronizationType:"1"
-
200 Failed: can't find available or valid partner for synchronization..

Error after turning off caching etc:


****
Device not synchronized. Synchronize current node from partner '***'
Failed to perform synchronization (1) from ***
-
control 0x0000016A945F7DC0 -Synchronize: -SynchronizationType:"1" -SynchronizerTargetName:"***"
-
200 Failed: synchronizer has invalid state.
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 14, 2023 1:47 pm

You can induce the sync status manually.
1. Stop the service on both sides
2. Go to the node you would like to check first.
3. Go to the _HA.swdsk files.
4. locate the area for node id ="1" that looks like this

Code: Select all

<sync_status>1</sync_status>
It might be

Code: Select all

<sync_status>0</sync_status> 
in your case. Set it to 1.
The area should look like this

Code: Select all

<node id="1" name="HAImage" shut="false" active="true" flags="0">
    <storages>
      <storage_ref id="1"/>
    </storages>
    <parameters>
      <type>1</type>
      <priority>0</priority>
      <auto_sync>true</auto_sync>
      <sync_status>1</sync_status>
      <sync_delay>50</sync_delay>
      <sync_traffic_share>50</sync_traffic_share>
      <failover_conf>0</failover_conf>
      <last_sync_snap_id>0</last_sync_snap_id>
      <alua_access_state>0</alua_access_state>
      <maintenance_mode>false</maintenance_mode>
    </parameters>
5. Start the node where you made the changes.
6. See if the storage is synchronized in Management Console.
7. Check the data.
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Fri Jul 14, 2023 2:15 pm

Hi,

I hade this:
<node id="1" name="HAImage" shut="true" active="true" flags="0">

So I updated it to the same as yours...

What about the node 2 section should this be the same?
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Fri Jul 14, 2023 2:47 pm

Node 2 had the <sync_status>0</sync_status> so I changed it to 1, its now synchronising,
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 14, 2023 3:01 pm

Hi,

Nice to read that sync is running!
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Thu Sep 19, 2024 11:51 am

Hi,

Sorry to open this old ticket, but I have the same issue.

I have gone through the steps as before but it wont sync?
<node id="1" name="HAImage" shut="false" active="true" flags="0">
<storages>
<storage_ref id="1"/>
</storages>
<parameters>
<type>1</type>
<priority>0</priority>
<auto_sync>true</auto_sync>
<sync_status>1</sync_status>
<sync_delay>50</sync_delay>
<sync_traffic_share>50</sync_traffic_share>
<failover_conf>0</failover_conf>
<last_sync_snap_id>0</last_sync_snap_id>
<alua_access_state>0</alua_access_state>
</parameters>
</node>
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Thu Sep 19, 2024 12:10 pm

Make sure to make the change for one node. Partner and the node itself need to refer to the SAME node as synchronized.
Also, please consider removing the write-back cache if you have any (see how https://knowledgebase.starwindsoftware. ... -l1-cache/ )
networkeng123
Posts: 25
Joined: Thu Jul 13, 2023 1:01 pm

Thu Sep 19, 2024 12:31 pm

Hi,

I have tried every combination of the sync value on both nodes, none have made a difference
yaroslav (staff)
Staff
Posts: 2960
Joined: Mon Nov 18, 2019 11:11 am

Thu Sep 19, 2024 1:29 pm

What has happened to this system?
Post Reply