[Linux-cluster] how to handle fence for a simple apache active/passive cluster with virtual ip on 2 virtual machine

nik600 nik600 at gmail.com
Sat Feb 1 18:35:25 UTC 2014

Dear all

i need some clarification about clustering with rhel 6.4

i have a cluster with 2 node in active/passive configuration, i simply want
to have a virtual ip and migrate it between 2 nodes.

i've noticed that if i reboot or manually shut down a node the failover
works correctly, but if i power-off one node the cluster doesn't failover
on the other node.

Another stange situation is that if power off all the nodes and then switch
on only one the cluster doesn't start on the active node.

I've read manual and documentation at


and i've understand that the problem is related to fencing, but the problem
is that my 2 nodes are on 2 virtual machine , i can't control hardware and
can't issue any custom command on the host-side.

I've tried to use fence_xvm but i'm not sure about it because if my VM has
powered-off, how can it reply to fence_vxm messags?

Here my logs when i power off the VM:

==> /var/log/cluster/fenced.log <==
Feb 01 18:50:22 fenced fencing node mynode02
Feb 01 18:50:53 fenced fence mynode02 dev 0.0 agent fence_xvm result: error
from agent
Feb 01 18:50:53 fenced fence mynode02 failed

I've tried to force the manual fence with:

fence_ack_manual mynode02

and in this case the failover works properly.

The point is: as i'm not using any shared filesystem but i'm only sharing
apache with a virtual ip, i won't have any split-brain scenario so i don't
need fencing, or not?

So, is there the possibility to have a simple "dummy" fencing?

here is my config.xml:

<?xml version="1.0"?>
<cluster config_version="20" name="hacluster">
        <fence_daemon clean_start="0" post_fail_delay="0"
        <cman expected_votes="1" two_node="1"/>
                <clusternode name="mynode01" nodeid="1" votes="1">
                                <method name="mynode01">
                                        <device domain="mynode01"
                <clusternode name="mynode02" nodeid="2" votes="1">
                                <method name="mynode02">
                                        <device domain="mynode02"
                <fencedevice agent="fence_xvm" name="mynode01"/>
                <fencedevice agent="fence_xvm" name="mynode02"/>
        <rm log_level="7">
                        <failoverdomain name="MYSERVICE" nofailback="0"
ordered="0" restricted="0">
                                <failoverdomainnode name="mynode01"
                                <failoverdomainnode name="mynode02"
                <service autostart="1" exclusive="0" name="MYSERVICE"
                        <ip address="" monitor_link="on"
<apache config_file="conf/httpd.conf" name="apache"
server_root="/etc/httpd" shutdown_wait="0"/>

Thanks to all in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20140201/f1047d2e/attachment.htm>

More information about the Linux-cluster mailing list