Software-based VM-centric and flash-friendly VM storage + free version
Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)
-
Alex
- Posts: 12
- Joined: Sun Oct 02, 2022 2:28 pm
Sun Oct 02, 2022 6:05 pm
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”.
-
Alex
- Posts: 12
- Joined: Sun Oct 02, 2022 2:28 pm
Mon Oct 03, 2022 7:01 am
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.
-
Alex
- Posts: 12
- Joined: Sun Oct 02, 2022 2:28 pm
Mon Oct 03, 2022 8:13 am
How to restore the server?
When the server arrives from service center, can I return it to the cluster ?
-
yaroslav (staff)
- Staff
- Posts: 2390
- Joined: Mon Nov 18, 2019 11:11 am
Mon Oct 03, 2022 2:34 pm
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.
-
yaroslav (staff)
- Staff
- Posts: 2390
- Joined: Mon Nov 18, 2019 11:11 am
Mon Oct 03, 2022 3:46 pm
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.
-
Alex
- Posts: 12
- Joined: Sun Oct 02, 2022 2:28 pm
Mon Oct 03, 2022 3:54 pm
Currently there is no second server.
I get an error Screenshot_2.png
-
Attachments
-
- Screenshot_2.png (101.94 KiB) Viewed 4145 times
-
yaroslav (staff)
- Staff
- Posts: 2390
- Joined: Mon Nov 18, 2019 11:11 am
Mon Oct 03, 2022 4:11 pm
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.
-
Alex
- Posts: 12
- Joined: Sun Oct 02, 2022 2:28 pm
Mon Oct 03, 2022 7:03 pm
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>
-
Alex
- Posts: 12
- Joined: Sun Oct 02, 2022 2:28 pm
Tue Oct 04, 2022 7:44 am
Here is the information in the console
Not available for ESXi
-
Attachments
-
- Screenshot_3.png (21.66 KiB) Viewed 4114 times
-
yaroslav (staff)
- Staff
- Posts: 2390
- Joined: Mon Nov 18, 2019 11:11 am
Tue Oct 04, 2022 12:03 pm
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).