Return to site

Add a Blog Post Title

broken image

 

 

 

*If all is well, restart NFS server so as to make the share available to NFS clients. Systemctl restart nfs-kernel-server. If firewall is running on NFS server, allow access to the nfs share from the client. Ufw allow from 192.168.43.214 to any port nfs. Reload the firewall to apply the changes: ufw reload Configure NFS Client.

*Sudo systemctl enable rpcbind.service sudo systemctl enable nfs-kernel-server I can mount on a Ubuntu machine with:-sudo mount -v -o noatime -t nfs 10.1.1.41:/home/pi /test Unfortunately when I reboot Raspbian the nfs-kernel-server.service does not start.

*Job for nfs-server.service canceled. LTSP command failed: systemctl restart nfs-kernel-server Aborting ltsp Η εντολή 'ltsp nfs' απέτυχε με κωδικό σφάλματος 1.

Sep 13, 2019  Job For Nfs-server.service Canceled. 9/11/2019 On 02:55, Jonathan Ryshpan wrote: Setting up an nfs server on a laptop running Fedora-20, I get the following perplexing results: # systemctl start nfs.service # systemctl enable nfs.service Failed to issue method call: No such file or directory Sure enough, as promised, nfs works up to the next.NFSの設定(たぶんありふれているけれど)

# vi /etc/exports

/home 192.168.1.0/255.255.255.0(rw)

Job For Nfs-server.service Canceled Fedoraを追記

# service nfs startJob for nfs.service failed. See 'systemctl status nfs.service' and 'journalctl -xn' for details.# systemctl status nfs.servicenfs.service - LSB: NFS client services Loaded: loaded (/etc/init.d/nfs) Drop-In: /run/systemd/generator/nfs.service.d └─50-insserv.conf-$remote_fs.conf Active: failed (Result: exit-code) since Wed 2014-08-13 15:51:50 JST; 56s ago Process: 15114 ExecStart=/etc/init.d/nfs start (code=exited, status=3)Aug 13 15:51:50 linux-3g1h systemd[1]: Starting LSB: NFS client services...Aug 13 15:51:50 linux-3g1h nfs[15114]: Starting NFS client services:portmap/rpcbind is not runningAug 13 15:51:50 linux-3g1h nfs[15114]: ..missingAug 13 15:51:50 linux-3g1h systemd[1]: nfs.service: control process exited, code=exited status=3Aug 13 15:51:50 linux-3g1h systemd[1]: Failed to start LSB: NFS client services.Aug 13 15:51:50 linux-3g1h systemd[1]: Unit nfs.service entered failed state.

クライアントのサービスが動いていない。

linux-xxxx:/etc/systemd # service rpcbind startlinux-xxxx:/etc/systemd #linux-xxxx:/etc/systemd # service rpcbind statusrpcbind.service - RPC Bind Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; disabled) Active: active (running) since Wed 2014-08-13 16:29:06 JST; 6s ago Main PID: 15527 (rpcbind) CGroup: /system.slice/rpcbind.service └─15527 /sbin/rpcbind -w -fAug 13 16:29:06 linux-3g1h systemd[1]: Starting RPC Bind...Aug 13 16:29:06 linux-3g1h rpcbind[15527]: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for re...ory)Aug 13 16:29:06 linux-3g1h rpcbind[15527]: Cannot open '/var/lib/rpcbind/portmap.xdr' file for re...ory)Aug 13 16:29:06 linux-3g1h systemd[1]: Started RPC Bind.Hint: Some lines were ellipsized, use -l to show in full.

う~ん、/var/lib/rpcbind/ でエラーが出ているけど……

