[Pacemaker] configuration of stonith
Michael Schwartzkopff
ms at sys4.de
Fri Dec 6 15:57:52 UTC 2013
Am Freitag, 6. Dezember 2013, 16:49:32 schrieb Dvorak Andreas:
> Dear all
>
> I would like to configure stonith and found example like this:
> pcs cluster cib stonith_cfg
> pcs -f stonith_cfg stonith
> pcs -f stonith_cfg stonith create impi-fencing fence_ipmilan
> pcmk_host_list="sv2836 sv2837" ipaddr=10.0.0.1 login=testuser passwd=acd123
> op monitor interval=60s pcs -f stonith_cfg property set
> stonith-enabled=true
> pcs -f stonith_cfg property
> pcs cluster push cib stonith_cfg
>
> But I have two different ip addresses, one for each server, so I do not know
> how to configure that. Can you please help me?
Make two fencing resources and two location constraints the prevent the
resources on the node that they can fence. Something like:
primitive resourceFenceNode1 ...
primitive resourceFenceNode2 ...
location placeFenceNode1 -inf: node1
location placeFenceNode2 -inf: node2
Mit freundlichen Grüßen,
Michael Schwartzkopff
--
[*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131206/4ab8af0d/attachment-0004.sig>
More information about the Pacemaker
mailing list