Shared Folders

    • OMV 5.x (beta)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Shared Folders

      The only way to mount the folders in /sharedfolders for me currently is to modify the
      /etc/systemd/system/sharedfolders-xxx.mount
      here is an example:

      from:

      Description=Mount shared folder MOD to /sharedfolders/MOD
      DefaultDependencies=no
      After=zfs-mount.service
      Conflicts=umount.target
      RequiresMountsFor=/srv/91080aad-6550-4341-9d5e-72bc444afebf/
      AssertPathIsDirectory=/srv/91080aad-6550-4341-9d5e-72bc444afebf/MOD/
      AssertPathIsDirectory=/sharedfolders
      AssertPathIsMountPoint=/srv/91080aad-6550-4341-9d5e-72bc444afebf/



      to

      Description=Mount shared folder MOD to /sharedfolders/MOD
      DefaultDependencies=no
      After=zfs-mount.service
      Conflicts=umount.target
      RequiresMountsFor=/srv/91080aad-6550-4341-9d5e-72bc444afebf/
      #AssertPathIsDirectory=/srv/91080aad-6550-4341-9d5e-72bc444afebf/MOD/
      AssertPathIsDirectory=/sharedfolders
      AssertPathIsMountPoint=/srv/91080aad-6550-4341-9d5e-72bc444afebf/


      I don't know if it's the right way but up until now it's the only one I found working.

      The post was edited 2 times, last by mig67 ().

    • I think the initial approach from @votdev was to add this line After=fuse-xxx.service', but I don´t know for what 'xxx' stands.

      /etc/systemd/system/sharedfolders-xxx.mount:

      Description=Mount shared folder MOD to /sharedfolders/MOD
      DefaultDependencies=no
      After=zfs-mount.service
      After=fuse-xxx.service
      Conflicts=umount.target
      RequiresMountsFor=/srv/91080aad-6550-4341-9d5e-72bc444afebf/
      AssertPathIsDirectory=/srv/91080aad-6550-4341-9d5e-72bc444afebf/MOD/
      AssertPathIsDirectory=/sharedfolders
      AssertPathIsMountPoint=/srv/91080aad-6550-4341-9d5e-72bc444afebf/
      OMV 3.0.99 (Gray style)
      ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • mig67 wrote:

      Description=Mount shared folder MOD to /sharedfolders/MOD
      DefaultDependencies=no
      After=zfs-mount.service
      Conflicts=umount.target
      RequiresMountsFor=/srv/91080aad-6550-4341-9d5e-72bc444afebf/
      #AssertPathIsDirectory=/srv/91080aad-6550-4341-9d5e-72bc444afebf/MOD/
      AssertPathIsDirectory=/sharedfolders
      AssertPathIsMountPoint=/srv/91080aad-6550-4341-9d5e-72bc444afebf/


      I don't know if it's the right way but up until now it's the only one I found working.

      I really do not understand why commenting out 'AssertPathIsDirectory=/srv/91080aad-6550-4341-9d5e-72bc444afebf/MOD/' fixes the issue. /MOD/ is a directory within the filesystem that is mounted to '/srv/91080aad-6550-4341-9d5e-72bc444afebf'. If the filesystem is mounted, then the directory MUST exist also. Systemd is waiting for the filesystem to be mounted based on the 'RequiresMountsFor' line, the 'AssertPathIsMountPoint' makes sure the directory is a mount point, so why the hell does the directory within that filesystem not exist.

      Until this behaviour is not clear i do not want to change the current auto-generated mount unit because from a technical point of view everything is OK.

      Please move this discussion into the bugtracker, the forum is not the best place to track this issue.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Can someone please test this:

      Replace the line

      After=zfs-mount.service

      with

      After=sysinit.target

      Do NOT modify everything else, especially the 'AssertPathIsDirectory' line mentioned above.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • I can confirm that works :thumbup:

      /sharedfolders will populate using megerfs but you have to wait and for users having dockers linked to /sharedfolders that was a problem.

      To ensure and test, my /sharefolders were populated, a reboot brought them back up empty, added that line to one share on my fuse mount, saved, rebooted, and /sharedfolders/<share-name> is populated.
      Raid is not a backup! Would you go skydiving without a parachute?
    • I've created a pull request, can you please check that, too. The changes in the PR look more correct to me.
      https://github.com/openmediavault/openmediavault/pull/432
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • geaves wrote:

      votdev wrote:

      I've created a pull request,
      Sorry that was on v4 my v5 test machine is awaiting a new power supply :(
      For OMV4 see github.com/openmediavault/openmediavault/pull/433
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit