Hello! I think you'll have to change
the execution order of shutdown
of services. Edit the startup script and change the line as below. In this 
example the script when a heartbeat it to shutdown the script first and after 
the
xen drbd. # Required-Start: $ network $ remote_fs $ time $
syslog xend drbd # Should-Start: openhpid
# Required-Stop: $ network $ remote_fs
$ time $ syslog xend drbd> Hi.> > I've set up a
configuration with drbd as storage for a Xen VM.> Both resources are handled
with Pacemaker 1.0.9.1.> > It works great, and seems to watch and
check for resources correctly, but I have an> issue upon shutdown.> If
I "halt" the last node pacemaker will initiate the stop of all resources at
once, so> trying to stop drbd before the VM has shutdown. This causes drbd to
timeout, other ops> to hang and preventing the hardware to halt.> I've
tried setting up an "order" directive, but even if it can work on startup
doesn't> seem to affect stop.> > How can I make drbd wait for
the VM to stop before trying to release the resource?> Should I use resource
groups or is there another way?> > Thanks.> > node
host1> node host2> primitive DRBD-ubuntu ocf:linbit:drbd \>
        params drbd_resource="ubuntu" \>        operations
$id="DRBD-ubuntu-ops" \>        op monitor interval="20"
role="Master" timeout="40" \>   op monitor
interval="30" role="Slave" timeout="40" \>      meta
target-role="started"> primitive XEN-ubuntu ocf:heartbeat:Xen \>        params 
xmfile="/etc/xen/test.yotest.com.cfg" \>         op monitor
interval="10s" \>       op start interval="0"
timeout="240s" \>       op stop interval="0"
timeout="240s" \>       meta allow-migrate="false"
target-role="Started"> ms ubuntu-MS DRBD-ubuntu \>      meta
resource-stickines="100" master-max="2" notify="true"
interleave="true"> colocation ubuntu-Xen-DRBD inf: XEN-ubuntu
ubuntu-MS:Master> order Xen-after-DRBD inf: ubuntu-MS:promote
XEN-ubuntu:start> property $id="cib-bootstrap-options" \>
        dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \>
        cluster-infrastructure="openais" \>
        expected-quorum-votes="2" \>    no-quorum-policy="ignore"
\>      stonith-enabled="false" \>
        default-resource-stickiness="1000" \>
        last-lrm-refresh="1314783141"
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to