[ClusterLabs] Q: Forcing a role change of master/slave resource
kgaillot at redhat.com
Mon Aug 20 14:39:18 UTC 2018
On Mon, 2018-08-20 at 10:41 +0200, Ulrich Windl wrote:
> Browsing the documentation, I'm still woindering whether this is
> 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...
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
Ken Gaillot <kgaillot at redhat.com>
More information about the Users