<div dir="ltr">You may need to modify the apparmor profiles as well; this is what I had to do to get NFS going inside containers for example. You can check the system logs to see if apparmor is the denying you access.<div class="gmail_extra">
<div><div dir="ltr"><div style="background-color:rgb(255,255,255)"><br></div><div style="background-color:rgb(255,255,255)">-Z</div></div></div><br><div class="gmail_quote">On Fri, Jan 17, 2014 at 6:43 AM, Jeremiah Snapp <span dir="ltr"><<a href="mailto:jeremiah.snapp@gmail.com" target="_blank">jeremiah.snapp@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, installing and enabling the DRBD modules in the host at least got /proc/drbd available in the container.<div>
<br></div><div>And I can run the following successfully.</div><div><br></div><div><div>root@be2:~# drbdadm create-md pc0</div>
<div>Writing meta data...</div><div>initializing activity log</div><div>NOT initializing bitmap</div><div>New drbd meta data block successfully created.</div></div><div><br></div><div><br></div><div>But, when I try to bring up the resource it fails.</div>
<div><br></div><div><div>root@be2:~# drbdadm up pc0</div><div>Could not connect to 'drbd' generic netlink family</div><div>Command 'drbdsetup new-resource pc0' terminated with exit code 20</div><div>drbdadm: new-minor pc0: skipped due to earlier error</div>
</div><div><br></div><div>I don't understand what the netlink is or how to get connected to it. Can anyone help please?</div><div><br></div><div>Thanks,</div><div>Jeremiah</div><div><br></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jan 16, 2014 at 4:15 PM, Jeremiah Snapp <span dir="ltr"><<a href="mailto:jeremiah.snapp@gmail.com" target="_blank">jeremiah.snapp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thanks Ranjib!</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 16, 2014 at 4:11 PM, Ranjib Dey <span dir="ltr"><<a href="mailto:dey.ranjib@gmail.com" target="_blank">dey.ranjib@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">since containers use the same kernel as host, you have to load those kernel modules on the host. else spawn the container with elevated privileges (not recommended)</div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>
On Thu, Jan 16, 2014 at 12:31 PM, Jeremiah Snapp <span dir="ltr"><<a href="mailto:jeremiah.snapp@gmail.com" target="_blank">jeremiah.snapp@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
<div dir="ltr">Can DRBD be used inside an LXC container?<div><br></div><div>I'm getting the following error.</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
root@be1:~# drbdadm up pc0<br>Could not stat("/proc/drbd"): No such file or directory<br>do you need to load the module?<br>try: modprobe drbd<br>Command 'drbdsetup 0 disk /dev/opscode/drbd /dev/opscode/drbd internal --set-defaults --create-device --on-io-error=detach' terminated with exit code 20<br>
drbdadm attach pc0: exited with code 20</blockquote><div><br></div><div>Thanks,</div><div>Jeremiah </div></div></div>
<br></div></div>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>