Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

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.

Luciano
0
lucisit
Asked:
lucisit
  • 3
  • 2
1 Solution
 
yuzhCommented:
Please have a look at the following docs to see if it can help:
1. "Intro to pacemaker on heartbeat"

http://blog.foaa.de/2010/10/intro-to-pacemaker-on-heartbeat/

2. "Intro to pacemaker part 2: Advanced topics":

http://blog.foaa.de/2010/10/intro-to-pacemaker-part-2-advanced-topics/
 3. Manuals:
http://www.linbit.com/en/education/tech-guides/highly-available-virtualization-with-kvm-iscsi-pacemaker/
0
 
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 .....
VM:
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 ...
Location:
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.

Luciano
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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.

Luciano
0
 
icenickCommented:
Hello,

Please find the attached file. It really helped me to start with pacemaker. Hope it helps you too. Clusters-from-Scratch---Apache-o.pdf
0
 
lucisitAuthor Commented:
Tanks for helping me.

Lucisit
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now