[ClusterLabs] ban node or disable (all) resources upon node addition to the cluster - how?

Jan Pokorný jpokorny at redhat.com
Wed Aug 1 09:26:20 EDT 2018


Hello,

On 01/08/18 13:46 +0100, lejeczek wrote:
> is it possible to tell the cluster to exclude or ban resources to
> run on a node which I'd like to add the cluster? (as one command?)
> 
> (or any other way that would assure that no resources would be moved to that
> node, in case cluster would decide for some reason that was a good idea)

With pacemaker 1.1.17+, your best bet is to start pacemakerd on that
particular node in standby mode, which can be achieved with either:

  - running pacemakerd with "-s" (--standby) switch
  
  - modifying /etc/(default|sysconfig)/pacemaker
    (or another file like this per conventions in your
    OS/distribution) so that it effectively declares
    "PCMK_node_start_state=standby" (i.e. such line
    must not be commented out)

Note that the second option is more handy (and likely your only
choice) when you are using higher-level management tool (crm/pcs).

Of course, this needs to be done ahead of time at each such node
to be added.  It may also be wise to comment that line again once
those nodes are ready to start serving right away with subsequent
starts incl. upon reboots.

-- 
Nazdar,
Jan (Poki)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20180801/a5f30e74/attachment-0002.sig>


More information about the Users mailing list