Am Montag, 9. Dezember 2013, 14:40:29 schrieb Dvorak Andreas: > Dear all > > My problem with stonith is solved. > > Here is what I did: > > pcs stonith create ipmi-fencing-sv2837 fence_ipmilan pcmk_host_list="sv2837" > ipaddr=10.110.28.37 action="off" login=ipmi passwd=abc delay=15 op monitor > interval=60s pcs stonith create ipmi-fencing-sv2836 fence_ipmilan > pcmk_host_list="sv2836" ipaddr=10.110.28.36 action="off" login=ipmi > passwd=abc delay=15 op monitor interval=60s > > pcs property set stonith-enabled=true > > pcs constraint location ipmi-fencing-sv2837 prefers sv2836=INFINITY > pcs constraint location ipmi-fencing-sv2836 prefers sv2837=INFINITY > > pcs status > .... > Full list of resources: > ClusterIP (ocf::heartbeat:IPaddr2): Started sv2836 > FIXRoute (ocf::baader:FIXRoute): Started sv2836 > ipmi-fencing-sv2837 (stonith:fence_ipmilan): Started sv2836 > ipmi-fencing-sv2836 (stonith:fence_ipmilan): Started sv2837
This is not optimal. Nothing prevents the resource, that can fence node sv2837 to run on host sv2837. You just say, that it should run on node sv2836. Better would be something like crm configure location place-fencing-sv2837 -inf: sv2837 or the equivalent in pcs. Greetings, -- 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