[Pacemaker] Ordering resource groups

aRaviNd ambadiaravind at gmail.com
Fri Jan 11 07:08:25 UTC 2013


Hi,

Yes i am using crm to configure.

Below is the configuration i tried

group icinga_svc mysql ido2db icinga
group ocfs_fs dlm o2cb clvm vg1 ocfs2-1 ocfs2-2
clone ocfs-clone ocfs_fs \
        meta interleave="true" target-role="Started"

crm(live)configure# order svc_aftr_fs inf: ocfs_fs icinga_svc
crm(live)configure# commit
crm_verify[13679]: 2013/01/11_07:57:29 ERROR: unpack_order_template:
Invalid constraint 'svc_aftr_fs': No resource or template named 'ocfs_fs'
Errors found during check: config not valid
Do you still want to commit?

Clone configuration is used for making the ocfs filesystem available on
both the nodes at same time.

I need the icinga_svc to start on first node only if the ocfs_fs is
available otherwise i need to start the services on second node.

This is what i am trying to acheive with above configuration.

Please let me also know if this can be configured in different way.

Thanks in advance.

Rgds,
Aravind M D





On Thu, Jan 10, 2013 at 1:18 AM, David Vossel <dvossel at redhat.com> wrote:

>
>
> ----- Original Message -----
> > From: "aRaviNd" <ambadiaravind at gmail.com>
> > To: pacemaker at oss.clusterlabs.org
> > Sent: Wednesday, January 9, 2013 9:58:55 AM
> > Subject: [Pacemaker] Ordering resource groups
> > Hi,
> >
> > I have configured 2 node cluster using pacemaker and corosync in
> > Debian. One resource group is configured for cluster filesystem
> > ocfs2 which contain resources dlm, o2cb, clvm etc. This resource
> > group is cloned to run on both the servers.
> >
> > Another resource group is configured for service icinga with
> > resources mysql, ido2db and icinga.
> >
> > I need to configure ordering constraint to start icinga resource
> > group after ocfs resource group.
> >
> > But when i configure the ordering constraint it says no resource or
> > template by name ocfs resource group name.
> >
> > Could you please let me know if it possible to configure ordering
> > with resource group.
>
> Yes, it is definitely possible.
>
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1-crmsh/html-single/Pacemaker_Explained/index.html#_group_constraints
>
> and
>
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1-crmsh/html-single/Pacemaker_Explained/index.html#_clone_constraints
>
> shows the xml representation in the cib.
>
> Are you using a configuration tool like crm or pcs?  If so this may be a
> problem with that project.
>
> -- Vossel
>
>
> >
> >
> > If it is not possible how can i achieve the above configuration.
> >
> >
> > Thanks in advance.
> >
> >
> > Rgds,
> > Aravind M D
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130111/390dacba/attachment.htm>


More information about the Pacemaker mailing list