升级到 20.04 后 NFS 无法启动

升级到 20.04 后 NFS 无法启动

刚刚将我的媒体服务器从 18.04(Lubuntu)升级到 20.04。从那时起,NFS 共享就不可用了。我找不到任何关于如何处理以下问题的有用且最新的信息。看来 auth-rpcgss-module 和 rpc-svcgssv 服务没有运行;nfs-config 不再处于活动状态,但似乎已完成其任务并退出。在 list-dependencies 命令的输出中,这三个旁边有白点;其他的是绿色的。

root@vader:~# systemctl list-dependencies nfs-kernel-server
nfs-kernel-server.service
● ├─-.mount
● ├─audio.mount
● ├─auth-rpcgss-module.service
● ├─home.mount
● ├─misc.mount
● ├─mythrec-1.mount
● ├─nfs-config.service
● ├─nfs-idmapd.service
● ├─nfs-mountd.service
● ├─proc-fs-nfsd.mount
● ├─rpc-svcgssd.service
● ├─rpcbind.socket
● ├─system.slice
● ├─video.mount
● ├─video2.mount
● ├─video3.mount
● └─network.target
root@vader:~# systemctl status auth-rpcgss-module.service 
● auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS
     Loaded: loaded (/lib/systemd/system/auth-rpcgss-module.service; static; vendor preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Sat 2020-10-24 13:48:02 PDT; 5min ago
             └─ ConditionPathExists=/etc/krb5.keytab was not met

Oct 24 13:28:51 vader systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
Oct 24 13:48:02 vader systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
root@vader:~# systemctl status nfs-config.service 
● nfs-config.service - Preprocess NFS configuration
     Loaded: loaded (/lib/systemd/system/nfs-config.service; static; vendor preset: enabled)
     Active: inactive (dead) since Sat 2020-10-24 13:48:02 PDT; 5min ago
    Process: 11606 ExecStart=/usr/lib/systemd/scripts/nfs-utils_env.sh (code=exited, status=0/SUCCESS)
   Main PID: 11606 (code=exited, status=0/SUCCESS)

Oct 24 13:48:02 vader systemd[1]: Starting Preprocess NFS configuration...
Oct 24 13:48:02 vader systemd[1]: nfs-config.service: Succeeded.
Oct 24 13:48:02 vader systemd[1]: Finished Preprocess NFS configuration.
root@vader:~# systemctl status rpc-svcgssd.service 
● rpc-svcgssd.service - RPC security service for NFS server
     Loaded: loaded (/lib/systemd/system/rpc-svcgssd.service; static; vendor preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Sat 2020-10-24 13:48:02 PDT; 5min ago
             └─ ConditionPathExists=/etc/krb5.keytab was not met

Oct 24 13:25:37 vader systemd[1]: Condition check resulted in RPC security service for NFS server being skipped.
Oct 24 13:28:51 vader systemd[1]: Condition check resulted in RPC security service for NFS server being skipped.
Oct 24 13:29:27 vader systemd[1]: Condition check resulted in RPC security service for NFS server being skipped.
Oct 24 13:48:02 vader systemd[1]: Condition check resulted in RPC security service for NFS server being skipped.

显然这是某种安全问题。文件 /etc/krb5.keytab 不存在。某些 Kerberos 配置中是否有我需要更改的参数?

提前致谢!

答案1

已解决。重新安装了所有 nfs 包、rpcbind 等,重新启动后,NFS 共享现在可用。

相关内容