linux-xxxx:/etc/systemd # service nfsserver restartlinux-xxxx:/etc/systemd # service nfsserver statusnfsserver.service - LSB: Start the kernel based NFS daemon Loaded: loaded (/etc/init.d/nfsserver) Active: active (running) since Wed 2014-08-13 16:30:06 JST; 7s ago Process: 15577 ExecStart=/etc/init.d/nfsserver start (code=exited, status=0/SUCCESS) CGroup: /system.slice/nfsserver.service ├─15201 /usr/sbin/rpc.idmapd -p /var/lib/nfs/rpc_pipefs ├─15598 /usr/sbin/rpc.mountd └─15601 /usr/sbin/rpc.statd --no-notifyAug 13 16:30:06 linux-3g1h systemd[1]: Starting LSB: Start the kernel based NFS daemon...Aug 13 16:30:06 linux-3g1h nfsserver[15577]: Starting kernel based NFS server: idmapdexportfs: /et...d'.Aug 13 16:30:06 linux-3g1h nfsserver[15577]: Assuming default behaviour ('no_subtree_check').Aug 13 16:30:06 linux-3g1h nfsserver[15577]: NOTE: this default has changed since nfs-utils versio...0.xAug 13 16:30:06 linux-3g1h rpc.mountd[15598]: Version 1.2.8 startingAug 13 16:30:06 linux-3g1h rpc.statd[15601]: Version 1.2.8 startingAug 13 16:30:06 linux-3g1h rpc.statd[15601]: Flags: TI-RPCAug 13 16:30:06 linux-3g1h rpc.statd[15601]: Initializing NSM stateAug 13 16:30:06 linux-3g1h sm-notify[15612]: Version 1.2.8 startingAug 13 16:30:06 linux-3g1h systemd[1]: Started LSB: Start the kernel based NFS daemon.Hint: Some lines were ellipsized, use -l to show in full.

動いたっぽい。

次いで、クライアント側、

# chkconfig rpcbindrpcbind on# mount -t nfs 192.168.1.0:/home /mntん、応答なし、

で、サーバ側で

# SuSEfirewall2 stop

して、再度、

# mount -t nfs 192.168.1.0:/home /mntJob For Nfs-server.service Canceled

今度は成功。

なので、そのままサーバ側でJob For Nfs-server.service Canceled Rhel

# SuSEfirewall2 start

したけど、マウントはそのまま有効に使える。

そういうものらしい。

On Red Hat Linux 7 operating system, some time you will get below NFS service failed error message.'Job for nfs-server.service failed because the control process exited with error code. See 'systemctl status nfs-server.service' and 'journalctl -xe' for details.'The above error occur when you are taking restart of nfs service.# systemctl restart nfs.service Job for nfs-server.service failed because the control process exited with error code. See 'systemctl status nfs-server.service' and 'journalctl -xe' for details.Resolution# systemctl status nfs-server.servicenfs-server.service - NFS server and services Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2018-04-27 09:56:08 IST; 8s ago Process: 21370 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS) Process: 21366 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS) Process: 21362 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS) Process: 21273 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS) Process: 2714 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE) Main PID: 21273 (code=exited, status=0/SUCCESS)Apr 27 09:56:07 localhost.redhat.com systemd[1]: Starting NFS server and services...Apr 27 09:56:08 localhost.redhat.com exportfs[2714]: exportfs: Failed to resolve foobar.com <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Apr 27 09:56:08 localhost.redhat.com exportfs[2714]: exportfs: Failed to resolve foobar.com <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Apr 27 09:56:08 localhost.redhat.com systemd[1]: nfs-server.service: control process exited, code=exited status=1Apr 27 09:56:08 localhost.redhat.com systemd[1]: Failed to start NFS server and services.Apr 27 09:56:08 localhost.redhat.com systemd[1]: Unit nfs-server.service entered failed state.Apr 27 09:56:08 localhost.redhat.com systemd[1]: nfs-server.service failed.To resolve such issue you need to follow the below process.You need to check which NFS version rpm is installed on the server.#rpm -qa | grep nfsthe above command show you the installed nfs version.Normally the above error occur due to lower version on nfs, so to resolve the issue you need to upgrade the nfs version.installed the latest nfs rpm nfs-utils-1.3.0-0.33.el7 or later#yum install nfsThe above command upgrade the nfs rpm, or you can download the manually rpm file and installed it through rpm -uvh command. After that restart the nfs service again.# systemctl restart nfs.serviceit is started successfully, you can check the status via below command.# systemctl status nfs.service[root@localhost ~]# systemctl status nfs.service● nfs-server.service - NFS server and services Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled) Drop-In: /run/systemd/generator/nfs-server.service.d └─order-with-mounts.conf Active: active (exited) since Thu 2018-04-27 03:47:57 IST; 18h ago Process: 32477 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS) Process: 32472 ExecStartPre=/bin/sh -c /bin/kill -HUP `cat /run/gssproxy.pid` (code=exited, status=0/SUCCESS) Process: 32469 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS) Main PID: 32477 (code=exited, status=0/SUCCESS) CGroup: /system.slice/nfs-server.serviceApr 26 03:47:57 localhost systemd[1]: Starting NFS server and services...Apr 26 03:47:57 localhost systemd[1]: Started NFS server and services.

 

 

 

 

broken image