nfs-server.service 将无法启动,错误的 exportfs 条目仍然存在

nfs-server.service 将无法启动,错误的 exportfs 条目仍然存在

我正在使用 Proxmox 和 ZFS。以前,我sharenfs在现已删除的 zfs 池 (panzer) 上使用 建立了 NFS 共享。一年多过去了,我正在尝试建立一个新的 NFS 共享。当我运行时systemctl status nfs-server.service,我收到以下消息,显示错误的 exportfs 条目(使用旧的 zfs 池 - panzer):

systemctl status nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2023-09-20 21:39:02 MDT; 18min ago
  Process: 17766 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)
  Process: 17767 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 17768 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)

Sep 20 21:39:02 matt-daemon systemd[1]: Starting NFS server and services...
Sep 20 21:39:02 matt-daemon exportfs[17766]: exportfs: duplicated export entries:
Sep 20 21:39:02 matt-daemon exportfs[17766]: exportfs:         192.168.2.0/24:/grizzly
Sep 20 21:39:02 matt-daemon exportfs[17766]: exportfs: duplicated export entries:
Sep 20 21:39:02 matt-daemon exportfs[17766]: exportfs:         192.168.2.0/24:/grizzly/backups
Sep 20 21:39:02 matt-daemon exportfs[17766]: exportfs: Failed to stat /panzer/media: No such file or directory
Sep 20 21:39:02 matt-daemon systemd[1]: nfs-server.service: Control process exited, code=exited, status=1/FAILURE
Sep 20 21:39:02 matt-daemon systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Sep 20 21:39:02 matt-daemon systemd[1]: Failed to start NFS server and services.

/panzer/media是我的系统上不再存在的 zfs 池。运行zfs list显示只有灰熊存在,而不是装甲:

zfs list
NAME                    USED  AVAIL     REFER  MOUNTPOINT
grizzly                 834G  6.01T      157K  /grizzly
grizzly/backups         140K  6.01T      140K  /grizzly/backups
grizzly/vm-102-disk-0  25.3G  6.01T     18.9G  -
grizzly/vm-109-disk-0   808G  6.01T      696G  -

/etc/exports不包含任何内容,并且/etc/exports.d/zfs-exports确实包含一行 panzer,[与文件顶部的明确消息相反]我在绝望中手动删除了该行。/var/lib/nfs/etab包含一行 panzer ,如果我删除它并重新运行exportfs -r,它会返回。

如果您能帮助修复我的 NFS 安装或清除过时的 Exportfs 条目,我们将不胜感激。

相关内容