Avatar of jamiebeck
jamiebeck
 asked on

pacemaker resource management tool

I have been trying to get a pacemaker/drbd/corosync system (2 actually) setup. I have found a number of different tutorials but I keep getting stuck at the same step. I think that I am missing something very simple but can't figure it out.

I am running a clean CentOS 6.4 (fresh install) and when I successfully install pacemaker with yum I expect that I am suppose to have an executable called "crm" on my system but I get "command not found" every time. I have tried about 4 different tutorials but end up stuck at the same spot where they say to start setting configs by using the "crm configure" command.

All the packages seem to install properly with no errors at all.


I have run "locate crm" to see if it is just in an odd location but it is not...
# locate crm
/usr/bin/ipcrm
/usr/lib/drbd/crm-fence-peer.sh
/usr/lib/drbd/crm-unfence-peer.sh
/usr/lib64/libcrmcluster.so.2
/usr/lib64/libcrmcluster.so.2.1.0
/usr/lib64/libcrmcommon.so.3
/usr/lib64/libcrmcommon.so.3.1.0
/usr/lib64/libcrmservice.so.1
/usr/lib64/libcrmservice.so.1.0.0
/usr/libexec/pacemaker/crmd
/usr/sbin/crm_attribute
/usr/sbin/crm_diff
/usr/sbin/crm_error
/usr/sbin/crm_failcount
/usr/sbin/crm_master
/usr/sbin/crm_mon
/usr/sbin/crm_node
/usr/sbin/crm_report
/usr/sbin/crm_resource
/usr/sbin/crm_shadow
/usr/sbin/crm_simulate
/usr/sbin/crm_standby
/usr/sbin/crm_ticket
/usr/sbin/crm_verify
/usr/sbin/crmadmin
/usr/share/man/man1/ipcrm.1.gz
/usr/share/man/man1p/ipcrm.1p.gz
/usr/share/man/man7/crmd.7.gz
/usr/share/man/man8/crm_attribute.8.gz
/usr/share/man/man8/crm_diff.8.gz
/usr/share/man/man8/crm_error.8.gz
/usr/share/man/man8/crm_failcount.8.gz
/usr/share/man/man8/crm_master.8.gz
/usr/share/man/man8/crm_mon.8.gz
/usr/share/man/man8/crm_node.8.gz
/usr/share/man/man8/crm_report.8.gz
/usr/share/man/man8/crm_resource.8.gz
/usr/share/man/man8/crm_shadow.8.gz
/usr/share/man/man8/crm_simulate.8.gz
/usr/share/man/man8/crm_standby.8.gz
/usr/share/man/man8/crm_ticket.8.gz
/usr/share/man/man8/crm_verify.8.gz
/usr/share/man/man8/crmadmin.8.gz
/usr/share/pacemaker/crm-transitional.dtd
/usr/share/pacemaker/crm.dtd
/usr/share/vim/vim72/ftplugin/crm.vim
/usr/share/vim/vim72/syntax/crm.vim


// what yum tells me
]# yum list pacemaker*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ca.planethoster.net
 * elrepo: mirror.symnds.com
 * extras: mirror.csclub.uwaterloo.ca
 * updates: centos.mirror.ca.planethoster.net
Installed Packages
pacemaker.x86_64                                1.1.8-7.el6                    @base
pacemaker-cli.x86_64                            1.1.8-7.el6                    @base
pacemaker-cluster-libs.x86_64                   1.1.8-7.el6                    @base
pacemaker-cts.x86_64                            1.1.8-7.el6                    @base
pacemaker-doc.x86_64                            1.1.8-7.el6                    @base
pacemaker-libs.x86_64                           1.1.8-7.el6                    @base
pacemaker-libs-devel.x86_64                     1.1.8-7.el6                    @base
Available Packages
pacemaker-cluster-libs.i686                     1.1.8-7.el6                    base
pacemaker-libs.i686                             1.1.8-7.el6                    base
pacemaker-libs-devel.i686                       1.1.8-7.el6                    base

// when I try to run the management tool
# crm configure
-bash: crm: command not found



// one of the tutorials I have tried (written recently)
http://techdenovo.blogspot.ca/2013/03/clustering-with-drbd-pacemaker-centos.html


I have searched the internet (including this site) and can't fund anyone who has the same issue....
LinuxServer Software

Avatar of undefined
Last Comment
jamiebeck

8/22/2022 - Mon
Mazdajai

Have you load pacemaker plugin
cat /etc/corosync/service.d/pcmk
service {
name: pacemaker
ver: 1
}

Open in new window

and start pacemaker?
/etc/init.d/pacemaker start

Open in new window

jamiebeck

ASKER
Yes the pacemaker plugin is running.

# cat /etc/corosync/service.d/pcmk
service {
        # Load the Pacemaker Cluster Resource Manager
        name: pacemaker
        ver: 1
}

#/etc/init.d/pacemaker start
Starting Pacemaker Cluster Manager:                        [  OK  ]

# crm configure
-bash: crm: command not found

Open in new window

ASKER CERTIFIED SOLUTION
multimac

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jamiebeck

ASKER
You nailed it. Thanks!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck