Page 1 of 3
200 Failed: synchronizer has invalid state
Posted: Thu Jul 13, 2023 1:04 pm
by networkeng123
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?
Re: 200 Failed: synchronizer has invalid state
Posted: Thu Jul 13, 2023 2:59 pm
by yaroslav (staff)
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.
Re: 200 Failed: synchronizer has invalid state
Posted: Thu Jul 13, 2023 4:08 pm
by networkeng123
Hi,
No they are showing as not sync'ed.
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 6:10 am
by yaroslav (staff)
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/.
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 8:48 am
by networkeng123
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?
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 10:36 am
by yaroslav (staff)
You are right but please make sure to follow the guide carefully (i.e., mark ONE NODE while partner(s) is/are down).
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 1:06 pm
by networkeng123
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.
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 1:47 pm
by yaroslav (staff)
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
It might be
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.
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 2:15 pm
by networkeng123
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?
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 2:47 pm
by networkeng123
Node 2 had the <sync_status>0</sync_status> so I changed it to 1, its now synchronising,
Re: 200 Failed: synchronizer has invalid state
Posted: Fri Jul 14, 2023 3:01 pm
by yaroslav (staff)
Hi,
Nice to read that sync is running!
Re: 200 Failed: synchronizer has invalid state
Posted: Thu Sep 19, 2024 11:51 am
by networkeng123
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>
Re: 200 Failed: synchronizer has invalid state
Posted: Thu Sep 19, 2024 12:10 pm
by yaroslav (staff)
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/ )
Re: 200 Failed: synchronizer has invalid state
Posted: Thu Sep 19, 2024 12:31 pm
by networkeng123
Hi,
I have tried every combination of the sync value on both nodes, none have made a difference
Re: 200 Failed: synchronizer has invalid state
Posted: Thu Sep 19, 2024 1:29 pm
by yaroslav (staff)
What has happened to this system?