Pacemaker configuration

Posted on 2011-10-06
Last Modified: 2012-08-14
Hello, I'm looking for a sample configurationon of  Pacemaker with multiple  nodes (3 or more) running KVM.
Thanks in advance my best regards.

Question by:lucisit
    LVL 38

    Expert Comment

    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:

    Author Comment

    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.

    LVL 38

    Expert Comment


    Author Comment

    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.

    LVL 7

    Accepted Solution


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

    Author Closing Comment

    Tanks for helping me.


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now