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

Best regards,
Andreas

-----Ursprüngliche Nachricht-----
Von: Dvorak Andreas 
Gesendet: Montag, 9. Dezember 2013 09:55
An: 'The Pacemaker cluster resource manager'
Betreff: Re: [Pacemaker] configuration of stonith

Dear all,

thank you for the answers.

Now I created to stonith resources
pcs stonith create ipmi-fencing-sv2837 fence_ipmilan pcmk_host_list="sv2837" 
ipaddr=10.110.28.37 action="reboot" login=abc passwd=abc123 delay=15 op monitor 
interval=60s pcs stonith create ipmi-fencing-sv2836 fence_ipmilan 
pcmk_host_list="sv2836" ipaddr=10.110.28.36 action="reboot" login=abc 
passwd=abc123 delay=15 op monitor interval=60s

the current status is:
pcs status
Cluster name: fix-prod
Last updated: Mon Dec  9 09:41:48 2013
Last change: Mon Dec  9 09:40:03 2013 via cibadmin on sv2836
Stack: cman
Current DC: sv2837 - partition with quorum
Version: 1.1.10-1.el6_4.4-368c726
2 Nodes configured
4 Resources configured

Online: [ sv2836 sv2837 ]

Full list of resources:

 ClusterIP      (ocf::heartbeat:IPaddr2):       Started sv2836 
 FIXRoute       (ocf::baader:FIXRoute): Started sv2836 
 ipmi-fencing-sv2837    (stonith:fence_ipmilan):        Stopped 
 ipmi-fencing-sv2836    (stonith:fence_ipmilan):        Stopped 

Failed actions:
    ipmi-fencing-sv2837_start_0 on sv2837 'unknown error' (1): call=276, 
status=Error, last-rc-change='Mon Dec  9 09:39:55 2013', queued=17090ms, 
exec=0ms
    ipmi-fencing-sv2836_start_0 on sv2837 'unknown error' (1): call=286, 
status=Error, last-rc-change='Mon Dec  9 09:40:13 2013', queued=17085ms, 
exec=0ms
    ipmi-fencing-sv2837_start_0 on sv2836 'unknown error' (1): call=369, 
status=Error, last-rc-change='Mon Dec  9 09:40:13 2013', queued=17085ms, 
exec=0ms
    ipmi-fencing-sv2836_start_0 on sv2836 'unknown error' (1): call=375, 
status=Error, last-rc-change='Mon Dec  9 09:40:31 2013', queued=17090ms, 
exec=0ms

Do I need to tell the stonith resource where to run and how can I do that?
In the parameter pcmk_host_list I have the hostname of the other node.

Best regards,
Andreas

_______________________________________________
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

_______________________________________________
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

Reply via email to