I want to start nfs server, and I have installed nfs-utils with info:
▸ sudo eopkg info nfs-utils
[sudo] password for yangyongsheng:
Installed package:
Name : nfs-utils, version: 2.5.4, release: 15
Summary : Network File System Utilities
Description : Network File System Utilities
Licenses : GPL-2.0-or-later
Component : network.utils
Dependencies : keyutils lvm2 libcap2 glibc kerberos e2fsprogs libtirpc libevent
sqlite3 util-linux rpcbind
Distribution : Solus, Dist. Release: 1
Architecture : x86_64, Installed Size: 1.85 MB
Reverse Dependencies:
Package found in Solus repository:
Name : nfs-utils, version: 2.5.4, release: 15
Summary : Network File System Utilities
Description : Network File System Utilities
Licenses : GPL-2.0-or-later
Component : network.utils
Dependencies : keyutils lvm2 libcap2 glibc kerberos e2fsprogs libtirpc libevent
sqlite3 util-linux rpcbind
Distribution : Solus, Dist. Release: 1
Architecture : x86_64, Installed Size: 1.85 MB, Package Size: 348.00 KB
Reverse Dependencies: nfs-utils-devel nfs-utils-dbginfo
Then I start nfs-server.service but failed, when I do systemctl status nfs-server.service ,the output as
▸ sudo systemctl status nfs-server.service
[sudo] password for yangyongsheng:
× nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; preset: enabled)
Drop-In: /usr/lib64/systemd/system/service.d
└─10-timeout-abort.conf
/run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: failed (Result: exit-code) since Thu 2023-08-17 19:27:17 CST; 15min ago
Process: 775 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 777 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=1/FAILURE)
Process: 783 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 784 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Main PID: 777 (code=exited, status=1/FAILURE)
CPU: 14ms
Aug 17 19:27:17 redwork systemd[1]: Starting NFS server and services...
Aug 17 19:27:17 redwork rpc.nfsd[777]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Aug 17 19:27:17 redwork rpc.nfsd[777]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
Aug 17 19:27:17 redwork rpc.nfsd[777]: rpc.nfsd: unable to set any sockets for nfsd
Aug 17 19:27:17 redwork systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 19:27:17 redwork systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Aug 17 19:27:17 redwork systemd[1]: Stopped NFS server and services.
and the kernel version is:
▸ uname -a
Linux redwork 6.4.9-248.current #1 SMP PREEMPT_DYNAMIC Fri Aug 11 00:58:28 UTC 2023 x86_64 GNU/Linux