<div dir="ltr">Lars,<div><br></div><div>I have pasted my config below I had to change the hostnames, IPs and password for security.</div><div><br></div><div><div><br></div><div><br></div><div><br></div><div>skip {</div><div> As you can see, you can also comment chunks of text</div><div> with a 'skip[optional nonsense]{ skipped text }' section.</div><div> This comes in handy, if you just want to comment out</div><div> some 'resource <some name> {...}' section:</div><div> just precede it with 'skip'.</div><div><br></div><div> The basic format of option assignment is</div><div> <option name><linear whitespace><value>;</div><div><br></div><div> It should be obvious from the examples below,</div><div> but if you really care to know the details:</div><div><br></div><div> <option name> :=</div><div> valid options in the respective scope</div><div> <value> := <num>|<string>|<choice>|...</div><div> depending on the set of allowed values</div><div> for the respective option.</div><div> <num> := [0-9]+, sometimes with an optional suffix of K,M,G</div><div> <string> := (<name>|\"([^\"\\\n]*|\\.)*\")+</div><div> <name> := [/_.A-Za-z0-9-]+</div><div>}</div><div><br></div><div>global {</div><div><br></div><div><br></div><div><br></div><div> usage-count no;</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>resource r0 {</div><div><br></div><div> protocol C;</div><div><br></div><div> handlers {</div><div> pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";</div><div><br></div><div> pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";</div><div><br></div><div> local-io-error "echo o > /proc/sysrq-trigger ; halt -f";</div><div><br></div><div> outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";</div><div><br></div><div> pri-lost "echo pri-lost. Have a look at the log files. | mail -s 'DRBD Alert' root";</div><div><br></div><div> out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";</div><div><br></div><div> }</div><div><br></div><div> startup {</div><div> wfc-timeout 0;</div><div><br></div><div><br></div><div><br></div><div> }</div><div><br></div><div> disk {</div><div> on-io-error pass_on;</div><div><br></div><div><br></div><div><br></div><div><br></div><div> }</div><div><br></div><div> net {</div><div><br></div><div><br></div><div> max-buffers 2048;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> cram-hmac-alg "sha1";</div><div> shared-secret "ThePasswordForDRBD";</div><div><br></div><div> after-sb-0pri disconnect;</div><div><br></div><div> after-sb-1pri disconnect;</div><div><br></div><div><br></div><div> after-sb-2pri disconnect;</div><div><br></div><div> rr-conflict disconnect;</div><div><br></div><div><br></div><div><br></div><div> }</div><div><br></div><div> syncer {</div><div> rate 62M;</div><div><br></div><div><br></div><div> al-extents 257;</div><div><br></div><div> }</div><div><br></div><div> on <a href="http://server1.sample.com">server1.sample.com</a> {</div><div> device /dev/drbd0;</div><div> disk /dev/sda5;</div><div> address <a href="http://10.1.1.1:7789">10.1.1.1:7789</a>;</div><div> meta-disk internal;</div><div><br></div><div> }</div><div><br></div><div> on <a href="http://server2.sample.com">server2.sample.com</a> {</div><div> device /dev/drbd0;</div><div> disk /dev/sda5;</div><div> address <a href="http://10.1.1.2:7789">10.1.1.2:7789</a>;</div><div> meta-disk internal;</div><div> }</div><div>}</div><div><br></div></div><div><br></div><div>Regards, </div><div>J</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 23, 2017 at 12:41 AM, Lars Ellenberg <span dir="ltr"><<a href="mailto:lars.ellenberg@linbit.com" target="_blank">lars.ellenberg@linbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, May 22, 2017 at 02:04:11PM -0700, Jerome Yanga wrote:<br>
> I had to move my drbd environment to a different network. I changed the IP<br>
> addresses in /etc/drbd.conf and attempted to start the service. I get the<br>
> error below.<br>
><br>
> /etc/drbd.conf:<LINE NUMBER>: conflicting use of IP '<NEW IP ADDRESS>:7789'<br>
> ...<br>
> /etc/drbd.conf:<LINE NUMBER>: IP '<NEW IP ADDRESS>:7789' first used here.<br>
<br>
</span>And,<br>
is there a remote chance that the parser is actually correct about that?<br>
<br>
If so, correct the config. If not, show us the config file(s),<br>
so we have a reproducer and can fix it.<br>
<span class=""><br>
> Here is the version of drbd I am using.<br>
> drbd.x86_64 8.2.7-3 installed<br>
<br>
</span>Not suggesting that this would have anything to do with what you are<br>
seeing, but this is "ancient" (you knew that, of course).<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
: Lars Ellenberg<br>
: LINBIT | Keeping the Digital World Running<br>
: DRBD -- Heartbeat -- Corosync -- Pacemaker<br>
<br>
DRBD® and LINBIT® are registered trademarks of LINBIT<br>
__<br>
please don't Cc me, but send to list -- I'm subscribed<br>
______________________________<wbr>_________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/<wbr>mailman/listinfo/drbd-user</a><br>
</font></span></blockquote></div><br></div>