Hi,<br><br>I am having 3 nodes and 2 resources and I want to have the third node as the secondary for both resources.<br>Here is the /etc/drbd.conf, which is common on all nodes<br>#<br># please have a a look at the example configuration file in<br>
# /usr/share/doc/drbd83/drbd.conf<br>#<br><br>global {<br> usage-count yes;<br>}<br>common {<br> protocol C;<br>}<br>resource drbd_pbx_service_1 {<br> on node-01 {<br> device /dev/drbd1;<br> disk /dev/sdb1;<br>
address <a href="http://10.10.10.129:7789">10.10.10.129:7789</a>;<br> meta-disk internal;<br> }<br> on node-03 {<br> device /dev/drbd1;<br> disk /dev/sdb1;<br> address <a href="http://10.10.10.131:7789">10.10.10.131:7789</a>;<br>
meta-disk internal;<br> }<br>}<br><br>resource drbd_pbx_service_2 {<br> on node-02 {<br> device /dev/drbd2;<br> disk /dev/sdb1;<br> address <a href="http://10.10.10.130:7790">10.10.10.130:7790</a>;<br>
meta-disk internal;<br> }<br> on node-03 {<br> device /dev/drbd2;<br> disk /dev/sdc1;<br> address <a href="http://10.10.10.131:7790">10.10.10.131:7790</a>;<br> meta-disk internal;<br> }<br>}<br>
<br>My initial situation was as follows, node-01 primary for drbd_pbx_service_1 resource and node-02 primary for drbd_pbx_service_2 resource.<br>I tried to get the node-03 as primary for both resources but I got the error message " Multiple primaries not allowed by config"<br>
here is the steps which I followed<br><br>[root@node-01 ~]# drbd-overview<br> 1:drbd_pbx_service_1 Connected Primary/Secondary UpToDate/UpToDate C r----<br><br><br>[root@node-03 etc]# drbd-overview<br> 1:drbd_pbx_service_1 Connected Secondary/Secondary UpToDate/UpToDate C r----<br>
2:drbd_pbx_service_2 Connected Secondary/Primary UpToDate/UpToDate C r----<br><br>[root@node-03 etc]# drbdadm primary drbd_pbx_service_1<br><br>[root@node-03 etc]# drbd-overview<br> 1:drbd_pbx_service_1 Connected Primary/Secondary UpToDate/UpToDate C r----<br>
2:drbd_pbx_service_2 Connected Secondary/Primary UpToDate/UpToDate C r----<br><br>[root@node-03 etc]# drbdadm primary drbd_pbx_service_2<br>2: State change failed: (-1) Multiple primaries not allowed by config<br>Command 'drbdsetup 2 primary' terminated with exit code 11<br>
<br>I read the manual for allow-two-primary settings and basically states 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 on different disks and over different connections. I don't understand how the FS on them will get corrupted.<br>
<br>I am in the process of evaluation a 3 node cluster (Redhat or heartbeat/pacemaker not decide yet) which will have 2 resources and these 2 resources will use different active nodes but the same standby node. So, I want to see if I can use DRBD as my storage solution since I can't utilize a shared storage.<br>
<br>Thanks,<br>Pavlos Parissis<br><br><br>