Page 1 of 1
Powershell example for Add-HAPartner
Posted: Fri Aug 02, 2019 6:32 pm
by batiati
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?
Re: Powershell example for Add-HAPartner
Posted: Sat Aug 03, 2019 1:32 am
by batiati
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.
Re: Powershell example for Add-HAPartner
Posted: Sat Aug 03, 2019 2:07 am
by Boris (staff)
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.