[Pacemaker] "Grouping" of master/slave resources
Andreas Kurz
andreas at hastexo.com
Mon Jun 25 20:39:11 UTC 2012
On 06/25/2012 06:14 PM, Stallmann, Andreas wrote:
> Hi!
>
>
>
> We are currently switching from mysql-on-drbd with tomcat and a shared
> IP to mysql-master-slave with tomcat-master-slave and shared IP and an
> additonal cloned service (activemq).
>
>
>
> Up until now we had quite an easy setup – especially for the admins who
> did the daily maintenance. All services (exept drbd) where grouped like
> this:
>
>
>
> Resource Group: cluster_grp
>
> fs_r0 (ocf::heartbeat:Filesystem): Started qs-cms-appl01
>
> sharedIP (ocf::heartbeat:IPaddr2): Started qs-cms-appl01
>
> database_res (ocf::heartbeat:mysql): Started qs-cms-appl01
>
> tomcat_res (ocf::ucrs:tomcat): Started qs-cms-appl01
>
> Master/Slave Set: ms_drbd_r0
>
> Masters: [ qs-cms-appl01 ]
>
> Slaves: [ qs-cms-appl02 ]
>
>
>
> There was only one further colocation-constrain, which let fs_r0 only
> run where ms_drbd was running in Master mode. Easy.
>
>
>
> Now, with our new scenario, the situation is a little more complex.
> First, the start order:
>
>
>
> sharedIP
>
> ms_MySQL:Master
>
> activemq_clone
>
> ms_tomcat:Master
>
>
>
> then the constrains:
>
>
>
> ms_MySQL:Master only where shared_IP
>
> ms_tomcat:Master only where database
>
> activemq_clone only where database
>
>
>
> I thought this might be quite easy to achieve with grouping the
> services, but crm won’t let me put Master/Slave resource into a group.
> Why is that?
Groups can only contain primitive resources, though you could clone a
group or have a master-slave group.
You can use resource-sets to create constraints containing primitives
and master-slave resources quite similar to the way groups work.
Regards,
Andreas
--
Need help with Pacemaker?
http://www.hastexo.com/now
>
>
>
> If I try...
>
>
>
> group cluster-grp p_writer_vip ms_MySQL:Master activemq_clone
> ms_tomcat:Master
>
>
>
> I get:
>
>
>
> ERROR: object ms_MySQL:Master does not exist
>
> ERROR: object ms_tomcat:Master does not exist
>
>
>
> Any ideas welcome.
>
>
>
> Cheers and thanks,
>
>
>
> Andreas
>
>
>
> --
> CONET Solutions GmbH
>
>
>
> ----------------------------
> CONET Solutions GmbH, Theodor-Heuss-Allee 19, 53773 Hennef.
> Registergericht/Registration Court: Amtsgericht Siegburg (HRB Nr. 9136)
> Geschäftsführer/Managing Director: Anke Höfer
>
> ----------------------------
>
>
>
>
>
> _______________________________________________
> 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: 222 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120625/ac361c64/attachment-0004.sig>
More information about the Pacemaker
mailing list