I am trying to install nfs server on centos 7. after installation completed, starting nfs service nfs server failed with result 'dependency'.
here the installation steps and error details. how to solve the installation problem ?
sudo yum update
sudo yum install nfs-utils rpcbind
sudo systemctl enable nfs-server
sudo systemctl start nfs-server
cat /etc/os-release
> NAME="CentOS Linux" VERSION="7 (Core)"
> ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS
> Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7"
> HOME_URL="https://www.centos.org/"
> BUG_REPORT_URL="https://bugs.centos.org/"
>
> CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7"
> REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
systemctl list-dependencies nfs-server.service
o ├─auth-rpcgss-module.service
o ├─nfs-config.service
o ├─nfs-idmapd.service
o ├─nfs-mountd.service
x ├─proc-fs-nfsd.mount
● ├─rpc-rquotad.service
o ├─rpc-statd-notify.service
● ├─rpc-statd.service
● ├─rpcbind.socket
● ├─system.slice
● ├─network-online.target
● └─network.target
journalctl -xe
Sep 2 00:49:20 NFS systemd: Starting Notify NFS peers of a restart...
Sep 2 00:49:20 NFS sm-notify[8531]: Version 1.3.0 starting
Sep 2 00:49:20 NFS sm-notify[8531]: Already notifying clients; Exiting!
Sep 2 00:49:20 NFS systemd: Started Notify NFS peers of a restart.
Sep 2 00:55:01 NFS systemd: nfs-config.service: Failed to set invocation ID on control group /system.slice/nfs-config.service, ignoring: Operation not permitted
Sep 2 00:55:01 NFS systemd: Starting Preprocess NFS configuration...
Sep 2 00:55:01 NFS systemd: proc-fs-nfsd.mount: Failed to set invocation ID on control group /system.slice/proc-fs-nfsd.mount, ignoring: Operation not permitted
Sep 2 00:55:01 NFS systemd: Mounting NFSD configuration filesystem...
Sep 2 00:55:01 NFS systemd: var-lib-nfs-rpc_pipefs.mount: Failed to set invocation ID on control group /system.slice/var-lib-nfs-rpc_pipefs.mount, ignoring: Operation not permitted
Sep 2 00:55:01 NFS systemd: Mounting RPC Pipe File System...
Sep 2 00:55:01 NFS systemd: proc-fs-nfsd.mount: Mount process exited, code=exited status=32
Sep 2 00:55:01 NFS systemd: Failed to mount NFSD configuration filesystem.
Sep 2 00:55:01 NFS systemd: Dependency failed for NFS Mount Daemon.
Sep 2 00:55:01 NFS systemd: Dependency failed for NFS server and services.
Sep 2 00:55:01 NFS systemd: Dependency failed for NFSv4 ID-name mapping service.
Sep 2 00:55:01 NFS systemd: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result 'dependency'.
Sep 2 00:55:01 NFS systemd: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Sep 2 00:55:01 NFS systemd: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
Sep 2 00:55:01 NFS systemd: proc-fs-nfsd.mount: Unit entered failed state.
Sep 2 00:55:01 NFS systemd: var-lib-nfs-rpc_pipefs.mount: Mount process exited, code=exited status=32
Sep 2 00:55:01 NFS systemd: Failed to mount RPC Pipe File System.
Sep 2 00:55:01 NFS systemd: Dependency failed for rpc_pipefs.target.
Sep 2 00:55:01 NFS systemd: Dependency failed for RPC security service for NFS client and server.
Sep 2 00:55:01 NFS systemd: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
Sep 2 00:55:01 NFS systemd: rpc_pipefs.target: Job rpc_pipefs.target/start failed with result 'dependency'.
Sep 2 00:55:01 NFS systemd: var-lib-nfs-rpc_pipefs.mount: Unit entered failed state.
Sep 2 00:55:01 NFS systemd: Started Preprocess NFS configuration.
Sep 2 00:55:01 NFS systemd: rpc-statd-notify.service: Failed to set invocation ID on control group /system.slice/rpc-statd-notify.service, ignoring: Operation not permitted