Pacemaker configuration

Hello, I'm looking for a sample configurationon of  Pacemaker with multiple  nodes (3 or more) running KVM.
Thanks in advance my best regards.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Please have a look at the following docs to see if it can help:
1. "Intro to pacemaker on heartbeat"

2. "Intro to pacemaker part 2: Advanced topics":
 3. Manuals:
lucisitAuthor Commented:
Hello, I have already read all three docs and it is quite clear for services like FTP HTTP and so on but I still have doubt when I have to set master/slave  node for KVM (libvirtd)  running VMs because I'm afraid to run the same VM at the same time. What I t'm thinking to do is something like this:
Config .....
crm(live)# configure
crm(live)configure# primitive p_virtdom_vm_name \
ocf:heartbeat:VirtualDomain \
params config=/etc/libvirt/qemu/vm_name.xml \
meta allow-migrate=true
op monitor interval="30"
config ...
crm(live)configure# location loc1_vm_name  p_virtdom_vm_name 100 : node_production
crm(live)configure# location loc2_vm_name  p_virtdom_vm_name 50 : node_failover

Do you think that the above code will allow me to run the VM on the master node and when it will fail the VM will be running an the slave node without interruption?

Thank you so much for your answer.

My best regards.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

lucisitAuthor Commented:
Hello, I had to be more clear on my question. I succeded in setting and running a configuration Active/Passive with Pacemaker and DRBD (stonith=disable) for the followin services HTTP - FTP - NFS - ISCSI . What I'm lookin for is a sample configuration for pacemaker where are involved only KVM (libvirtd) and stonith, because  my doubts are about how to set them properly, the location for VM and, devices/parameters involved in setting up stonith.
I'm  really apreciating all the efforts in helping me.
Kind regards.


Please find the attached file. It really helped me to start with pacemaker. Hope it helps you too. Clusters-from-Scratch---Apache-o.pdf

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lucisitAuthor Commented:
Tanks for helping me.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.