can't remove nfs shared folders

  • Hi guys, I'm using a raspberry pi 3b+ as a nas with omv 5.3.8-1 lately. I want to swap a new hdd for my nas but everytime i try to remove the nfs shared folder it says

    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 fstab 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/utils/ DeprecationWarning: Using or importing the ABCs from 'collections' instead of from '' is deprecated, and in 3.8 it will stop working if not isinstance(exes, collections.Iterable): /usr/lib/python3/dist-packages/salt/utils/decorators/ DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function) raspberrypi: ---------- ID: create_filesystem_mountpoint_fbb5418b-d0d5-43df-8b15-23c3a1e14cbd Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_fbb5418b-d0d5-43df-8b15-23c3a1e14cbd for file /etc/fstab was charged by text Started: 01:29:31.969970 Duration: 3.017 ms Changes: ---------- ID: mount_filesystem_mountpoint_fbb5418b-d0d5-43df-8b15-23c3a1e14cbd Function: mount.mounted Name: /srv/dev-disk-by-id-usb-EAGET_G3_0000000000003996-0-0-part1 Result: True Comment: Target was already mounted Started: 01:29:31.977764 Duration: 667.676 ms Changes: ---------- ID: create_filesystem_mountpoint_9865a37d-4c69-4ebe-9493-07b08a38a3f3 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_9865a37d-4c69-4ebe-9493-07b08a38a3f3 for file /etc/fstab was charged by text Started: 01:29:32.646085 Duration: 3.339 ms Changes: ---------- ID: mount_filesystem_mountpoint_9865a37d-4c69-4ebe-9493-07b08a38a3f3 Function: mount.mounted Name: /srv/dev-disk-by-label-NASDISK1 Result: False Comment: ntfs-3g: Failed to access volume '/dev/disk/by-label/NASDISK1': No such file or directory ntfs-3g 2017.3.23AR.3 integrated FUSE 28 - Third Generation NTFS Driver Configuration type 7, XATTRS are on, POSIX ACLS are on Copyright (C) 2005-2007 Yura Pakhuchiy Copyright (C) 2006-2009 Szabolcs Szakacsits Copyright (C) 2007-2017 Jean-Pierre Andre Copyright (C) 2009 Erik Larsson Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point> Options: ro (read-only mount), windows_names, uid=, gid=, umask=, fmask=, dmask=, streams_interface=. Please see the details in the manual (type: man ntfs-3g). Example: ntfs-3g /dev/sda1 /mnt/windows News, support and information: Started: 01:29:32.650009 Duration: 107.499 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: No changes needed to be made Started: 01:29:32.763293 Duration: 14.043 ms Changes: Summary for raspberrypi ------------ Succeeded: 4 Failed: 1 ------------ Total states run: 5 Total run time: 795.574 ms

    how can i fix this problem? thx;(;(;(

  • When you created the nfs share you first created the shared folder and then added a nfs service sharing it.

    To remove the shared folder you need to reverse this.

    First delete the share from the nfs service, then delete the shared folder.

    If there are other services referencing the shared folder they also must be deleted before you can remove the shared folder.

    Be smart - be lazy. Clone your rootfs.
    OMV 5: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • but this is what happened when i try to remove the nfs share first:/

  • Then I assume you have some other service running that is referencing the shared folder.

    If you add the plugin resetperms a new tab "Shared Folder In Use" appears on the shared folders page. This tab can be used to list services that reference a shared folder. You need to delete/remove all of those references before you can delete the shared folder.

    This is of course assuming your OMV install is good.

    Be smart - be lazy. Clone your rootfs.
    OMV 5: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!