Hello, I would like to know to which extent ZFS is supported as filesystem for podmain containers. In particular, I'd like to know if it is possible to use ZFS clones as a backend for the container filesystem layering and if zfs datasets are usable for rootless containers (using zfs delegation). Is ZFS integration done transparently, i.e. are zfs dataset clones created when a new layer is created in a transparent way without explicit zfs commands? Thank you Best regards, Ingvar Bogdahn
On Wed, Apr 15, 2020 at 9:04 AM <Ingvar.Bogdahn@itzbund.de> wrote:
Hello,
I would like to know to which extent ZFS is supported as filesystem for podmain containers.
In particular, I'd like to know if it is possible to use ZFS clones as a backend for the container filesystem layering and if zfs datasets are usable for rootless containers (using zfs delegation). Is ZFS integration done transparently, i.e. are zfs dataset clones created when a new layer is created in a transparent way without explicit zfs commands?
The ZFS driver in Podman works the same way it does in Moby/Docker. The code for it is in containers/storage, specifically here: https://github.com/containers/storage/tree/master/drivers/zfs Feel free to develop improvements there. :) -- 真実はいつも一つ!/ Always, there's only one truth!
On 4/15/20 08:35, Ingvar.Bogdahn@itzbund.de wrote:
Hello,
I would like to know to which extent ZFS is supported as filesystem for podmain containers.
In particular, I'd like to know if it is possible to use ZFS clones as a backend for the container filesystem layering and if zfs datasets are usable for rootless containers (using zfs delegation). Is ZFS integration done transparently, i.e. are zfs dataset clones created when a new layer is created in a transparent way without explicit zfs commands?
Thank you
Best regards, Ingvar Bogdahn
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
While we have support for this in container/storage, I have no idea how many people use it. Most people use simple Overlayfs which I believe will work on top of zfs. I am also not sure if ZFS will work as a backend in rootless mode. We use fuse-overlay to make this possible, so if you are attempting to run rootless, this might also be a concern. The Linux kernel currently only allows not root users inside of a user namespace to mount certain types of file systems. procfs, tmpfs, bind, sysfs, and fuse (I believe this is the currently limit). So if zfs cloning requires a mount it will probably not work.
Hi there, This would also interest me. Although ZfsOnLinux has done significant steps to make it possible, it doesn't seem to work fine yet. I wanted to use it to delegate backups to users who own a particular Zpool (using sanoid), but ended by customizing sudo commands and using znapzend as a backup daemon. I also think that overlays is the right way to go. Kind regards, Le mer. 15 avr. 2020 à 15:54, Daniel Walsh <dwalsh@redhat.com> a écrit :
Hello,
I would like to know to which extent ZFS is supported as filesystem for
On 4/15/20 08:35, Ingvar.Bogdahn@itzbund.de wrote: podmain containers.
In particular, I'd like to know if it is possible to use ZFS clones as a
backend for the container filesystem layering and if zfs datasets are usable for rootless containers (using zfs delegation). Is ZFS integration done transparently, i.e. are zfs dataset clones created when a new layer is created in a transparent way without explicit zfs commands?
Thank you
Best regards, Ingvar Bogdahn
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
While we have support for this in container/storage, I have no idea how many people use it. Most people use simple Overlayfs which I believe will work on top of zfs.
I am also not sure if ZFS will work as a backend in rootless mode. We use fuse-overlay to make this possible, so if you are attempting to run rootless, this might also be a concern.
The Linux kernel currently only allows not root users inside of a user namespace to mount certain types of file systems.
procfs, tmpfs, bind, sysfs, and fuse (I believe this is the currently limit).
So if zfs cloning requires a mount it will probably not work. _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
Hi all, hi Daniel, Thank you for your answer(s). I'll try to sort out the state oft he current implementation. I did have a look at the zfs driver code, but I am currently not capable of programming in Go, so I did not really understand and unfortunately, I also don't have the time to do any development. Thanks, Ingvar -----Ursprüngliche Nachricht----- Von: Daniel Walsh <dwalsh@redhat.com> Gesendet: Mittwoch, 15. April 2020 15:52 An: podman@lists.podman.io Betreff: [EXTERN] [Podman] Re: ZFS Support On 4/15/20 08:35, Ingvar.Bogdahn@itzbund.de wrote:
Hello,
I would like to know to which extent ZFS is supported as filesystem for podmain containers.
In particular, I'd like to know if it is possible to use ZFS clones as a backend for the container filesystem layering and if zfs datasets are usable for rootless containers (using zfs delegation). Is ZFS integration done transparently, i.e. are zfs dataset clones created when a new layer is created in a transparent way without explicit zfs commands?
Thank you
Best regards, Ingvar Bogdahn
_______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
While we have support for this in container/storage, I have no idea how many people use it. Most people use simple Overlayfs which I believe will work on top of zfs. I am also not sure if ZFS will work as a backend in rootless mode. We use fuse-overlay to make this possible, so if you are attempting to run rootless, this might also be a concern. The Linux kernel currently only allows not root users inside of a user namespace to mount certain types of file systems. procfs, tmpfs, bind, sysfs, and fuse (I believe this is the currently limit). So if zfs cloning requires a mount it will probably not work. _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
participants (4)
-
Daniel Walsh -
Ingvar.Bogdahn@itzbund.de -
Neal Gompa -
Rémy Dernat