On Mon, 2018-08-20 at 10:41 +0200, Ulrich Windl wrote: > Hi! > > Browsing the documentation, I'm still woindering whether this is > possible: > Make a master/slave resource change roles, i.e.: master becomes > slave, slave becomes master, preferrably without stopping the master. > The documentation for "crm_resource --ban --master ..." is somewhat > vague: Will it stop the master resource, or will it be demoted?
It will be demoted (assuming nothing else prevents that). > The command I'm asking for is useful for tsting whether a > master/slave resource works correctly on eac node. > > An extension of my request would be the command to run a master or > slave role on any given node in the cluster... > > Regards, > Ulrich The other possibility is to manipulate the master scores directly with "crm_master -r <rsc> -N <node>" using "-G" to see the current scores or "-v <score>" to change them. The node with the highest score will be promoted. -- Ken Gaillot <kgail...@redhat.com> _______________________________________________ Users mailing list: Users@clusterlabs.org https://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org