NFS mount stuck after disk failure

  • Hello,


    here is the case. A data HDD failed on installed omv5 system. There was a NFS share on that disk. Now i can't remove the shared folder, because its referenced in NFS and i can't remove the folder from NFS share because of the following error.


    Where can i find and manually remove the NFS share to that folder so its no longer referenced?



    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color quota 2>&1' with exit code '1': debian:
    ---------- ID: quota_off_no_quotas_ Function: cmd.run Name: quotaoff --group --user /dev/disk/by-label/MiRROR || true Result: True Comment: Command "quotaoff --group --user /dev/disk/by-label/MiRROR || true" run Started: 15:42:08.032003 Duration: 8.182 ms Changes: ---------- pid: 44057 retcode: 0 stderr: quotaoff: Cannot stat() given mountpoint /dev/disk/by-label/MiRROR: No such file or directory Skipping... quotaoff: No correct mountpoint specified. stdout:
    ---------- ID: quota_check_no_quotas_ Function: cmd.run Name: quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-label/MiRROR Result: False Comment: Command "quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-label/MiRROR" run Started: 15:42:08.040402 Duration: 14.594 ms Changes: ---------- pid: 44059 retcode: 2 stderr: quotacheck: Cannot stat() given mountpoint /dev/disk/by-label/MiRROR: No such file or directory Skipping... quotacheck: No correct mountpoint specified. quotacheck: Cannot initialize mountpoint scan. stdout:
    ---------- ID: quota_off_no_quotas_47403135-36ed-4256-8b4d-67903814a8e4 Function: cmd.run Name: quotaoff --group --user /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4 || true Result: True Comment: Command "quotaoff --group --user /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4 || true" run Started: 15:42:08.055221 Duration: 474.497 ms Changes: ---------- pid: 44061 retcode: 0 stderr: stdout:
    ---------- ID: quota_check_no_quotas_47403135-36ed-4256-8b4d-67903814a8e4 Function: cmd.run Name: quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4 Result: True Comment: Command "quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4" run Started: 15:42:08.530427 Duration: 243.426 ms Changes: ---------- pid: 44064 retcode: 0 stderr: quotacheck: Scanning /dev/sdb1 [/srv/dev-disk-by-uuid-47403135-36ed-4256-8b4d-67903814a8e4] quotacheck: Checked 9367 directories and 177914 files stdout


    Show details:

    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color quota 2>&1' with exit code '1': debian:
    ---------- ID: quota_off_no_quotas_ Function: cmd.run Name: quotaoff --group --user /dev/disk/by-label/MiRROR || true Result: True Comment: Command "quotaoff --group --user /dev/disk/by-label/MiRROR || true" run Started: 15:42:08.032003 Duration: 8.182 ms Changes: ---------- pid: 44057 retcode: 0 stderr: quotaoff: Cannot stat() given mountpoint /dev/disk/by-label/MiRROR: No such file or directory Skipping... quotaoff: No correct mountpoint specified. stdout:
    ---------- ID: quota_check_no_quotas_ Function: cmd.run Name: quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-label/MiRROR Result: False Comment: Command "quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-label/MiRROR" run Started: 15:42:08.040402 Duration: 14.594 ms Changes: ---------- pid: 44059 retcode: 2 stderr: quotacheck: Cannot stat() given mountpoint /dev/disk/by-label/MiRROR: No such file or directory Skipping... quotacheck: No correct mountpoint specified. quotacheck: Cannot initialize mountpoint scan. stdout:
    ---------- ID: quota_off_no_quotas_47403135-36ed-4256-8b4d-67903814a8e4 Function: cmd.run Name: quotaoff --group --user /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4 || true Result: True Comment: Command "quotaoff --group --user /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4 || true" run Started: 15:42:08.055221 Duration: 474.497 ms Changes: ---------- pid: 44061 retcode: 0 stderr: stdout:
    ---------- ID: quota_check_no_quotas_47403135-36ed-4256-8b4d-67903814a8e4 Function: cmd.run Name: quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4 Result: True Comment: Command "quotacheck --user --group --create-files --no-remount --verbose /dev/disk/by-uuid/47403135-36ed-4256-8b4d-67903814a8e4" run Started: 15:42:08.530427 Duration: 243.426 ms Changes: ---------- pid: 44064 retcode: 0 stderr: quotacheck: Scanning /dev/sdb1 [/srv/dev-disk-by-uuid-47403135-36ed-4256-8b4d-67903814a8e4] quotacheck: Checked 9367 directories and 177914 files stdout: |/-\|done
    ---------- ID: disable_quota_service Function: service.disabled Name: quota Result: True Comment: Service quota is already disabled, and is in the desired state Started: 15:42:08.804834 Duration: 30.842 ms Changes:

    Summary for debian
    ------------
    Succeeded: 4 (changed=4)
    Failed: 1
    ------------
    Total states run: 5
    Total run time: 771.541 ms in /usr/share/php/openmediavault/system/process.inc:195
    Stack trace:
    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
    #1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
    #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
    #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusmB...', '/tmp/bgoutputXH...')
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
    #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
    #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
    #12 {main}

    • Offizieller Beitrag

    You can edit /etc/openmediavault/config.xml.

    Make a copy of that file before you make any changes:!:


    Look for the sections dealing with that shared folder and remove the sections.


    When done run

    omv-salt stage run deploy

  • Thank you very much, didn't work with removing the folder from the xml file, but removed the failed file system and than the NFS shared was no longer active. After that i removed the shared folder from the GUI.

  • macom

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!