You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  1. # Compatibility and Integration
  2. ## Can I use mergerfs without SnapRAID? SnapRAID without mergerfs?
  3. Yes. They are completely unrelated pieces of software that just happen
  4. to work well together.
  5. ## Does mergerfs support CoW / copy-on-write / writes to read-only filesystems?
  6. Not in the sense of a filesystem like BTRFS or ZFS nor in the
  7. overlayfs or aufs sense. It does offer a
  8. [cow-shell](http://manpages.ubuntu.com/manpages/bionic/man1/cow-shell.1.html)
  9. like hard link breaking (copy to temp file then rename over original)
  10. which can be useful when wanting to save space by hardlinking
  11. duplicate files but wish to treat each name as if it were a unique and
  12. separate file.
  13. If you want to write to a read-only filesystem you should look at
  14. overlayfs. You can always include the overlayfs mount into a mergerfs
  15. pool.
  16. ## Can mergerfs run via Docker, Podman, Kubernetes, etc.
  17. Yes. With Docker you'll need to include `--cap-add=SYS_ADMIN
  18. --device=/dev/fuse --security-opt=apparmor:unconfined` or similar with
  19. other container runtimes. You should also be running it as root or
  20. given sufficient caps to change user and group identity as well as
  21. have root like filesystem permissions.
  22. Keep in mind that you **MUST** consider identity when using
  23. containers. For example: supplemental groups will be picked up from
  24. the container unless you properly manage users and groups by sharing
  25. relevant /etc files or by using some other means to share identity
  26. across containers. Similarly, if you use "rootless" containers and user
  27. namespaces to do uid/gid translations you **MUST** consider that while
  28. managing shared files.
  29. Also, as mentioned by [hotio](https://hotio.dev/containers/mergerfs),
  30. with Docker you should probably be mounting with `bind-propagation`
  31. set to `slave`.