[Linux-cluster] service can not be relocated

Changer Van changerv at gmail.com
Thu Sep 27 07:31:40 UTC 2007


Hi all,

Httpd service can not be relocated when I performed the command as follows:

# clusvcadm -r httpd
Trying to relocate service:httpd...Failure
service:httpd is now running on node02

Here are cluster status:
Member Status: Quorate

  Member Name                        ID   Status
  ------ ----                        ---- ------
  node01                                1 Online, Local, rgmanager
  node02                                2 Online, rgmanager

  Service Name         Owner (Last)                   State
  ------- ----         ----- ------                   -----
  service:httpd        node02                         started



Here are the context of cluster.conf:
<?xml version="1.0" ?>
<cluster alias="web_cluster" config_version="5" name="web_cluster">
        <fence_daemon post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="node01" nodeid="1" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="manual"
nodename="node01"/>
                                </method>
                        </fence>
                </clusternode>
                <clusternode name="node02" nodeid="2" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="manual"
nodename="node02"/>
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman expected_votes="1" two_node="1"/>
        <fencedevices>
                <fencedevice agent="fence_manual" name="manual"/>
        </fencedevices>
        <rm>
                <failoverdomains>
                        <failoverdomain name="web" ordered="0"
restricted="0">
                                <failoverdomainnode name="node01"
priority="1"/>
                                <failoverdomainnode name="node02"
priority="1"/>
                        </failoverdomain>
                </failoverdomains>
                <resources>
                        <ip address="192.168.0.101" monitor_link="1"/>
                        <script file="/etc/init.d/httpd" name="httpd"/>
                        <clusterfs device="/dev/gnbd/gfs" force_unmount="1"
fsid="57107" fstype="gfs" mountpoint="/media/gfs" name="gnbd_storage"
options=""/>
                </resources>
                <service autostart="0" domain="web" name="httpd"
recovery="relocate">
                        <ip ref="192.168.0.101">
                                <script ref="httpd"/>
                                <clusterfs ref="gnbd_storage"/>
                        </ip>
                </service>
        </rm>
</cluster>

Any help would be greatly appreciated.


-- 
Regards,
Changer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20070927/ddaaeb5c/attachment.htm>


More information about the Linux-cluster mailing list