Well, installing and enabling the DRBD modules in the host at least got /proc/drbd available in the container.
And I can run the following successfully. root@be2:~# drbdadm create-md pc0 Writing meta data... initializing activity log NOT initializing bitmap New drbd meta data block successfully created. But, when I try to bring up the resource it fails. root@be2:~# drbdadm up pc0 Could not connect to 'drbd' generic netlink family Command 'drbdsetup new-resource pc0' terminated with exit code 20 drbdadm: new-minor pc0: skipped due to earlier error I don't understand what the netlink is or how to get connected to it. Can anyone help please? Thanks, Jeremiah On Thu, Jan 16, 2014 at 4:15 PM, Jeremiah Snapp <[email protected]>wrote: > Thanks Ranjib! > > > On Thu, Jan 16, 2014 at 4:11 PM, Ranjib Dey <[email protected]> wrote: > >> 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) >> >> >> On Thu, Jan 16, 2014 at 12:31 PM, Jeremiah Snapp < >> [email protected]> wrote: >> >>> Can DRBD be used inside an LXC container? >>> >>> I'm getting the following error. >>> >>> root@be1:~# drbdadm up pc0 >>>> Could not stat("/proc/drbd"): No such file or directory >>>> do you need to load the module? >>>> try: modprobe drbd >>>> Command 'drbdsetup 0 disk /dev/opscode/drbd /dev/opscode/drbd internal >>>> --set-defaults --create-device --on-io-error=detach' terminated with exit >>>> code 20 >>>> drbdadm attach pc0: exited with code 20 >>> >>> >>> Thanks, >>> Jeremiah >>> >>> _______________________________________________ >>> lxc-users mailing list >>> [email protected] >>> http://lists.linuxcontainers.org/listinfo/lxc-users >>> >> >> >> _______________________________________________ >> lxc-users mailing list >> [email protected] >> http://lists.linuxcontainers.org/listinfo/lxc-users >> > >
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
