Starwind SAN device SyncStatus is null on one node

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

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

Post Reply
zenny7100
Posts: 7
Joined: Wed Apr 10, 2019 6:06 pm

Wed Apr 10, 2019 6:25 pm

Hi - I'm running the free version, started from scratch on windows 2016 (2 node cluster) and created 3 devices per node. All three were created and synched according to the CreateHA powershell script. When I run a script that enumerates all the targets/devices on node 2 everything looks ok, all devices show as synched. When I run the same script against node 1 one of the devices has SynchStatus equal to null. If I look at the witness_HA.swdsk file directly it shows 0 as the sync_status in the xml for node 1 and "1" as the value for node 2. I tried the following:

calling $device.SyncStatus = 1 and then $device.Refresh(), this gives "Error HRESULT E_FAIL has been returned from a call to a COM component."

I also tried $device.MarkAsSynchronized() which returns "101 Failed: operation cannot be completed.."
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Wed Apr 10, 2019 9:24 pm

Reinstall the StarWIndX component of your setup from the same installer. That should fix the issue.
zenny7100
Posts: 7
Joined: Wed Apr 10, 2019 6:06 pm

Thu Apr 11, 2019 3:17 pm

Hi Boris, I just did that and there's no change - I think there is something wrong with that device on that node.. The swdsk file contains the following for this device which I don't think is correct (?) the device only has this value on the second node.

...
<node id="2" name="iqn.2008-08.com.starwindsoftware:192.9.187.46-node1witnestargetalias" shut="false" active="true">
<storages>
<storage_ref id="2"/>
</storages>
<parameters>
<type>1</type>
<priority>1</priority>
<sync_status>0</sync_status>
</parameters>
</node>
zenny7100
Posts: 7
Joined: Wed Apr 10, 2019 6:06 pm

Thu Apr 11, 2019 10:50 pm

i fixed this by deleting the device and re-adding it. I'd like to know how this condition arose though, in the case the device was empty but if it wasn't I'm not sure what I would have done
Oleg(staff)
Staff
Posts: 568
Joined: Fri Nov 24, 2017 7:52 am

Fri Apr 19, 2019 8:58 am

Hi,
<sync_status>0</sync_status>
That means that StarWind device is not synchronized on this node. You can try to restart StarWind service on this node.
Post Reply