Masalahnya
Mencoba memulai NFS (nfs-server.service) pada CentOS/RHEL 7 gagal sebagai berikut:
# systemctl status nfs-server.service nfs-server.service - NFS server and services Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled) Drop-In: /run/systemd/generator/nfs-server.service.d '-order-with-mounts.conf Active: inactive (dead) Mar 09 16:17:10 hostname systemd[1]: Dependency failed for NFS server and services. Mar 09 16:17:10 hostname systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Berikut ini juga dilaporkan ke log sistem – /var/log/messages:
Mar 9 16:47:34 hostname systemd[1]: nfsdcld.service: Job nfsdcld.service/start failed with result 'dependency'. Mar 9 16:48:23 hostname systemd[1]: proc-fs-nfsd.mount: Directory /proc/fs/nfsd to mount over is not empty, mounting anyway. Mar 9 16:48:23 hostname mount[1889835]: mount: /proc/fs/nfsd: nfsd already mounted on /proc/fs/nfsd. Mar 9 16:48:23 hostname systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited status=32 Mar 9 16:48:23 hostname systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'. Mar 9 16:48:23 hostname systemd[1]: nfsdcld.service: Job nfsdcld.service/start failed with result 'dependency'.
Solusinya
nfs-server.service membutuhkan dan memasang sistem file procfs /proc/fs/nfsd. Jika filesystem /proc/fs/nfsd sudah di-mount yaitu sebelumnya tidak di-umount, nfs-server.service gagal untuk memulai seperti yang dijelaskan.
Ikuti langkah-langkah yang diuraikan di bawah ini untuk menyelesaikan masalah.
1. Lepas secara manual /proc/fs/nfsd :
# umount /proc/fs/nfsd
2. Mulai layanan NFS:
# systemctl start nfs-server.service
'kelas pembukaan kesalahan fc_host' – Kesalahan Perintah systool pada CentOS/RHEL 7 dan 8
Kesalahan "peta sedang digunakan" saat menghapus perangkat multipath di CentOS/RHEL