linbit / drbdmanage-docker-volume Goto Github PK
View Code? Open in Web Editor NEWDocker volume plugin to manage DRBD SDS volumes through docker
License: Apache License 2.0
Docker volume plugin to manage DRBD SDS volumes through docker
License: Apache License 2.0
I tried to use the docker volume plugin but the needed device /dev/drbd isn't created.
# docker volume create --driver drbdmanage --name=drdbvolume1 --opt fs=xfs --opt size=20
Error response from daemon: create drdbvolume1: Could not create volume drdbvolume1
# docker volume ls | grep drdbvolume1
drbdmanage drdbvolume1
# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name | Vol ID | Size | Minor | | State |
|------------------------------------------------------------------------------------------------------------|
| drdbvolume1 | 0 | 20 MiB | 101 | | ok |
+------------------------------------------------------------------------------------------------------------+
Now there should be a /dev/drbd101 but it's missing!
# ls -lh /dev/drbd[0-9]*
brw-rw---- 1 root disk 147, 0 Oct 18 09:42 /dev/drbd0
brw-rw---- 1 root disk 147, 1 Oct 18 09:42 /dev/drbd1
It works fine if I create it with drbdmanage instead of the drbdmanage-docker-volume plugin.
drbdmanage add-resource web
drbdmanage add-volume web 200MB
drbdmanage deploy-resource web 1
# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name | Vol ID | Size | Minor | | State |
|------------------------------------------------------------------------------------------------------------|
| web | 0 | 190.74 MiB | 100 | | ok |
+------------------------------------------------------------------------------------------------------------+
Device was created as should.
# ls -lh /dev/drbd100
brw-rw---- 1 root disk 147, 100 Oct 17 15:33 /dev/drbd100
It looks like the docker volume create process doesn't fit the needed drdbmanage commands?
Hi,
File drbd manage-docker-volume.8.gz
don't exist and return an error with:
running install
running build
running install_data
copying systemd/docker-drbdmanage-plugin.service -> /lib/systemd/system/
copying systemd/docker-drbdmanage-plugin.socket -> /lib/systemd/system/
creating /usr/libexec
creating /usr/libexec/docker
copying drbdmanage-docker-volume -> /usr/libexec/docker/
error: can't copy 'drbdmanage-docker-volume.8.gz': doesn't exist or not a regular file
Please read setup.py
file, fix with add file or remove line 61.
Regards
Looks like drbdmanage-docker-volume.8.gz
is missing.
# pip install git+https://github.com/LINBIT/drbdmanage-docker-volume.git
Collecting git+https://github.com/LINBIT/drbdmanage-docker-volume.git
Cloning https://github.com/LINBIT/drbdmanage-docker-volume.git to /tmp/pip-_4adw4cy-build
Installing collected packages: drbdmanage-docker-volume
Running setup.py install for drbdmanage-docker-volume ... error
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-_4adw4cy-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-549uqra4-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running install_data
copying systemd/docker-drbdmanage-plugin.service -> /lib/systemd/system/
copying systemd/docker-drbdmanage-plugin.socket -> /lib/systemd/system/
creating /usr/libexec
creating /usr/libexec/docker
copying drbdmanage-docker-volume -> /usr/libexec/docker/
error: can't copy 'drbdmanage-docker-volume.8.gz': doesn't exist or not a regular file
----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-_4adw4cy-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-549uqra4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-_4adw4cy-build/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.