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.

47 lines
2.7 KiB

  1. # Tips and Notes
  2. * The documentation is explicit, literal, and reasonably thorough. If
  3. a suspected feature is not mentioned it does not exist. Do not read
  4. into the wording. What is described is how it functions. If you feel
  5. like something is not explained sufficiently please [file a
  6. ticket.](https://github.com/trapexit/mergerfs/issues)
  7. * If a `libfuse` argument is not listed it probably shouldn't be used
  8. and are unsupported.
  9. * Ensure you're using the latest version. Especially before submitting
  10. bug reports.
  11. * Run mergerfs as `root`. mergerfs is designed and intended to be run
  12. as `root` and may exhibit incorrect behavior if run otherwise.
  13. * If you do not see some directories and files you expect, policies
  14. seem to skip branches, you get strange permission errors, etc. be
  15. sure the underlying filesystems' permissions are all the same. Use
  16. `mergerfs.fsck` to audit the filesystem for out of sync permissions.
  17. * If you still have permission issues be sure you are using POSIX ACL
  18. compliant filesystems. mergerfs doesn't generally make exceptions
  19. for FAT, NTFS, or other non-POSIX filesystem.
  20. * Unless using Linux v6.6 or above do **not** use `cache.files=off` if
  21. you expect applications (such as rtorrent) to use
  22. [mmap](http://linux.die.net/man/2/mmap). Enabling `dropcacheonclose`
  23. is recommended when `cache.files=auto-full`.
  24. * [Kodi](http://kodi.tv), [Plex](http://plex.tv),
  25. [Subsonic](http://subsonic.org), etc. can use directory
  26. [mtime](http://linux.die.net/man/2/stat) to more efficiently
  27. determine whether to scan for new content rather than simply
  28. performing a full scan. If using the default `getattr` policy of
  29. `ff` it's possible those programs will miss an update on account of
  30. it returning the first directory found's `stat` info and it is a
  31. later directory on another mount which had the `mtime` recently
  32. updated. To fix this you will want to set
  33. `func.getattr=newest`. Remember though that this is just `stat`. If
  34. the file is later `open`'ed or `unlink`'ed and the policy is
  35. different for those then a completely different file or directory
  36. could be acted on.
  37. * Some policies mixed with some functions may result in strange
  38. behaviors. Not that some of these behaviors and race conditions
  39. couldn't happen outside mergerfs but that they are far more
  40. likely to occur on account of the attempt to merge multiple sources
  41. of data which could be out of sync due to the different policies.
  42. * For consistency it's generally best to set `category` wide policies
  43. rather than individual `func`'s. This will help limit the
  44. confusion of tools such as
  45. [rsync](http://linux.die.net/man/1/rsync). However, the flexibility
  46. is there if needed.