failsafe config problem

xiebin <[email protected]>
Newsgroups gmane.linux.failsafe
Message-ID <02041322324904.00928@Node500>
Hi,

I just configured a cluster with 2 nodes. The following is my CLI script .
I ran the script .It seemed everything is successful. After script run, I run 
cmgr to show status of node and cluster, got this:
cmgr> show status of node Node233
Status of  machine is INACTIVE.
cmgr> show status of node Node200
Status of  machine is INACTIVE.
cmgr> show status of cluster ww
Status of  machine is INACTIVE.

I also get the status of resource and resource_group:
cmgrcmgr> show status of resource 192.168.1.100 of resource_type IP_address 
in cluster ww
could not contact HA server processes
cmgr> show status of resource web resource_type Apache in cluster ww
could not contact HA server processes

so,I started HA service 
cmgr>start  ha_services on node Node200 for cluster ww
HA services have been activated on node Node200 (cluster ww)

then,I want to get the status of IP address,but I got this:
cmgr>  show status of resource 192.168.1.100 of resource_type IP_address in 
cluster ww
Could not concat HA server processes
Is there anything wrong?
thanks.

#!/usr/lib/failsafe/bin/cluster_mgr -if
#Create the first node

define node Node200
set hostname to Node200
set nodeid to 1
add nic 192.168.0.3
set heartbeat to true
set ctrl_msgs to true
set priority to 2
done
done

# Create the second node.

define node Node233
set hostname to Node233
set nodeid to 2
add nic 192.168.0.2
set heartbeat to true
set ctrl_msgs to true
set priority to 2
done
done

#define cluster
define cluster ww
add node Node200
add node Node233
done

#define failover policy
define failover_policy fp
set attribute to Auto_Recovery
set script to round-robin
set domain Node200 Node233
done

#define ip address resource
define resource 192.168.1.100 of resource_type IP_address in cluster ww
set NetworkMask to 0xffffff00
set interfaces to eth0
set BroadcastAddress to 192.168.1.255
done

#define web server resource
define resource web of resource_type Apache in cluster ww
set server-root to /etc/httpd
set port-number to 80
set monitor-level to 1
set web-ipaddr to 192.168.1.100
set default-page-location to /var/www/html/index.html
done
modify resource web of resource_type Apache in cluster ww
add dependency 192.168.1.100 of type IP_address
done

#define resource group
define resource_group webgp in cluster ww
set failover_policy to fp
add resource 192.168.1.100 of resource_type IP_address
add resource web of resource_type Apache
done
quit



-- 
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.