Could not fetch a matching mount point w/ mergerfs w/ new OMV mounting points

    • OMV 3.x
    • Resolved

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

    • Could not fetch a matching mount point w/ mergerfs w/ new OMV mounting points

      I recently added 2 new disks into my OMV3.0.70 setup. I noticed that they are using a new mount point of '/srv/dev-disk-by-label-DataDisk03' instead of '/media/11b1ec9f-2232-4302-ba8b-96120efe7777/'. I added the new disks into Union Filesystems megerfs pool 'primary_datapool' and since then haven't been able to make shared folders to export to NFS or CIFS.

      ERROR

      Source Code

      1. Error #0: exception 'OMV\Exception' with message 'Could not fetch a matching mount point from the provided fsname: 'media/85abc43f-81e6-4cb6-9d90-ca24c253c15c:media/f0f3379d-5651-495a-9cc0-2df8d4667ff7:srv/dev-disk-by-label-DataDisk04:srv/dev-disk-by-label-DataDisk03'.' in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc:118 Stack trace: #0 /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc(61): OMV\System\Filesystem\Backend\Mergerfs::fetchMountPointFromFstabByFsnameAndType('media/85abc43f-...', 'fuse.mergerfs') #1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(894): OMV\System\Filesystem\Backend\Mergerfs->getImpl('media/85abc43f-...') #2 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(156): OMV\System\Filesystem\Filesystem::getImplByMountPoint('/media/e7fa93b0...') #3 [internal function]: OMVRpcServiceShareMgmt->enumerateSharedFolders(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('enumerateShared...', Array, Array) #6 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('ShareMgmt', 'enumerateShared...', Array, Array, 1) #7 {main}



      I tried removing the mergerfs pool, uninstalling the union filessystems plugin, rebooting, reinstalling, remaking the pool. However i still have the same issue. I see everything in the /etc/fstab and i also am able to navigate it and view files in putty.

      ERROR

      Source Code

      1. Error #0: exception 'OMV\Exception' with message 'Could not fetch a matching mount point from the provided fsname: 'srv/dev-disk-by-label-DataDisk03:media/85abc43f-81e6-4cb6-9d90-ca24c253c15c:srv/dev-disk-by-label-DataDisk04:media/f0f3379d-5651-495a-9cc0-2df8d4667ff7'.' in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc:118 Stack trace: #0 /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc(61): OMV\System\Filesystem\Backend\Mergerfs::fetchMountPointFromFstabByFsnameAndType('srv/dev-disk-by...', 'fuse.mergerfs') #1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(894): OMV\System\Filesystem\Backend\Mergerfs->getImpl('srv/dev-disk-by...') #2 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(86): OMV\System\Filesystem\Filesystem::getImplByMountPoint('/srv/547efeb0-1...') #3 [internal function]: OMVRpcServiceShareMgmt->getCandidates(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getCandidates', Array, Array) #6 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('ShareMgmt', 'getCandidates', Array, Array, 1) #7 {main}

      I think there is something wrong with the 'new mounting method' and 'mergerfs' and 'shared folders'


      Everything is updated, and i am running OMV 3.0.70(Erasmus) Linux 4.9.0-0.bpo.2-amd64

      FSTAB

      Source Code

      1. root@omv:/srv# cat /etc/fstab
      2. # /etc/fstab: static file system information.
      3. #
      4. # Use 'blkid' to print the universally unique identifier for a
      5. # device; this may be used with UUID= as a more robust way to name devices
      6. # that works even if disks are added and removed. See fstab(5).
      7. #
      8. # <file system> <mount point> <type> <options> <dump> <pass>
      9. # / was on /dev/sdg1 during installation
      10. UUID=78a8febe-d9c3-4c98-906e-ff1133b111a3 / ext4 errors=remount-ro 0 1
      11. # swap was on /dev/sdg5 during installation
      12. UUID=9353b601-62bc-4805-a6a2-cc3db5d30e17 none swap sw 0 0
      13. /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
      14. # >>> [openmediavault]
      15. UUID=85abc43f-81e6-4cb6-9d90-ca24c253c15c /media/85abc43f-81e6-4cb6-9d90-ca24c253c15c ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      16. UUID=f0f3379d-5651-495a-9cc0-2df8d4667ff7 /media/f0f3379d-5651-495a-9cc0-2df8d4667ff7 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      17. UUID=5098254d-36af-433d-88b1-844c8c8fff97 /media/5098254d-36af-433d-88b1-844c8c8fff97 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,discard,acl 0 2
      18. /dev/disk/by-label/Parity1 /srv/dev-disk-by-label-Parity1 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      19. /dev/disk/by-label/Parity2 /srv/dev-disk-by-label-Parity2 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      20. /dev/disk/by-label/DataDisk03 /srv/dev-disk-by-label-DataDisk03 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      21. /dev/disk/by-label/DataDisk04 /srv/dev-disk-by-label-DataDisk04 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      22. /srv/dev-disk-by-label-DataDisk03:/media/85abc43f-81e6-4cb6-9d90-ca24c253c15c:/srv/dev-disk-by-label-DataDisk04:/media/f0f3379d-5651-495a-9cc0-2df8d4667ff7 /srv/547efeb0-1326-4f06-8027-59d3fd60c518 fuse.mergerfs defaults,allow_other,direct_io,use_ino,category.create=epmfs,minfreespace=100G 0 0
      23. # <<< [openmediavault]
      24. tmpfs /tmp tmpfs defaults 0 0
      Display All

      The post was edited 1 time, last by mkgriesinger ().

    • The unionfilesystems plugin (and remoteshare and zfs plugins) need to be updated for the latest changes to OMV. I would stay on OMV 3.0.69 until they are fixed. @HK-47
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • wget http://packages.openmediavault.org/public/pool/main/o/openmediavault/openmediavault_3.0.69_all.deb
      dpkg -i openmediavault_3.0.69_all.deb
      omv 4.0.6 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • I got OMV 3.0.69 installed and removed / reinstalled /reconfigured mergerfs. However i still get the same type of error.

      Source Code

      1. Error #0: exception 'OMV\Exception' with message 'Could not fetch a matching mount point from the provided fsname: 'srv/dev-disk-by-label-DataDisk03:media/85abc43f-81e6-4cb6-9d90-ca24c253c15c:srv/dev-disk-by-label-DataDisk04:media/f0f3379d-5651-495a-9cc0-2df8d4667ff7'.' in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc:118 Stack trace: #0 /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc(61): OMV\System\Filesystem\Backend\Mergerfs::fetchMountPointFromFstabByFsnameAndType('srv/dev-disk-by...', 'fuse.mergerfs') #1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(894): OMV\System\Filesystem\Backend\Mergerfs->getImpl('srv/dev-disk-by...') #2 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(86): OMV\System\Filesystem\Filesystem::getImplByMountPoint('/srv/01ec7116-5...') #3 [internal function]: OMVRpcServiceShareMgmt->getCandidates(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getCandidates', Array, Array) #6 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('ShareMgmt', 'getCandidates', Array, Array, 1) #7 {main}
    • I think I know what the problem is and a downgrade won't help. I have a possible fix committed locally but rather know if it's working before pushing it. Can you check if it works if you change line 108 in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc from
      $mountsFile = strpos($fsname, DIRECTORY_SEPARATOR) !== false ? '/etc/fstab' : '/proc/mounts'; to $mountsFile = strpos($fsname, DIRECTORY_SEPARATOR) === 0 ? '/proc/mounts' : '/etc/fstab';
    • @HK-47 Doesn't look like it worked 8(

      mergerfs.inc lines 106 - 108

      Source Code

      1. private static function fetchMountPointFromFstabByFsnameAndType($fsname, $type)
      2. {
      3. $mountsFile = strpos($fsname, DIRECTORY_SEPARATOR) === 0 ? '/proc/mounts' : '/etc/fstab';


      Error Message: (after running systemctl restart openmediavault-engined.service)

      Source Code

      1. Could not fetch a matching mount point from the provided fsname: 'srv/dev-disk-by-label-DataDisk03:media/85abc43f-81e6-4cb6-9d90-ca24c253c15c:srv/dev-disk-by-label-DataDisk04:media/f0f3379d-5651-495a-9cc0-2df8d4667ff7'.

      Source Code

      1. Error #0: exception 'OMV\Exception' with message 'Could not fetch a matching mount point from the provided fsname: 'srv/dev-disk-by-label-DataDisk03:media/85abc43f-81e6-4cb6-9d90-ca24c253c15c:srv/dev-disk-by-label-DataDisk04:media/f0f3379d-5651-495a-9cc0-2df8d4667ff7'.' in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc:118 Stack trace: #0 /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc(61): OMV\System\Filesystem\Backend\Mergerfs::fetchMountPointFromFstabByFsnameAndType('srv/dev-disk-by...', 'fuse.mergerfs') #1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(894): OMV\System\Filesystem\Backend\Mergerfs->getImpl('srv/dev-disk-by...') #2 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(86): OMV\System\Filesystem\Filesystem::getImplByMountPoint('/srv/a67ecbf7-5...') #3 [internal function]: OMVRpcServiceShareMgmt->getCandidates(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getCandidates', Array, Array) #6 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('ShareMgmt', 'getCandidates', Array, Array, 1) #7 {main}