[Pacemaker] WG: configuration of stonith

Michael Schwartzkopff ms at sys4.de
Mon Dec 9 08:59:57 EST 2013


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
-------------- 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/20131209/1d289203/attachment-0003.sig>


More information about the Pacemaker mailing list