containers / docker-lvm-plugin

Docker volume plugin for LVM volumes
GNU Lesser General Public License v3.0
155 stars 64 forks source link

Could you try this plugin out with Podman #98

Open rhatdan opened 3 years ago

rhatdan commented 3 years ago

Podman now has volume support, interested whether this works with podman 3.0 or not.

rhatdan commented 3 years ago

I don't have access to systems with extra LVM space to try this out.

shishir-a412ed commented 3 years ago

I don't have access to systems with extra LVM space to try this out.

Hi @rhatdan!

I have added a Vagrantfile for you in #99. Once we merge this PR.

You can run:

  1. vagrant up from the $root of the project (This process should take around ~2 minutes)

This will start a fedora33 VM with everything (docker, docker-lvm-plugin, a pseudo loopback device, pv, volume group, thinpool) installed/running.

  1. You can just ssh into the VM using vagrant ssh docker-lvm-plugin-fedora33.

  2. Once in, you can remove docker and install podman and try it out.

  3. vagrant destroy will completely destroy the VM for you.

shishir-a412ed commented 3 years ago

@rhatdan Just tried this on the vagrant VM.

[root@fedora33 docker-lvm-plugin]# podman volume create --driver lvm --opt size=0.2G --opt vg=vg1 foobar
Error: error running volume create option: unrecognized volume option "size" is not supported with local driver: invalid argument

Looks like this is not supported today. Will try to debug, what's needed in the codebase.

rhatdan commented 3 years ago

rpm -q podman?

rhatdan commented 3 years ago

@mheon FYI

mheon commented 3 years ago

I believe this one will be fixed in 3.1.0