<br><br><div class="gmail_quote">On 9 September 2010 08:50, Raoul Bhatia [IPAX] <span dir="ltr"><<a href="mailto:r.bhatia@ipax.at">r.bhatia@ipax.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 08.09.2010 23:52, Pavlos Parissis wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
My initial situation was as follows, node-01 primary for<br>
drbd_pbx_service_1 resource and node-02 primary for drbd_pbx_service_2<br>
resource.<br>
I tried to get the node-03 as primary for both resources but I got the<br>
error message " Multiple primaries not allowed by config"<br>
here is the steps which I followed<br>
</blockquote>
<br></div>
you have to demote the current primary to secondary before you promote<br>
another node from secondary to primary.</blockquote><div><br>You are right, I ended up in this situation before I didn't follow the correct order. Following the correct order gave me the result I wanted. <br>[root@node-01 ~]# drbd-overview<br>
1:drbd_pbx_service_1 Connected Primary/Secondary UpToDate/UpToDate C r----<br>[root@node-01 ~]# drbdadm secondary drbd_pbx_service_1<br><br>[root@node-02 ~]# drbd-overview<br> 2:drbd_pbx_service_2 Connected Primary/Secondary UpToDate/U pToDate C r----<br>
[root@node-02 ~]# drbdadm secondary drbd_pbx_service_2<br>[root@node-02 ~]# drbd-overview<br> 2:drbd_pbx_service_2 Connected Secondary/Secondary UpToDate <br><br>[root@node-03 ~]# drbd-overview<br> 1:drbd_pbx_service_1 Connected Secondary/Primary UpToDate/UpToDate C r----<br>
2:drbd_pbx_service_2 Connected Secondary/Secondary UpToDate/UpToDate C r----<br>[root@node-03 ~]# drbdadm primary drbd_pbx_service_2<br>[root@node-03 ~]# drbd-overview<br> 1:drbd_pbx_service_1 Connected Secondary/Primary UpToDate/UpToDate C r----<br>
2:drbd_pbx_service_2 Connected Primary/Secondary UpToDate/UpToDate C r----<br>[root@node-03 ~]# drbdadm primary drbd_pbx_service_1<br>[root@node-03 ~]# drbd-overview<br> 1:drbd_pbx_service_1 Connected Primary/Secondary UpToDate/UpToDate C r----<br>
2:drbd_pbx_service_2 Connected Primary/Secondary UpToDate/UpToDate C r----<br><br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I read the manual for allow-two-primary settings and basically states<br>
that I can't do what I want, since I use ext3 fs on drbd devices.<br>
But, I don't quite understand why, since these 2 resources are running<br>
on different disks and over different connections. I don't understand<br>
how the FS on them will get corrupted.<br>
</blockquote>
<br></div>
that is true. but in your case, the solution is as stated above.<br>
<br>
cheers,<br><font color="#888888">
raoul<br></font></blockquote><div>So, in single-primary mode and using ext3 fs type, a node can have the role of primary for 2 resources without any problems.<br><br>Thanks,<br>Pavlos<br><br></div></div>