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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org