All commands needed to update the host. One command for each host
/opt/mwg/bin/mwg-coordinator -A "cmd:trigger_action=cmclusteradd;options:ip=<IP>,group=<NetworkName>,forcedetachgui=yes"
Adding back all gateways to the cluster. One command for each host
Here I'm stopped.
At my scenario each gateway have more that one Group Network, and using this commands, after remounting the cluster, all them will be at the same Group Network. Sure I can correct this at GUI, but I want to automate this.
ls -1 /opt/mwg/storage/default/|grep -v "hash\|initial"|grep -v hash|tail -1
This command will get the path of the last saved (running) configuration, and I can edit the Group Network configuration directly at the XML file (com.scur.engine.cmclusternode.configuration.xml), but unfortunately this changes do not become effective, and the added Group Networks do not appear at the GUI.
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.
Community Help Hub
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.