[Pacemaker] Problem with drbd 2 primary + OCFS2 + server
hj lee
kerdosa at gmail.com
Wed Aug 19 16:54:36 UTC 2009
I found two issues in your configuration.
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.
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.
Thanks
On Wed, Aug 19, 2009 at 10:21 AM, cudak at sonet.internetdsl.pl <
cudak at sonet.internetdsl.pl> wrote:
> hj lee pisze:
>
>> 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?
>>
>> Thanks
>>
>> On Wed, Aug 19, 2009 at 1:25 AM, <cudak at sonet.internetdsl.pl <mailto:
>> cudak at sonet.internetdsl.pl>> wrote:
>>
>> Hi, i would like to make following configuration: DRBD as master
>> on two nodes +OCFS2, additionally after assembling system's files
>> i want WWW
>> server to start with assigned virtual IP. My configuaration is
>> working, but
>> unfortunately not properl. It turnes on DRBD, assebles files
>> system, but WWW
>> server and mysql don't start. crm_mon doesn't show any failed actions.
>>
>> This is my config:
>> primitive resDRBD ocf:heartbeat:drbd \
>> op monitor role=Master interval=59s timeout=30s \
>> op monitor role=Slave interval=60s timeout=30s \
>> params drbd_resource="web"
>>
>> primitive resOCFS2 ocf:heartbeat:Filesystem \
>> params device="/dev/drbd0" directory="/home/drbd"
>> fstype="ocfs2"
>> ms msDRBD resDRBD \
>> meta clone-max="2" master-max="2" notify="true"
>>
>> clone cloneOCFS2 resOCFS2 \
>> meta interleave="true" ordered="true"
>>
>> primitive lighttpd lsb:lighttpd
>>
>> primitive virtual-ip ocf:heartbeat:IPaddr2 \
>> params ip="192.168.15.100" broadcast="255.255.255.0" nic="eth0"
>> cidr_netmask="24" \
>> op monitor interval=21s timeout=5s
>>
>> group server-www virtual-ip lighttpd
>>
>> order msDRBD-before-cloneOCFS2 inf: msDRBD:promote cloneOCFS2:start
>>
>> order cloneOCFS2-before-server-www inf: cloneOCFS2:promote
>> server-www:start
>>
>>
>> colocation sever-www-on-msDRBD inf: server-www msDRBD:Master
>>
>> location ms-drbd1-master-on-node2 serwer-mysql \
>> rule id="ms-drbd1-master-on-node2-rule" role="master" 100: #uname
>> eq node2
>>
>>
>> Log doesn't show anything about it.
>>
>>
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org <mailto:Pacemaker at oss.clusterlabs.org>
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>>
>>
>>
>> --
>> Dream with longterm vision!
>> kerdosa
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>>
> 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).
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
--
Dream with longterm vision!
kerdosa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090819/f007dedc/attachment-0002.htm>
More information about the Pacemaker
mailing list