[lxc-users] DRBD in LXC container?
Jeremiah Snapp
jeremiah.snapp at gmail.com
Fri Jan 17 14:43:05 UTC 2014
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 at 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 at 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 <jeremiah.snapp at gmail.com>wrote:
> Thanks Ranjib!
>
>
> On Thu, Jan 16, 2014 at 4:11 PM, Ranjib Dey <dey.ranjib at gmail.com> 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 <
>> jeremiah.snapp at gmail.com> wrote:
>>
>>> Can DRBD be used inside an LXC container?
>>>
>>> I'm getting the following error.
>>>
>>> root at 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
>>> lxc-users at lists.linuxcontainers.org
>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>
>>
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140117/5d985f65/attachment.html>
More information about the lxc-users
mailing list