How to get rid of obsolete share

    • OMV 2.x
    • How to get rid of obsolete share

      For copy work I temporarily connected an additional harddisk and created a shared folder and SMB-share. After work done, I deleted the SMB-share, but not the shard folder.
      Now the temporarily disk has gone, as well as the uuid=..., but the entry in 'shared folders' is still present: "Volume: n/a; Referenced: No".
      Any way to get rid of this entry?
      Thanks
    • erik wrote:

      Is the config.xml designated to be manually edited or only automatic by OMV?
      Yes, it is supposed to be generated by OMV, but in your case as the drive is not available any more you probably have to edit it manually.

      If you keep the backup of the config.xml you should be safe. If you encounter any issues just replace the modified file by the backup.

      You can also wait if somebody else has a better way.
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:
    • You can delete shared folders if they are not references by any service anymore.
      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
    • votdev wrote:

      You can delete shared folders if they are not references by any service anymore.
      You mean in config.xml?

      I understand Erik is not able to delete the folders in the GUI as the drive has been unplugged. So is editing config.xml ok?
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:
    • votdev wrote:

      You can delete shared folders if they are not references by any service anymore.
      unfortunately not from the webadmin.

      Thats the error message I get:

      Source Code

      1. Failed to get configuration (xpath=//system/fstab/mntent[uuid='680f22d1-ede7-48f3-8860-fdab406fbfe5'])
      2. Fehler #3003:
      3. exception 'OMVException' with message 'Failed to get configuration (xpath=//system/fstab/mntent[uuid='680f22d1-ede7-48f3-8860-fdab406fbfe5'])' in /usr/share/openmediavault/engined/rpc/sharemgmt.inc:518
      4. Stack trace:
      5. #0 [internal function]: OMVRpcServiceShareMgmt->delete(Array, Array)
      6. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('delete', Array, Array)
      8. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('ShareMgmt', 'delete', Array, Array, 1)
      9. #4 {main}

      Under 'Shared folder': Referenced No
      Under 'Shared folder in use': In Use By 'config/system/shares/sharedfolder'


      The easiest way wouldbe to reattach temporarily the hard disk again, but I am afraid, very like this one now went into my sat-receiver.

      What might happen when I just erase the respective 14 lines
      <sharedfolder>
      ...
      </sharedfolder>
      in config.xml as proposed and reboot?

      If there are side effects, I stay as it is. Not a big deal.

      Thanks in advance