2 nodes hyper-v windows 2019 standard

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

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

yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Fri Oct 11, 2024 7:02 am

Hi,

Yes. NVMe-oF will be the new cool thing. Waiting for NVMe-OF targets so much.
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Wed Oct 16, 2024 5:45 pm

Yaroslav - my friend Michal Sladkowski already talk with You (company ) about cooperation - it looks like We can have some potential customers for StarwindVsan with different hypervisor ...which can be kind of standard setup/appliance ...

now some last question - can I simply change root password (default starwind ) by sudo bash > passwd etc ...
for securing a little bit virtual storage provider (and then still use scripts ) means this is standard linux auth ?
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Oct 16, 2024 8:30 pm

Hi Michal,

Nice to meet you!
Yes you can.
Also, you can reach to our support team if you have more questions.
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Thu Oct 17, 2024 1:47 pm

password change for remote scripts as root not works : login as administrator > sudo bash > passwd then new password
and scripts says - not popper ( still works with default )
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Wed Nov 27, 2024 12:35 pm

Hi

I have recovery case - my poc 2 nodes cluster had total split brain (switch was halted internally that all communication was broken )
so from 4 volumes - 3 did resync properly after resetting everything ... but one is in double failure state
1 - how I can check on which site it has most recent data
2 - how to push it manually to do resync

ok - see by image file date that on 1st node I have most recent data (in theory )
so ... how to push starwind now to do resync ?
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 27, 2024 1:04 pm

Ouch.
1 - how I can check on which site it has most recent data
Stop on one node StarWindService and mark as synchronized on another. (it should be the only replication partner)
See here how to mark manually viewtopic.php?f=5&t=6194&p=37569&hilit= ... %3E#p37569 or use script SyncHaDeviceAdvanced.ps1
Start the VMs and see if data inside is up-to-date.
If you are happy with what you see, resume another node. Otherwise, repeat stop the service on the only active node and mark its counterpart.
Sync starts after you resume all replication partners.
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Wed Nov 27, 2024 2:32 pm

i'm not sure I understand your advice - both files on both nodes looks like this :
<node id="1" name="HAImage" shut="false" active="true" flags="0">
<storages>
<storage_ref id="1"/>
</storages>
<parameters>
<type>1</type>
<priority>2</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>
<node id="2" name="iqn.2008-08.com.starwindsoftware:10.1.101.4-swstorage3" shut="false" active="true">
<storages>
<storage_ref id="2"/>
</storages>
<parameters>
<type>1</type>
<priority>1</priority>
<sync_status>0</sync_status>
<alua_access_state>0</alua_access_state>
<type_bitmap>RAM</type_bitmap>
</parameters>
</node>
</header>

so - what i have to change ?
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 27, 2024 3:02 pm

Hi,

It looks synchronized. If not synchronized
<sync_status>1</sync_status>
is set to 0.
Set it to 1 to mark as synchronized.
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Wed Nov 27, 2024 3:11 pm

node 1:
<node id="1" name="HAImage" shut="true" 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>
</node>
<node id="2" name="iqn.2008-08.com.starwindsoftware:192.168.7.116-csv2" shut="false" active="true">
<storages>
<storage_ref id="2"/>
</storages>
<parameters>
<type>1</type>
<priority>1</priority>
<sync_status>0</sync_status>
<alua_access_state>1</alua_access_state>
<type_bitmap>RAM</type_bitmap>
</parameters>
</node>
</header>


node2:
<node id="1" name="HAImage" shut="true" active="true" flags="0">
<storages>
<storage_ref id="1"/>
</storages>
<parameters>
<type>1</type>
<priority>1</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>
</node>
<node id="2" name="iqn.2008-08.com.starwindsoftware:192.168.7.115-csv2" shut="false" active="true">
<storages>
<storage_ref id="2"/>
</storages>
<parameters>
<type>1</type>
<priority>0</priority>
<sync_status>0</sync_status>
<alua_access_state>0</alua_access_state>
<type_bitmap>RAM</type_bitmap>
</parameters>
</node>
</header>



PS C:\Users\administrator.HCILAB> C:\Users\administrator.HCILAB\Desktop\SyncHaDeviceAdvanced.ps1
HAImage1
Device synchronized
HAImage3
Device not synchronized. Synchronize current node from partner 'iqn.2008-08.com.starwindsoftware:192.168.7.116-csv2'
Failed to perform synchronization (1) from iqn.2008-08.com.starwindsoftware:192.168.7.116-csv2
-
control 0x00000000012B2940 -Synchronize: -SynchronizationType:"1" -SynchronizerTargetName:"iqn.2008-08.com.starwindsoftware:192.168.7.116-csv2"
-
200 Failed: synchronizer has invalid state..

PS C:\Users\administrator.HCILAB>
Last edited by mic77 on Wed Nov 27, 2024 4:28 pm, edited 1 time in total.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 27, 2024 4:22 pm

The method is outlined here https://knowledgebase.starwindsoftware. ... -blackout/.
The device can be marked as synchronized manually.
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Wed Nov 27, 2024 4:31 pm

cant click = with free license
;/

in theory most recent data are on node 1
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 27, 2024 5:20 pm

Is that one synchronized when its replication partner is down?
mic77
Posts: 27
Joined: Fri Oct 04, 2024 9:58 pm

Wed Nov 27, 2024 5:28 pm

no
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 27, 2024 5:54 pm

C:\Users\administrator.HCILAB\Desktop\SyncHaDevice.ps1
Try running this one. Did you stop StarWindService on the node that is presumably sycnhronized before editing the *.swdsk?
Also, did you edit *.swdsk from headers directory or *.swdsk.bak?
Post Reply