[Linux-cluster] RHCS on KVM

Lon Hohberger lhh at redhat.com
Tue Aug 18 21:52:53 UTC 2009

On Thu, 2009-08-13 at 10:07 -0400, Nehemias Jahcob wrote:
> Hi.
>  How to create a cluster of 2 nodes in rhel5.4 (or Fedora 10) with
> KVM? 
> With XEN follow this guide: 
> http://sources.redhat.com/cluster/wiki/VMClusterCookbook?highlight =
> (CategoryHowTo). 
> Do you have a guide to implementation of RHCS in KVM? 

On Fedora 11, you need to add:

  /usr/sbin/fence_xvmd -LI virbr0

... to /etc/rc.d/rc.local on the "host" machine.

Other than that, you can just add a disk to two machines using
virt-manager (it complains, but does the right thing) to create a shared
"disk" for use by GFS2 or clustered LVM (or for use as a quorum disk).

If you're running a cluster of VMs on a single host using NATted
network, you don't even need to distribute fence_xvm.key (or any keys at

I'll make a note to update that VMClusterCookbook page; it's out of date
and xen-specific.  This is bad because the cluster and associated tools
are all libvirt-based and *NOT* specific to any virtualization

-- Lon

More information about the Linux-cluster mailing list