> -----Original Message----- > From: Digimer [mailto:li...@alteeve.ca] > Sent: Sunday, 2 November 2014 9:49 AM > To: The Pacemaker cluster resource manager > Subject: Re: [Pacemaker] stonith q > > On 01/11/14 06:27 PM, Alex Samad - Yieldbroker wrote: > > Hi > > > > 2 node cluster, running under vmware {snip} > > > > Alex > > In cman's cluster.conf, you configure the fence device 'fence_pcmk', as you > have. That is a dummy/hook fence agent that simply passes fence requests > up to pacemaker to actually perform. Pacemaker will then tell cman whether > the fence succeeded or failed. > > To make sure you have cluster.conf configured properly, it should look > something like this; > > ==== > ccs -f /etc/cluster/cluster.conf --createcluster an-anvil-04 ccs -f > /etc/cluster/cluster.conf --setcman two_node="1" expected_votes="1" > ccs -f /etc/cluster/cluster.conf --addnode an-a04n01.alteeve.ca ccs -f > /etc/cluster/cluster.conf --addnode an-a04n02.alteeve.ca ccs -f > /etc/cluster/cluster.conf --addfencedev pcmk agent=fence_pcmk ccs -f > /etc/cluster/cluster.conf --addmethod pcmk-redirect an-a04n01.alteeve.ca > ccs -f /etc/cluster/cluster.conf --addmethod pcmk-redirect an- > a04n02.alteeve.ca ccs -f /etc/cluster/cluster.conf --addfenceinst pcmk an- > a04n01.alteeve.ca pcmk-redirect port=an-a04n01.alteeve.ca ccs -f > /etc/cluster/cluster.conf --addfenceinst pcmk an-a04n02.alteeve.ca pcmk- > redirect port=an-a04n02.alteeve.ca ccs -f /etc/cluster/cluster.conf -- > setfencedaemon post_join_delay="30" > cat /etc/cluster/cluster.conf > ==== > <cluster config_version="10" name="an-anvil-04"> > <fence_daemon post_join_delay="30"/> > <clusternodes> > <clusternode name="an-a04n01.alteeve.ca" nodeid="1"> > <fence> > <method name="pcmk-redirect"> > <device name="pcmk" port="an-a04n01.alteeve.ca"/> > </method> > </fence> > </clusternode> > <clusternode name="an-a04n02.alteeve.ca" nodeid="2"> > <fence> > <method name="pcmk-redirect"> > <device name="pcmk" port="an-a04n02.alteeve.ca"/> > </method> > </fence> > </clusternode> > </clusternodes> > <cman expected_votes="1" two_node="1"/> > <fencedevices> > <fencedevice agent="fence_pcmk" name="pcmk"/> > </fencedevices> > <rm> > <failoverdomains/> > <resources/> > </rm> > </cluster> > ====
[Alex Samad - Yieldbroker] Actually I do, I just put the initial bit in there. > > Then you move over to pacemaker and configure stonith there. How you do > this will vary a bit for your fence agent. I use IPMI fencing, which looks > like > this: > > ==== > pcs cluster cib stonith_cfg > pcs -f stonith_cfg stonith create fence_n01_ipmi fence_ipmilan > pcmk_host_list="an-a04n01.alteeve.ca" ipaddr="an-a04n01.ipmi" > action="reboot" login="admin" passwd="Initial1" delay=15 op monitor > interval=10s pcs -f stonith_cfg stonith create fence_n02_ipmi fence_ipmilan > pcmk_host_list="an-a04n02.alteeve.ca" ipaddr="an-a04n02.ipmi" > action="reboot" login="admin" passwd="Initial1" op monitor interval=10s > pcs cluster cib-push stonith_cfg pcs property set stonith-enabled=true ==== [Alex Samad - Yieldbroker] Problem is that uses ipmi I don't want to use that. I would like to translater a stonight shutdown/reboot into a OS reboot commend. Thanks _______________________________________________ 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