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.

29 lines
1.3 KiB

  1. # Upgrade
  2. mergerfs can be upgraded live by mounting on top of the previous
  3. instance. Simply install the new version of mergerfs and follow the
  4. instructions below.
  5. Run mergerfs again or if using `/etc/fstab` (or systemd mount file)
  6. call for it to mount again. Existing open files and directories will
  7. continue to work fine though they won't see any differences that the
  8. new version would provide since it is still using the previous
  9. instance. If you plan on changing settings with the new mount you
  10. should / could apply those before mounting the new version.
  11. ```
  12. $ sudo mount /mnt/mergerfs
  13. $ mount | grep mergerfs
  14. media on /mnt/mergerfs type mergerfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other)
  15. media on /mnt/mergerfs type mergerfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other)
  16. ```
  17. A problem with this approach is that the underlying instance will
  18. continue to run even if the software using it stop or are
  19. restarted. To work around this you can use a "lazy umount". Before
  20. mounting over top the mount point with the new instance of mergerfs
  21. issue: `umount -l <mergerfs_mountpoint>`. Or you can let mergerfs do
  22. it by setting the option `lazy-umount-mountpoint=true`.
  23. If the intent is to change settings at runtime then the [runtime
  24. interface](../runtime_interfaces.md) should be used.