<p dir="ltr"><br>
On 03/06/2014 7:50 AM, "Lars Ellenberg" <<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>> wrote:<br>
><br>
> On Mon, Jun 02, 2014 at 11:07:56AM +1000, Igor Cicimov wrote:<br>
> > On 02/06/2014 6:14 AM, "Lars Ellenberg" <<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>> wrote:<br>
> > ><br>
> > > On Sat, May 31, 2014 at 10:48:09PM +1000, Igor Cicimov wrote:<br>
> > > > Hi all,<br>
> > > ><br>
> > > > I've been searching for a solution about this but couldn't find anything<br>
> > > > but couple of threads ending without any outcome.<br>
> > > ><br>
> > > > I have drbd-8.4.4 installed in Ubuntu-12.04 container running on<br>
> > > > Ubuntu-12.04 host. I can only create the metadata and then the try to<br>
> > bring<br>
> > > > the resource up fails with the following message:<br>
> > > ><br>
> > > > root@lxc01:~# drbdadm up r0<br>
> > > > Could not connect to 'drbd' generic netlink family<br>
> > > ><br>
> > > > The kernel module loads fine and /proc/drbd directory exists. For sure<br>
> > this<br>
> > > > is not related to apparmor since I get the same issue with the service<br>
> > > > stopped on the host and rules teardown.<br>
> > > ><br>
> > > > Has there been any solution for this or DRBD can't run inside linux<br>
> > > > container at all?<br>
> > ><br>
> > > Possibly could be made to work.<br>
> > > Or not.<br>
> > > I don't know.<br>
> > ><br>
> > > There is a lot of things that would need to be abstracted<br>
> > > into per container namespaces. I'm not even sure if all<br>
> > > the infrastructure to abstract device numbers is there yet,<br>
> > > even in recent kernels.<br>
> > ><br>
> > > *IF* it can be made to work,<br>
> > > properly isolating different containers against each other would<br>
> > > require ... let's say "code changes" ... in the module<br>
> > > (there is only one kernel, so just one instance of this kernel module,<br>
> > > there are many containers,<br>
> > > it would likely need to become "container aware" on various levels).<br>
> > ><br>
> > > Appart from that: I don't see the use case.<br>
> > > Having DRBD on the host, outside the containers,<br>
> > > and replicate the containers state and content<br>
> > > is a known working use case.<br>
> > ><br>
> > > But what for would you want DRBD *inside* the container?<br>
> > ><br>
> ><br>
> > Why not? Its working inside vm's why not inside containers too? They are<br>
> > becoming more popular as light virtualization solution so for sure this<br>
> > will become necessity down the road. Are you saying this should not be<br>
> > available on user level in case lets say someone wants to try a cluster of<br>
> > two containers with drbd replicated device?<br>
><br>
> Each VM has its own "kernel", its own "drbd" module.<br>
> => works.<br>
> But even there, usually you put the VM image on top of DRBD,<br>
> not some DRBD inside the VM (even though that is possible).<br>
><br>
> Container: does not work.<br>
> Possibly could be made to work.<br>
> Probably would not only require changes in DRBD module code,<br>
> but in generic kernel as well. I don't know.<br>
> I do not see that happening anytime soon.<br>
><br>
> Maybe find someone who knows,<br>
> and get them to explain to me<br>
> what would be necessary to do in DRBD<br>
> to make it play nice from within containers...<br>
><br>
> But I really don't see why.<br>
><br>
> If you create a container,<br>
> you tell it what "storage" to use.<br>
> Put that on top of DRBD.<br>
> Done.<br>
><br>
Thanks Lars, sounds like a lots of work. The only difference is that the control over drbd is outside the container it self making the drbd invisible for the inside users. But it is what it is so we have to skip drbd from the cluster stack on container level.<br>
><br>
> --<br>
> : Lars Ellenberg<br>
> : LINBIT | Your Way to High Availability<br>
> : DRBD/HA support and consulting <a href="http://www.linbit.com">http://www.linbit.com</a><br>
> _______________________________________________<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">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</p>