Hello All,
Thanks for suggesting me to upgrade from heartbeat-2.1.3 to pacemaker +
heartbeat..
Now the things seems to be so fine..but still I have some doubts. It will be
very grateful to get those doubts cleared..
I've got a 3 node cluster of OpenVZ (running VM's managed by pacemaker with
Heartbeat on iSCSI) that I'm trying to get working in a stable fashion, but
I'm having a hard time avoiding what I've dubbed the "startled herd"
problem.
Basically, the whole cluster sits there quite happily unless I defined
colocations for the resources, which I am running on the 2 machines with 1
stand by machine. Might be the way I am defining colocations is
wrong..please suggest me how I can define the colocations for my these 2
resources.
Basically the scenario is:
I have configured 2 resources groups containing all necessary file system,
ip address and vz-script.
The 3 node are as:
1) node_master ---> Active node
2) node_slave ---> Passive node
3) node3 ---------> Active node
And the 2 resources are as:
1) group_vz_1
2) group_vz_2
My need is I don't want to have these 2 groups run on same machine(In case
of both active machine get crashes and resource failover to standby
machine(node_slave)).
Please let me know how I can define the colocation fro the 2 resources so
that it won't run together.
Output of crm configure show are as:
[r...@node_slave ~]# crm configure show
node $id="075961d1-4492-4ba9-b4ad-e8c27b9e3f4b" node_master \
attributes $id="nodes-075961d1-4492-4ba9-b4ad-e8c27b9e3f4b"
node $id="7e5fdac9-80dc-41a7-bd8f-a5591a1b69a0" node3 \
attributes $id="nodes-7e5fdac9-80dc-41a7-bd8f-a5591a1b69a0"
node $id="d90b1ed2-0000-44ac-9a4d-b435a6befd36" node_slave \
attributes $id="nodes-d90b1ed2-0000-44ac-9a4d-b435a6befd36"
primitive filesystem1_Filesystem ocf:heartbeat:Filesystem \
operations $id="filesystem1_Filesystem-operations" \
op start interval="0" timeout="60" \
op stop interval="0" timeout="60" \
op notify interval="0" timeout="60" \
op monitor interval="20" timeout="40" start-delay="0" \
op validate-all interval="0" timeout="5" \
op meta-data interval="0" timeout="5" \
params
device="/dev/disk/by-uuid/f5feb406-685a-41f8-a4f7-170ae0925901"
directory="/vz" fstype="ext3" options="_netdev,noatime" \
meta resource-stickiness="2000"
primitive filesystem2_Filesystem ocf:heartbeat:Filesystem \
operations $id="filesystem2_Filesystem-operations" \
op start interval="0" timeout="60" \
op stop interval="0" timeout="60" \
op notify interval="0" timeout="60" \
op monitor interval="20" timeout="40" start-delay="0" \
op validate-all interval="0" timeout="5" \
op meta-data interval="0" timeout="5" \
params
device="/dev/disk/by-uuid/81c3845e-c2f6-4cb0-a0cd-e00c074942fb"
directory="/vz" fstype="ext3" options="_netdev,noatime" \
meta resource-stickiness="2000"
primitive vip2_ipaddr2 ocf:heartbeat:IPaddr2 \
operations $id="vip2_ipaddr2-operations" \
op start interval="0" timeout="90" \
op stop interval="0" timeout="100" \
op status interval="10s" timeout="20s" start-delay="0" \
op monitor interval="10s" timeout="20s" start-delay="0" \
op meta-data interval="0" timeout="5s" \
op validate-all interval="0" timeout="20s" \
params ip="66.199.245.207" nic="eth0" cidr_netmask="255.255.255.224"
\
meta resource-stickiness="2000"
primitive vip_ipaddr2 ocf:heartbeat:IPaddr2 \
operations $id="vip_ipaddr2-operations" \
op start interval="0" timeout="90" \
op stop interval="0" timeout="100" \
op status interval="10s" timeout="20s" start-delay="0" \
op monitor interval="10s" timeout="20s" start-delay="0" \
op meta-data interval="0" timeout="5s" \
op validate-all interval="0" timeout="20s" \
params ip="66.199.245.204" nic="eth0" cidr_netmask="255.255.255.224"
\
meta resource-stickiness="2000"
primitive vz1_script lsb:vz \
operations $id="vz1_script-operations" \
op start interval="0" timeout="250" \
op stop interval="0" timeout="250" \
op status interval="10" timeout="10" \
op monitor interval="15" timeout="15" start-delay="15" \
op meta-data interval="0" timeout="5" \
meta is-managed="true" resource-stickiness="2000"
primitive vz2_script lsb:vz \
operations $id="vz2_script-operations" \
op start interval="0" timeout="250" \
op stop interval="0" timeout="200" \
op status interval="10" timeout="10" \
op monitor interval="10" timeout="10" start-delay="15" \
op meta-data interval="0" timeout="5" \
meta resource-stickiness="2000" \
params $id="vz2_script-instance_attributes"
group group_vz_1 vip_ipaddr2 filesystem1_Filesystem vz1_script \
meta target-role="started"
group group_vz_2 vip2_ipaddr2 filesystem2_Filesystem vz2_script \
meta target-role="started"
location location_master group_vz_1 700: node_master
location location_node3 group_vz_2 600: node3
location location_slave_1 group_vz_1 0: node_slave
location location_slave_2 group_vz_2 0: node_slave
colocation colocation_vz_test -inf: group_vz_1 group_vz_2
property $id="cib-bootstrap-options" \
dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \
cluster-infrastructure="Heartbeat" \
stonith-enabled="false" \
symmetric-cluster="false" \
last-lrm-refresh="1263311374"
rsc_defaults $id="rsc_defaults-options"
Cheer's,
Jaspal
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems