[Pacemaker] dependency on start but not on running

Andreas Kurz andreas at hastexo.com
Wed Dec 7 10:23:53 UTC 2011


Hello James,

On 12/07/2011 09:04 AM, James Harper wrote:
> I have a pair of servers running Xen, with the xen config files stored
> on an ocfs2 share mounted on an iscsi volume. A problem has developed
> where ocfs2 seems to get stuck (in the monitor script I think), and
> because I have a dependency of xen vm's depending on the volume where
> the config files are, if the ocfs2 resource fails then pacemaker also
> kills the dependent services.
> 
> Is it possible to have a dependency on a resource starting, but not on
> it continuing to run, or on it migrating to another host? To summarise,
> I want my xen vm to behave like this:
> 
> . Can only start if the ocfs2 volume is mounted
> . May continue to run if the ocfs2 volume is failed
> . May migrate to another node if the ocfs2 volume is failed on either
> the source or the target

Try an advisory order constraints between VMs and ocfs2 mount.

Regards,
Andreas

-- 
Need help with Pacemaker?
http://www.hastexo.com/now

> 
> Upon notification of the problem I'll schedule a reboot to clear the
> failed condition, but there is no need for pacemaker to kill all my VM's
> so I'd rather it didn't - I'd like to handle that at my leisure.
> 
> This is obviously only an interim measure, but as usual it breaks at the
> worst possible moment.
> 
> Thanks
> 
> James
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111207/ceaf6397/attachment-0004.sig>


More information about the Pacemaker mailing list