Error when I try to delete a shared folder, which is on a missing disk. OMV4

    • OMV 4.x

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

    • Error when I try to delete a shared folder, which is on a missing disk.

      I removed some disks from my setup.
      The shared folder, offbackups, on those disks shows up in the shared folder list as Referenced=Yes. I believe this makes it impossible to delete the shared folder.
      The underlying devices are long gone. They were /dev/sdi /dev/sdj /dev/sdk.
      There is a new /dev/sdi, that was not one of the original disks. This disk is seen, and has a different shared folder, extbackup, on it.

      When I try to edit the shared folder I get the following error:
      Error #0:
      OMV\Config\DatabaseException: Failed to execute XPath query '//system/fstab/mntent[uuid='3c5d1e56-14cc-43db-8d3a-eb89a662e7fd']'. in /usr/share/php/openmediavault/config/database.inc:78
      Stack trace:
      #0 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(231): OMV\Config\Database->get('conf.system.fil...', '3c5d1e56-14cc-4...')
      #1 [internal function]: OMVRpcServiceShareMgmt->get(Array, Array)
      #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
      #4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('ShareMgmt', 'get', Array, Array, 1)
      #5 {main}

      I do not see the shared folder in the fstab, and when I type mount it is not there.
      I'd appreciate it if someone could tell me how to get rid of this phantom shared folder, please.

      Thanks,
      Ian

      Source Code

      1. root@omvhome:~# 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/sda2 during installation
      10. UUID=751b265a-1b17-4f2d-91d2-9c251f5fd5ae / ext4 errors=remount-ro 0 1
      11. # /boot/efi was on /dev/sda1 during installation
      12. UUID=8A34-CF59 /boot/efi vfat umask=0077 0 1
      13. # swap was on /dev/sda3 during installation
      14. UUID=e2df2532-a56f-4d48-9650-dd033046028e none swap sw 0 0
      15. tmpfs /tmp tmpfs defaults 0 0
      16. # >>> [openmediavault]
      17. /dev/disk/by-label/TVPOOL14TB /srv/dev-disk-by-label-TVPOOL14TB ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      18. /dev/disk/by-label/storetv4t /srv/dev-disk-by-label-storetv4t ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      19. /dev/disk/by-label/TVPOOL2x4TB /srv/dev-disk-by-label-TVPOOL2x4TB ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      20. /dev/disk/by-label/backup1 /srv/dev-disk-by-label-backup1 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      21. /dev/disk/by-label/DuplicatedFS /srv/dev-disk-by-label-DuplicatedFS ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      22. /dev/disk/by-label/configDB /srv/dev-disk-by-label-configDB ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      23. /dev/disk/by-label/extbackup /srv/dev-disk-by-label-extbackup ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      24. /srv/dev-disk-by-label-TVPOOL14TB:/srv/dev-disk-by-label-storetv4t /srv/c1fb88fb-c8a4-485f-b884-db66e6f915a1 fuse.mergerfs defaults,allow_other,use_ino,moveonenospc=true,category.create=mfs,minfreespace=4G 0 0
      25. # <<< [openmediavault]
      Display All


      mount:

      Source Code

      1. root@omvhome:~# mount
      2. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      3. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      4. udev on /dev type devtmpfs (rw,nosuid,relatime,size=3527056k,nr_inodes=881764,mode=755)
      5. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
      6. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=709364k,mode=755)
      7. /dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro)
      8. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
      9. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
      10. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
      11. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
      12. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
      13. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
      14. efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
      15. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
      16. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
      17. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      18. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
      19. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
      20. cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
      21. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
      22. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
      23. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
      24. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
      25. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=8854)
      26. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
      27. mqueue on /dev/mqueue type mqueue (rw,relatime)
      28. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      29. sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
      30. tmpfs on /tmp type tmpfs (rw,relatime)
      31. TVPOOL14TB:storetv4t on /srv/c1fb88fb-c8a4-485f-b884-db66e6f915a1 type fuse.mergerfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other)
      32. fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
      33. /dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
      34. /dev/sdh1 on /srv/dev-disk-by-label-configDB type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      35. /dev/sdc1 on /srv/dev-disk-by-label-storetv4t type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      36. /dev/sdg1 on /srv/dev-disk-by-label-backup1 type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      37. /dev/sdf1 on /srv/dev-disk-by-label-TVPOOL2x4TB type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      38. /dev/sdd1 on /srv/dev-disk-by-label-TVPOOL14TB type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      39. /dev/sdg1 on /sharedfolders/backups type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      40. /dev/md0 on /srv/dev-disk-by-label-DuplicatedFS type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      41. /dev/md0 on /sharedfolders/videos type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      42. /dev/md0 on /sharedfolders/documents type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      43. /dev/md0 on /sharedfolders/music type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      44. /dev/md0 on /sharedfolders/software type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      45. /dev/md0 on /sharedfolders/pictures type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      46. /dev/sdi1 on /srv/dev-disk-by-label-extbackup type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      47. /dev/sdi1 on /sharedfolders/repo_dupe_share type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      Display All