I found two issues in your configuration.<br><br>1. Still the last location constraint does not make sense. The server-www is a group, not multistate master/slave, so role=master is wrong. This should be msDRBD.<br>2. Why did you set max-master=2? As you said, both nodes came up as master, most of constraints you configured does not make sense. For example, colocation constraints says that server-www must be run with DRBD master. But there are two masters in your cluster, it can not run it. Try it again by deleting max-master=2, the default is 1.<br>
<br>Thanks<br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 10:21 AM, <a href="mailto:cudak@sonet.internetdsl.pl">cudak@sonet.internetdsl.pl</a> <span dir="ltr"><<a href="mailto:cudak@sonet.internetdsl.pl">cudak@sonet.internetdsl.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hj lee pisze:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What is serwer-mysql? In the last location constraint, serwer-mysql should be msDRBD I think. Does msDRBD come up master and slave? Or both came up with slave?<br>
<br>
Thanks<br>
<br>
On Wed, Aug 19, 2009 at 1:25 AM, <<a href="mailto:cudak@sonet.internetdsl.pl" target="_blank">cudak@sonet.internetdsl.pl</a> <mailto:<a href="mailto:cudak@sonet.internetdsl.pl" target="_blank">cudak@sonet.internetdsl.pl</a>>> wrote:<br>

<br>
    Hi, i would like to make following configuration: DRBD as master<br>
    on two nodes +OCFS2, additionally after assembling system's files<br>
    i want WWW<br>
    server to start with assigned virtual IP. My configuaration is<br>
    working, but<br>
    unfortunately not properl. It turnes on DRBD, assebles files<br>
    system, but WWW<br>
    server and mysql don't start. crm_mon doesn't show any failed actions.<br>
<br>
    This is my config:<br>
    primitive resDRBD ocf:heartbeat:drbd \<br>
     op monitor role=Master interval=59s timeout=30s \<br>
     op monitor role=Slave interval=60s timeout=30s \<br>
           params drbd_resource="web"<br>
<br>
    primitive resOCFS2 ocf:heartbeat:Filesystem \<br>
           params device="/dev/drbd0" directory="/home/drbd"<br>
    fstype="ocfs2"<br>
    ms msDRBD resDRBD \<br>
           meta clone-max="2" master-max="2" notify="true"<br>
<br>
    clone cloneOCFS2 resOCFS2 \<br>
           meta interleave="true" ordered="true"<br>
<br>
    primitive lighttpd lsb:lighttpd<br>
<br>
    primitive virtual-ip ocf:heartbeat:IPaddr2 \<br>
    params ip="192.168.15.100" broadcast="255.255.255.0" nic="eth0"<br>
    cidr_netmask="24" \<br>
    op monitor interval=21s timeout=5s<br>
<br>
    group server-www virtual-ip lighttpd<br>
<br>
    order msDRBD-before-cloneOCFS2 inf: msDRBD:promote cloneOCFS2:start<br>
<br>
    order cloneOCFS2-before-server-www inf: cloneOCFS2:promote<br>
    server-www:start<br>
<br>
<br>
    colocation sever-www-on-msDRBD inf: server-www msDRBD:Master<br>
<br>
    location ms-drbd1-master-on-node2 serwer-mysql \<br>
    rule id="ms-drbd1-master-on-node2-rule" role="master" 100: #uname<br>
    eq node2<br>
<br>
<br>
    Log doesn't show anything about it.<br>
<br>
<br>
<br>
    _______________________________________________<br>
    Pacemaker mailing list<br>
    <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a> <mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a>><br>
    <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
<br>
<br>
<br>
-- <br>
Dream with longterm vision!<br>
kerdosa<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
  <br>
</blockquote>
It's my mistake. There should be server-www. With this configuration msDRBD come up master on both nodes always, but if I will not start them in the same time the filesystem on the node that start later will not be mount (but drbd will be master on both nodes).<br>

<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Dream with longterm vision!<br>kerdosa<br>