我已经在此服务器上运行 NFS,并且客户端多年来一直成功安装
今天我收到来自客户端的这个错误
showmount -e 10.0.0.110
clnt_create: RPC: Program not registered
考虑到这一点,我看到了这些建议
exportfs -ar
exportfs -a
systemctl 重新启动 nfs 服务器
正是在这最后一个建议上,我犯了这个错误
systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor pr>
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: inactive (dead)
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Found ordering cycle on ex>
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Found dependency on nfs-se>
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Unable to break cycle star>
lines 1-9/9 (END)...skipping...
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: inactive (dead)
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Found ordering cycle on export-3T.mount/start
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Found dependency on nfs-server.service/start
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Unable to break cycle starting with nfs-server.service/start
查看日志:
Jun 23 15:09:04 acer systemd[1]: Requested transaction contains an unfixable cyclic ordering dependency: Transaction order is cyclic. See system logs for det>
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Unable to break cycle starting with nfs-server.service/start
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Found dependency on nfs-server.service/start
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Found ordering cycle on export-3T.mount/start
答案1
Jun 23 15:09:04 acer systemd[1]: nfs-server.service: Unable to break cycle starting with nfs-server.service/start
这意味着你陷入了无限循环。你可以用以下命令将其可视化:
systemd-analyze dot nfs-server.service | dot -Tsvg > graph.svg
使用 inkview 之类的工具打开 svg。注意绿线 - 它们表示“之后”。您应该在某处看到一个循环:a >>> b >>> c >>> a >>>等等,或者更简单的一个 >>> 一个 >>> 一个 >>>