[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] problem with rgmanager & depend / depend_mode



Hi all,

  I'm trying to use 'depend' in rgmanager on rhel 6.4 to delay the
start-up of VM services until storage starts. The storage is managed as
a separate service (drbd -> clvmd -> gfs2). The 'depend_mode' is 'soft'.

  I got the start-up part working, but I have a problem now with
stopping a node. If I live-migrate a VM off of the main node and then
shut down it's storage, the VM shuts down immediately after with:

----
Nov 14 23:59:31 an-c05n02 rgmanager[14414]: Stopping service
vm:vm01-win2008: Dependency missing
Nov 14 23:59:31 an-c05n02 rgmanager[14414]: Stopping service vm:vm01-win2008
----

The relevant config is:

----
<vm autostart="1" depend="service:storage_n01" depend_mode="soft"
domain="primary_n01" exclusive="0" max_restarts="2" name="vm01-win2008"
path="/shared/definitions/" recovery="restart" restart_expire_time="600">
	<action name="stop" timeout="30m"/>
</vm>
----

According to vm.sh meta-data:

----
        <parameter name="depend_mode">
            <longdesc lang="en">
		Service dependency mode.
		hard - This service is stopped/started if its dependency
		       is stopped/started
		soft - This service only depends on the other service for
		       initial startip.  If the other service stops, this
		       service is not stopped.
            </longdesc>
----

I opened a rhbz for this, but was hoping I might get some help here,
too. This has stopped my current project in it's tracks.

Thanks!

https://bugzilla.redhat.com/show_bug.cgi?id=1030680

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]