<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 16, 2016 at 6:08 PM, Dani Camps <span dir="ltr"><<a href="mailto:danicamps81@gmail.com" target="_blank">danicamps81@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I have a virtual mesh setup where each node is represented with a net<br>
namespace (ip netns), and the virtual mesh topology is established<br>
using veth pairs that connect namespaces with each other.<br>
<br>
My intention was to run olsrd2 inside each namespace. I run olsrd2 in<br>
the first namespace doing:<br>
<br>
./olsrd2_static veth_1 veth_2 lo<br>
<br>
But when I try the same in the different namespace, which exposes<br>
other network interfaces, I get:<br>
<br>
16:33:36.215 WARN(main) src-api/core/oonf_main.c 248: Could not<br>
acquire application lock '/var/run/OLSRd2.lock'<br>
<br>
Does anyone know how to run olsrd from different namespaces? Maybe I<br>
need to launch each instance with a different pid. If you have an<br>
example configuration to do this it would be helpful for me.<br><br></blockquote><div>Olsrd2 uses a "lock file" to prevent people running two routing agents in the same context (which can be quite a mess). You could either move the /var/run directory into a namespace specific overlay/filesystem, or you could use the parameter "global.lockfile" to set your own lockfile (or disable it completely).</div><div><br></div><div>examples:</div><div><br></div><div>set a new lock file:</div><div>olsrd2_static --set global.lockfile=/var/run/olsrd_1.lock ...</div><div><br></div><div>or disable it</div><div>olsrd2_static --set global.lockfile=- ...<br></div></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">use "olsrd2_static --schema", "olsrd2_static --schema=global" and "olsrd2_static --schema=global.lockfile" to learn about the parameters of olsrd2.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Henning</div></div>