Hi,<br><br>I think the drbd RA can not have two masters! So master-max should be one.<br><br>Thanks<br>hj<br><br><div class="gmail_quote">On Fri, Jul 17, 2009 at 12:49 PM, Michael Schwartzkopff <span dir="ltr"><<a href="mailto:misch@multinet.de">misch@multinet.de</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;">Hi,<br>
<br>
I configured a multistate DRBD (dual master) and OCFS2 on my cluster. I want to<br>
mount the filesystem where DRBD is master. The following config seems to do the<br>
trick:<br>
<br>
primitive resDRBD ocf:linbit:drbd \<br>
operations $id="resDRBD-operations" \<br>
op monitor interval="20" role="Slave" timeout="20" \<br>
op monitor interval="10" role="Master" timeout="20" \<br>
params drbd_resource="r0" \<br>
meta $id="resDRBD-meta_attributes"<br>
primitive resOCFS2 ocf:heartbeat:Filesystem \<br>
operations $id="resOCFS2-operations" \<br>
op monitor interval="20" timeout="40" start-delay="10" \<br>
params device="/dev/drbd0" directory="/mnt" fstype="ocfs2"<br>
ms msDRBD resDRBD \<br>
meta clone-max="2" master-max="2" notify="true" master-node-max="1" clone-<br>
node-max="1"<br>
clone cloneOCFS2 resOCFS2 \<br>
meta interleave="true"<br>
colocation col2OCFSDRBD inf: cloneOCFS2:Started msDRBD:Master<br>
order ordOCFSDRBD inf: msDRBD:promote cloneOCFS2:start<br>
<br>
when I stop one node, everything is OK. When I put that node online again I<br>
see the following behaviour:<br>
1) Make the DRBD in the new-online node slave -> OK.<br>
2) Promote the DRBD in the new-online node -> OK.<br>
3) STOP both Filesystem resources. NOT OK!<br>
4) Start both Filesystem resources.<br>
<br>
Please can anybody explain, where my error is? Why do both filesystems restart<br>
after the promotion of the DRBD?<br>
<br>
Here are the "LogAction" parts of the log:<br>
Jul 17 22:30:34 debian2 pengine: [2103]: notice: LogActions: Start<br>
resDRBD:0#011(debian2)<br>
Jul 17 22:30:34 debian2 pengine: [2103]: notice: LogActions: Leave resource<br>
resDRBD:1#011(Master debian)<br>
Jul 17 22:30:34 debian2 pengine: [2103]: notice: LogActions: Leave resource<br>
resOCFS2:0#011(Stopped)<br>
Jul 17 22:30:34 debian2 pengine: [2103]: notice: LogActions: Leave resource<br>
resOCFS2:1#011(Started debian)<br>
Jul 17 22:30:38 debian2 pengine: [2103]: notice: LogActions: Promote<br>
resDRBD:0#011(Slave -> Master debian2)<br>
Jul 17 22:30:38 debian2 pengine: [2103]: notice: LogActions: Leave resource<br>
resDRBD:1#011(Master debian)<br>
Jul 17 22:30:38 debian2 pengine: [2103]: notice: LogActions: Start<br>
resOCFS2:0#011(debian)<br>
Jul 17 22:30:38 debian2 pengine: [2103]: notice: LogActions: Move resource<br>
resOCFS2:1#011(Started debian -> debian2)<br>
Jul 17 22:30:45 debian2 pengine: [2103]: notice: LogActions: Leave resource<br>
resDRBD:0#011(Master debian2)<br>
Jul 17 22:30:45 debian2 pengine: [2103]: notice: LogActions: Leave resource<br>
resDRBD:1#011(Master debian)<br>
Jul 17 22:30:45 debian2 pengine: [2103]: notice: LogActions: Start<br>
resOCFS2:0#011(debian2)<br>
Jul 17 22:30:45 debian2 pengine: [2103]: notice: LogActions: Start<br>
resOCFS2:1#011(debian)<br>
<br>
<br>
Why does the cluster migrate the resource resOCFS2:1 from node debian to<br>
debian2 at 22:30:38?<br>
<br>
--<br>
Dr. Michael Schwartzkopff<br>
MultiNET Services GmbH<br>
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany<br>
Tel: +49 - 89 - 45 69 11 0<br>
Fax: +49 - 89 - 45 69 11 21<br>
mob: +49 - 174 - 343 28 75<br>
<br>
mail: <a href="mailto:misch@multinet.de">misch@multinet.de</a><br>
web: <a href="http://www.multinet.de" target="_blank">www.multinet.de</a><br>
<br>
Sitz der Gesellschaft: 85630 Grasbrunn<br>
Registergericht: Amtsgericht München HRB 114375<br>
Geschäftsführer: Günter Jurgeneit, Hubert Martens<br>
<br>
---<br>
<br>
PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B<br>
Skype: misch42<br>
<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org">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>