Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thin by default #97

Open
virtualdxs opened this issue Dec 14, 2020 · 4 comments
Open

Thin by default #97

virtualdxs opened this issue Dec 14, 2020 · 4 comments

Comments

@virtualdxs
Copy link

Would it be possible to make it so that volumes are created as part of a thin pool by default? I was hoping for a thinpool option in /etc/docker/docker-lvm-plugin, but I see no such option.

@shishir-a412ed
Copy link
Collaborator

@virtualdxs How will the user create regular volumes in that case?

@virtualdxs
Copy link
Author

Explicitly specifying the VG would be my suggestion, i.e.:

docker volume create -d lvm -o size=10G --name test_thin # Create a thin volume (assuming configuration specifies a thin pool)
docker volume create -d lvm -o size=10G -o vg=vg0 --name test_thick # Create a thick volume (regardless of configuration)

@virtualdxs
Copy link
Author

Just to clarify: I'm not asking for the out-of-the-box behavior to be "use a thin pool", I'm asking that I be able to configure my instance such that unless I specify otherwise, docker volumes are created as thin LVs.

@shishir-a412ed
Copy link
Collaborator

@virtualdxs Yes, this should be okay. Feel free to open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants