[Cluster-devel] [fence-virt PATCH] backend plugin for Pacemaker

Kazunori INOUE inouekazu at intellilink.co.jp
Tue Sep 20 07:40:24 UTC 2011


Hi,

I created the backend "pm-fence" which has met the following
configurations / requirements.
- Both hosts and VMs, cluster (Pacemaker) have been configured.
  * This backend has STONITH (fencing) function of the VM cluster.
- The VMs are managed as resources (RA is VirtualDomain) by the host cluster.
  * In this configuration, in order to stop a VM,
    it is necessary to stop the resource through the host cluster.
    When the VM was stopped without through the host cluster
    (e.g., run the 'virsh destory'), the host cluster considers that
    VM resource failed.

Here's an overview of function. Please refer to attached 'overview.png'.
(1) pacemaker detects failure of resource.
(2) STONITH (STONITH plugin is vm-stonith) is executed, target is srv-B.
(3) vm-stonith requests 'fencing' to a host with fence_virt.
(4) use the serial listener.
(5~7) fence_virtd (pm-fence backend) requests 'forced stop' of VM
    resource (that is, srv-B) to pacemaker.
(8) destroy the srv-B.

Here's a description of the attached files.
* pm-fence_backend_for_pacemaker.patch
  - add the server/pm-fence.c
  - change the configure.in and server/Makefile.in
* VirtualDoamin
  - Resource Agent for domains managed.
  - I'm going to post this RA to the appropriate community
    (https://github.com/ClusterLabs/resource-agents).
* vm-stonith
  - STONITH plugin (External STONITH module) for VM.
  - I'm going to post this plugin to the appropriate community
    (http://hg.linux-ha.org/glue/).
* overview.png
  - figure of the overview.
* fence_virt.conf
  - sample configuration.
* host.cli, mon-host.txt
  - sample configuration file of a host cluster,
    and mon-host.txt is an output of the crm_mon command.
* VM.cli, mon-VM.txt
  - sample configuration file of a VM cluster,
    and mon-VM.txt is an output of the crm_mon command.

Best Regards,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pm-fence_backend_for_pacemaker.patch
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VirtualDomain
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vm-stonith
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment-0002.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overview.png
Type: image/png
Size: 32112 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fence_virt.conf
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment.conf>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: host.cli
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment-0003.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mon-host.txt
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VM.cli
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment-0004.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mon-VM.txt
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110920/e3e2a0c5/attachment-0001.txt>


More information about the Cluster-devel mailing list