Powershell example for Add-HAPartner

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

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

Post Reply
batiati
Posts: 29
Joined: Mon Apr 08, 2019 1:16 pm
Location: Brazil
Contact:

Fri Aug 02, 2019 6:32 pm

Hi
I found the RemoveHAPartner.ps1 on StarwindX folder and it worked just fine.
But now I removed the old partner and I want to add a new one. I can't figure out how to use the Add-HAPartner cmdlet to do it.

Could someone provide an example for Add-HAPartner cmdlet?
batiati
Posts: 29
Joined: Mon Apr 08, 2019 1:16 pm
Location: Brazil
Contact:

Sat Aug 03, 2019 1:32 am

Right, it was already asked before: there is not way do add a sync partner from powershell cmdlet.

https://forums.starwindsoftware.com/vie ... ner#p29544

So, I was trying to simulate a full node recovery (supposing that I've lost even the config files).

With poweshell, I would have removed the old partner using Remove-HAParter and then add a new one with Add-HAParter.

Without powershell, I had to copy and manually change the config files from one node to other and put them to sync again.

I learned that i must keep all config files backuped to avoid complicated restores like that. :D
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Sat Aug 03, 2019 2:07 am

Check aveonhealth's answer in https://forums.starwindsoftware.com/vie ... php?t=5288
It looks like this is the only way to perform what you need with no GUI at the moment.
Post Reply