Hi,

On Sat, Mar 20, 2010 at 05:13:29PM -0700, Robinson, Eric wrote:
> Hi Dejan, you suggested the following...
>  
>  
> > order o1 inf: basegroup ( r1 r2 r3 ... ) collocation c1 \
> > inf: ( r1 r2 r3 ... ) basegroup
> 
> Would you be so kind as to show me how to work that into my
> current config? As I said earlier, the ultimate goal is for the
> MySQL services to migrate in paralell, but for all of them to
> be dependent on the underlying resources: filesystem, drbd, and
> the cluster IP.
>  
> Following is what I have right now...
>  
>  
> 
> node ha05.mydomain.com
> node ha06.mydomain.com
> primitive p_ClusterIP ocf:heartbeat:IPaddr2 \
>         params ip="192.168.10.205" cidr_netmask="32" \
>         op monitor interval="15s"
> primitive p_DRBD ocf:linbit:drbd \
>         params drbd_resource="ha_mysql" \
>         op monitor interval="15s"
> primitive p_FileSystem ocf:heartbeat:Filesystem \
>         params device="/dev/drbd0" directory="/ha_mysql" fstype="ext3"
> primitive p_MySQL_001 lsb:mysql_001
> primitive p_MySQL_002 lsb:mysql_002
> primitive p_MySQL_003 lsb:mysql_003
> ms ms_DRBD p_DRBD \
>         meta master-max="1" master-node-max="1" clone-max="2" 
> clone-node-max="1" notify="true"

> group g_MySQL p_FileSystem p_ClusterIP p_MySQL_001 p_MySQL_002 p_MySQL_003
> colocation c_MySQL_DRBD inf: g_MySQL ms_DRBD:Master
> order o_MySQL_then_DRBD inf: ms_DRBD:promote g_MySQL:start

Try to add this instead of the existing constraints and a group:

group fs p_FileSystem p_ClusterIP
colocation c_drbd_fs inf: fs ms_DRBD:Master
order o_drbd_fs inf: ms_DRBD:promote fs:start
collocation c_fs_mysql inf: ( p_MySQL_001 p_MySQL_002 p_MySQL_003 ) fs
order o_fs_mysql inf: fs ( p_MySQL_001 p_MySQL_002 p_MySQL_003 )

The FS and the IP don't depend on each other, I guess that it
doesn't really matter, but you could also try this one:

order o_drbd_fs_mysql inf: ms_DRBD:promote ( p_FileSystem p_ClusterIP ) ( 
p_MySQL_001 p_MySQL_002 p_MySQL_003 )
collocation c_drbd_fs_mysql inf: ( p_MySQL_001 p_MySQL_002 p_MySQL_003 ) ( 
p_FileSystem p_ClusterIP ) ms_DRBD:Master

Though the latter seems to be not very easy to read.

Please test thoroughly.

Thanks,

Dejan

> property $id="cib-bootstrap-options" \
>         dc-version="1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="2" \
>         stonith-enabled="false" \
>         no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
>         resource-stickiness="100"
> 
>  


> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
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