lucisit
asked on
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
Thanks in advance my best regards.
Luciano
ASKER
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:VirtualDomai n \
params config=/etc/libvirt/qemu/v m_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
Config .....
VM:
crm(live)# configure
crm(live)configure# primitive p_virtdom_vm_name \
ocf:heartbeat:VirtualDomai
params config=/etc/libvirt/qemu/v
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
ASKER
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
I'm really apreciating all the efforts in helping me.
Kind regards.
Luciano
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tanks for helping me.
Lucisit
Lucisit
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/