[Pacemaker] CMAN and Pacemaker
Andrew Beekhof
andrew at beekhof.net
Fri Jan 6 06:13:18 UTC 2012
On Fri, Jan 6, 2012 at 4:20 PM, Fil <lists at internyc.net> wrote:
> :( weird huh....
It looks like they broke the handling of Type=forking
What I especially loved about spending the afternoon debugging systemd
is that there is zero information to go on.
Pure guesswork.
Switch over to Type=simple (and add -f to ExecStart) in
/lib/systemd/system/pacemaker.service and everything starts working
again.
diff --git a/mcp/pacemaker.service.in b/mcp/pacemaker.service.in
index a66e064..523f126 100644
--- a/mcp/pacemaker.service.in
+++ b/mcp/pacemaker.service.in
@@ -7,14 +7,14 @@ Requires=syslog.target network.target
WantedBy=multi-user.target
[Service]
-Type=forking
+Type=simple
KillMode=process
NotifyAccess=main
SysVStartPriority=99
EnvironmentFile=@sysconfdir@/sysconfig/pacemaker
WorkingDirectory=@CRM_STATE_DIR@
-ExecStart=@sbindir@/pacemakerd
+ExecStart=@sbindir@/pacemakerd -f
ExecStop=/bin/kill -TERM $MAINPID
> On 01/05/2012 11:54 PM, Andrew Beekhof wrote:
>> Urgh, I updated my system and now I get the same behaviour as you :-(
>>
>> On Fri, Jan 6, 2012 at 3:50 PM, Andrew Beekhof <andrew at beekhof.net> wrote:
>>> Did you disable cman's quorum timeout as per:
>>> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/ch08s02s02.html
>>> ?
>>>
>>> On Thu, Jan 5, 2012 at 5:15 PM, Fil <lists at internyc.net> wrote:
>>>> I am doing exactly the same thing:
>>>>
>>>> systemctl start cman.service
>>>> systemctl start pacemaker.service
>>>>
>>>>
>>>> # pacemakerd --features
>>>> Pacemaker 1.1.6-4.fc16 (Build: 89678d4947c5bd466e2f31acd58ea4e1edb854d5)
>>>> Supporting: generated-manpages agent-manpages ascii-docs ncurses
>>>> trace-logging cman corosync-quorum corosync
>>>>
>>>>
>>>> thanks
>>>> fil
>>>>
>>>>
>>>> On 01/05/2012 12:26 AM, Andrew Beekhof wrote:
>>>>> It seems to work here.
>>>>>
>>>>> Can you post the output of: pacemakerd --features
>>>>> What are the exact commands you're running?
>>>>>
>>>>> I'm running:
>>>>> systemctl start cman.service
>>>>> systemctl start pacemaker.service
>>>>>
>>>>> On Thu, Jan 5, 2012 at 8:29 AM, Andrew Beekhof <andrew at beekhof.net> wrote:
>>>>>> Ok, I'll try to test cman+pacemaker on f16 in the next few days.
>>>>>> Last time I checked corosync+pacemaker.
>>>>>>
>>>>>> On Tue, Jan 3, 2012 at 12:49 PM, Fil <lists at internyc.net> wrote:
>>>>>>> yes systemd, and no selinux.
>>>>>>>
>>>>>>> On 01/02/2012 08:04 PM, Andrew Beekhof wrote:
>>>>>>>> On Tue, Jan 3, 2012 at 11:22 AM, Fil <lists at internyc.net> wrote:
>>>>>>>>> nothing from the pacemaker, but if I do:
>>>>>>>>>
>>>>>>>>> cd /etc/init.d/; ./pacemaker start
>>>>>>>>>
>>>>>>>>> it works every time, while:
>>>>>>>>>
>>>>>>>>> /etc/init.d/pacemaker start
>>>>>>>>> or
>>>>>>>>> systemctl start pacemaker.service
>>>>>>>>>
>>>>>>>>> fails. Which leads me to believe upstart is to blame for this.
>>>>>>>>
>>>>>>>> You mean systemd right?
>>>>>>>>
>>>>>>>>> Weird
>>>>>>>>> thing is, this works in corosync/pacemaker scenario but not in
>>>>>>>>> cman/pacemaker.
>>>>>>>>
>>>>>>>> Is selinux enabled perhaps?
>>>>>>>>
>>>>>>>>> thanks
>>>>>>>>> fil
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 01/02/2012 06:05 PM, Andrew Beekhof wrote:
>>>>>>>>>> On Sat, Dec 31, 2011 at 12:24 PM, Fil <lists at internyc.net> wrote:
>>>>>>>>>>> Hi Andreas,
>>>>>>>>>>>
>>>>>>>>>>> That is exactly how I am staring the cluster first cman and then
>>>>>>>>>>> pacemaker. For some reason pacemaker doesn't start until I run
>>>>>>>>>>> pacemakerd by hand and then kill it. After that I can run
>>>>>>>>>>>
>>>>>>>>>>> systemctl start pacemaker.service ( or /etc/init.d/pacemaker start )
>>>>>>>>>>>
>>>>>>>>>>> This is the only thing which shows up in the log files
>>>>>>>>>>>
>>>>>>>>>>> Dec 30 20:03:49 server01 systemd[1]: pacemaker.service: control process
>>>>>>>>>>> exited, code=exited status=200
>>>>>>>>>>> Dec 30 20:03:49 server01 systemd[1]: pacemaker.service holdoff time
>>>>>>>>>>> over, scheduling restart.
>>>>>>>>>>> Dec 30 20:03:49 server01 systemd[1]: Job pending for unit, delaying
>>>>>>>>>>> automatic restart.
>>>>>>>>>>> Dec 30 20:03:49 server01 systemd[1]: Unit pacemaker.service entered
>>>>>>>>>>> failed state.
>>>>>>>>>>> Dec 30 20:03:49 server01 systemd[1]: pacemaker.service start request
>>>>>>>>>>> repeated too quickly, refusing to start.
>>>>>>>>>>
>>>>>>>>>> Anything from pacemaker itself?
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> here are the configs
>>>>>>>>>>>
>>>>>>>>>>> node server01
>>>>>>>>>>> node server02
>>>>>>>>>>> primitive clvmd lsb:clvmd
>>>>>>>>>>> primitive resDLM ocf:pacemaker:controld \
>>>>>>>>>>> params daemon="dlm_controld" \
>>>>>>>>>>> op start interval="0" timeout="90s" \
>>>>>>>>>>> op stop interval="0" timeout="100s" \
>>>>>>>>>>> op monitor interval="120s"
>>>>>>>>>>> primitive stonith_sbd stonith:external/sbd \
>>>>>>>>>>> params
>>>>>>>>>>> sbd_device="/dev/disk/by-path/ip-192.168.10.5\:3260-iscsi-iqn.2004-04.com.qnap\:ts-459proii\:iscsi.sbd01.cb4d16-lun-0"
>>>>>>>>>>> \
>>>>>>>>>>> meta target-role="Started"
>>>>>>>>>>> clone cloneDLM resDLM \
>>>>>>>>>>> meta interleave="true"
>>>>>>>>>>> clone clone_clvmd clvmd \
>>>>>>>>>>> meta interleave="true"
>>>>>>>>>>> property $id="cib-bootstrap-options" \
>>>>>>>>>>> dc-version="1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5" \
>>>>>>>>>>> cluster-infrastructure="cman" \
>>>>>>>>>>> expected-quorum-votes="2" \
>>>>>>>>>>> stonith-enabled="true" \
>>>>>>>>>>> no-quorum-policy="ignore" \
>>>>>>>>>>> default-resource-stickiness="100" \
>>>>>>>>>>> last-lrm-refresh="1325237993" \
>>>>>>>>>>> stonith-timeout="60s" \
>>>>>>>>>>> stonith-action="reboot"
>>>>>>>>>>>
>>>>>>>>>>> <?xml version="1.0"?>
>>>>>>>>>>> <cluster config_version="4" name="adriatic">
>>>>>>>>>>> <logging debug="on"/>
>>>>>>>>>>> <clusternodes>
>>>>>>>>>>> <clusternode name="server01" nodeid="1">
>>>>>>>>>>> <fence>
>>>>>>>>>>> <method name="pcmk-redirect">
>>>>>>>>>>> <device name="pcmk" port="server01"/>
>>>>>>>>>>> </method>
>>>>>>>>>>> </fence>
>>>>>>>>>>> </clusternode>
>>>>>>>>>>> <clusternode name="server02" nodeid="2">
>>>>>>>>>>> <fence>
>>>>>>>>>>> <method name="pcmk-redirect">
>>>>>>>>>>> <device name="pcmk" port="server02"/>
>>>>>>>>>>> </method>
>>>>>>>>>>> </fence>
>>>>>>>>>>> </clusternode>
>>>>>>>>>>> </clusternodes>
>>>>>>>>>>> <fencedevices>
>>>>>>>>>>> <fencedevice name="pcmk" agent="fence_pcmk"/>
>>>>>>>>>>> </fencedevices>
>>>>>>>>>>> <cman two_node="1" expected_votes="1" port="5405">
>>>>>>>>>>> <multicast addr="226.94.1.2"/>
>>>>>>>>>>> </cman>
>>>>>>>>>>> </cluster>
>>>>>>>>>>>
>>>>>>>>>>> thanks
>>>>>>>>>>> fil
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 12/28/2011 06:43 PM, Andreas Kurz wrote:
>>>>>>>>>>>> Hello,
>>>>>>>>>>>>
>>>>>>>>>>>> On 12/24/2011 09:13 AM, Fil wrote:
>>>>>>>>>>>>> Hi everyone,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Happy holidays!
>>>>>>>>>>>>>
>>>>>>>>>>>>> I need some help with adding CMAN to my current cluster config.
>>>>>>>>>>>>> Currently I have a two node Corosync/Pacemaker (Active/Passive) cluster.
>>>>>>>>>>>>> It works as expected. Now I need to add a distributed filesystem to my
>>>>>>>>>>>>> setup. I would like to test GFS2. As much as I understand I need to
>>>>>>>>>>>>> setup CMAN to manage dlm/gfs_controld, am I correct? I have followed the
>>>>>>>>>>>>> Clusters_from_Scratch document but I am having issues starting
>>>>>>>>>>>>> pacemakerd once the cman is up and running. Is it possible to use
>>>>>>>>>>>>> dlm/gfs_controld without cman, directly from pacemaker? How do I strat
>>>>>>>>>>>>> pacemaker when CMAN is running, and do I even need to, and if not how do
>>>>>>>>>>>>> I manage my resources? Currently I am using:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Fedora 16
>>>>>>>>>>>>> corosync-1.4.2-1.fc16.x86_64
>>>>>>>>>>>>> pacemaker-1.1.6-4.fc16.x86_64
>>>>>>>>>>>>> cman-3.1.7-1.fc16.x86_64
>>>>>>>>>>>>
>>>>>>>>>>>> Only start cman service -- not corosync -- and then start pacemaker
>>>>>>>>>>>> service, that should be enough. What is the error you get when starting
>>>>>>>>>>>> pacemaker via its init script?
>>>>>>>>>>>>
>>>>>>>>>>>> Regards,
>>>>>>>>>>>> Andreas
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Pacemaker mailing list: Pacemaker at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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
More information about the Pacemaker
mailing list