[Pacemaker] resource go in unmanaged mode when node startup
Umberto Carrara
info at umbertocarrara.it
Fri Sep 2 16:47:19 UTC 2011
hi,
I have a cluster with kvm vms and libvirt+iscsi, everything is fine except
when i restart a node, when corosync service start, the cluster try move
running vms resource in alive node before the resources, iscsi and libvirt,
are ready
this rules
colocation domainonservice inf: file serviceclone
order servicebeforedomain inf: serviceclone:start file
within
resource-stickiness="1000"
should prevent this, right?
the only thing to do is a cleanup of resources.
is a problem of timeout or wrong config?
in attach my crm config and log
Thanks to all in advance
Umberto
-------------- next part --------------
node host2 \
attributes standby="off"
node host3 \
attributes standby="off"
primitive iscsi lsb:open-iscsi \
operations $id="iscsi-operation" \
op start interval="0" timeout="15s" \
op stop interval="0" timeout="15s" \
op monitor interval="30s" timeout="60s"
primitive pingsan ocf:pacemaker:ping \
params name="pingd-san" host_list="192.168.1.3" multiplier="100" \
op monitor interval="10s" timeout="60s" \
op start interval="0" timeout="60s" \
op stop interval="0" timeout="60s"
primitive virsh lsb:libvirt-bin \
operations $id="virsh-operation" \
op start interval="0" timeout="15s" \
op stop interval="0" timeout="15s" \
op monitor interval="30s" timeout="60s"
primitive file ocf:heartbeat:virtualdomain \
params config="/etc/libvirt/qemu/file.xml" hypervisor="qemu:///system" migration_transport="ssh" \
operations $id="file-operations" \
op start interval="0" timeout="180" \
op stop interval="0" timeout="90" \
op migrate_from interval="0" timeout="90" \
op migrate_to interval="0" timeout="120" \
op monitor interval="10" timeout="30" start-delay="0" \
meta target-role="started" allow-migrate="true" failure-timeout="10min"
group service iscsi virsh
clone pingsanclone pingsan \
meta globally-unique="false" interleave="true" target-role="started"
clone serviceclone service \
meta globally-unique="false" interleave="true" target-role="started"
location serviceclonelocation serviceclone \
rule $id="servicecloneonconnectedsan" -inf: not_defined pingd-san or pingd-san lte 0
location cli-prefer-file file \
rule $id="cli-prefer-rule-file" inf: #uname eq host3
colocation domainonservice inf: _rsc_set_ ( file ) serviceclone
order servicebeforedomain inf: _rsc_set_ serviceclone:start ( file )
property $id="cib-bootstrap-options" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
dc-version="1.1.5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
last-lrm-refresh="1314979997"
rsc_defaults $id="rsc-options" \
resource-stickiness="1000"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cluster.log
Type: text/x-log
Size: 25882 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110902/144fcb43/attachment-0003.bin>
More information about the Pacemaker
mailing list