Page 1 of 2

Problem "Not Synchronization" HAImage

Posted: Sun Oct 02, 2022 6:05 pm
by Alex
Hello!
Help me please.
I have a cluster in starwind virtual san free.
One server ( node) is in service center, and i have one left one server ( node).
Happened hard power off on the server, and all disks located in the condition "Not Synchronization" and dont presented to ESXi.
Tell me please how by using power shell scripts did device“Mark as Synchronized”.

Re: Problem "Not Synchronization" HAImage

Posted: Sun Oct 02, 2022 10:27 pm
by yaroslav (staff)
Please refer to this article https://knowledgebase.starwindsoftware. ... -blackout/ to restore synchronization.
To mark the device as synchronized, run SyncHADevice for each HA Device.

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 7:01 am
by Alex
i have one node in HA cluster.

Run script "SyncHADevice" issue error

Code: Select all

Failed to perform synchronization (1) from 
-
control 0x000001902D570A00 -Synchronize: -SynchronizationType:"1"
-
200 Failed: can't find available or valid partner for synchronization..

I need recovery iscsi connect to esxi.

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 7:30 am
by yaroslav (staff)
Hi,

HA implies having mirror between 2 nodes; could you tell me what happened to another node? For VSAN for vSphere, you need to type the VM IP into the script and leave credentials as is. Also, please consider removing the RAM cache after sync is finished. https://knowledgebase.starwindsoftware. ... -l1-cache/

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 7:41 am
by Alex
One server ( node) is in service center ( hardware problems)

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 8:13 am
by Alex
How to restore the server?
When the server arrives from service center, can I return it to the cluster ?

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 2:34 pm
by yaroslav (staff)
Please type the corresponding IP address instead of 127.0.0.1 to mark one node as synchornized. Please note that this node will start presenting storage straight away and will be synchronizing data to the one that is temporarily evicted from the cluster.

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 3:02 pm
by Alex
How to do it with power shell scripts?

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 3:46 pm
by yaroslav (staff)
You need to install Integration Component Library (run StarWind VSAN for Hyper-V installer) on a Windows VM.
Then, navigate to C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell.
Run SyncHADevice.ps1 or SyncHaDeviceAdvanced.ps1. Modification to make: type in your VM IP address instead of loopback $addr="127.0.0.1". You might want to change HADevice1 parameter to the corresponding device label.

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 3:54 pm
by Alex
Currently there is no second server.
I get an error Screenshot_2.png

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 4:11 pm
by yaroslav (staff)
Try this:
1. stop StarWindVSA.
2. navigate to /mnt/<device-path>/<HA-device-name>_HA.swdsk
3. copy <HA-device-name>_HA.swdsk
4. modify <HA-device-name>_HA.swdsk
set the first occurrence for <sync_status>x</sync_status> to <sync_status>1</sync_status>
leave the second occurrence for <sync_status>x</sync_status> as is
5. repeat 2-4 for another HA device
6. start StarWindVSA.

See if the device is marked as synchronized.

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 7:03 pm
by Alex
i have this config now

Code: Select all

      <storage_ref id="2"/>
    </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/>
    </parameters>
  </node>
  <node id="2" name="iqn.2008-08.com.starwindsoftware:starwind2-target-2tb" shut="false" active="true">
    <storages>
      <storage_ref id="3"/>
    </storages>
    <parameters>
      <type>1</type>
      <priority>1</priority>
      <sync_status>0</sync_status>
    [<alua_access_state>1</alua_access_state>
    </parameters>
  </node>
</header>

Re: Problem "Not Synchronization" HAImage

Posted: Mon Oct 03, 2022 8:15 pm
by yaroslav (staff)
Did the device acquire synchronized status?

Re: Problem "Not Synchronization" HAImage

Posted: Tue Oct 04, 2022 7:44 am
by Alex
Here is the information in the console
Not available for ESXi

Re: Problem "Not Synchronization" HAImage

Posted: Tue Oct 04, 2022 12:03 pm
by yaroslav (staff)
Did you stop the service when changing the HA device .swdsk?
If so, please reach out to us (this thread and 790490 are your references).