Hi all,
<div><br></div><div>I've been struggling with this for a few days/weeks and I don't know what to do. I would really appreciate some help. </div><div><br></div><div>I need to run MYSQL in 2 nodes and use a virtual IP which will switch from one node to the other one in case MYSQL fails in one of the other nodes. The important constraint is that i MYSQL must run on both nodes at the same time.</div>
<div><br></div><div>So I decided to clone MYSQL and I've tried to configure a location binding VIRTUALIP (or the group) to MYSQL service... but no luck. </div><div><br></div><div>My config is:</div><div><br></div><div>
<div><div>crm(live)configure# show</div><div>node $id="91e3bbf4-a8fc-416d-bb5e-ab0c0a8fa5a9" db-backupmaster</div><div>node $id="b61f8090-fb35-456c-91fd-cbb7fa869058" db-backupslave</div><div>primitive MYSQL ocf:heartbeat:mysql \</div>
<div> op monitor interval="30s" timeout="20s" \</div><div> meta migration-threshold="3"</div><div>primitive VIRTUALIP ocf:heartbeat:IPaddr2 \</div><div> params ip="10.10.65.38" \</div>
<div> op monitor interval="30s" timeout="5s" migration-threshold="3"</div><div>group MYGROUP VIRTUALIP \</div><div> meta target-role="Started"</div><div>clone mysqldclone MYSQL \</div>
<div> meta globally-unique="false" target-role="Started"</div><div>location VIRTUALIP_ON_ACTIVE_MYSQL VIRTUALIP \</div><div> rule $id="VIRTUALIP_ON_ACTIVE_MYSQL-rule" -inf: not_defined MYSQL</div>
<div>property $id="cib-bootstrap-options" \</div><div> dc-version="1.0.10-da7075976b5ff0bee71074385f8fd02f296ec8a3" \</div><div> cluster-infrastructure="Heartbeat" \</div><div> expected-quorum-votes="2" \</div>
<div> stonith-enabled="0" \</div><div> default-resource-stickiness="1"</div></div></div><div><br></div><div>If I do a crm_mon -r</div><div><br></div><div><div>Online: [ db-backupslave db-backupmaster ]</div>
<div><br></div><div>Full list of resources:</div><div><br></div><div> Clone Set: mysqldclone</div><div> Started: [ db-backupslave db-backupmaster ]</div><div> Resource Group: MYGROUP</div><div> VIRTUALIP (ocf::heartbeat:IPaddr2): Stopped</div>
</div><div><br></div><div>can anyone suggest me how to do that location ?? or how to do that ?</div><div><br></div><div>Thanks in advance</div>