You are not logged in.

#1 2014-11-07 17:14:15

mitch_feaster
Member
From: San Diego, CA
Registered: 2011-02-27
Posts: 55
Website

[SOLVED] nfs-server.service refuses to autostart despite being enabled

I've followed the instructions on the arch wiki [1] for configuring my NFS server.  I have enabled the rpcbind.service and nfs-server.service but nfs-server.service never starts at boot.  On a fresh boot, it looks like this:

sudo systemctl status nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled)
   Active: inactive (dead)

and rpcbind.server looks like this:

sudo systemctl status rpcbind.service
● rpcbind.service - RPC bind service
   Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled)
   Active: active (running) since Mon 2014-11-03 10:54:06 PST; 3 days ago
  Process: 431 ExecStart=/usr/bin/rpcbind -w ${RPCBIND_ARGS} (code=exited, status=0/SUCCESS)
 Main PID: 442 (rpcbind)
   CGroup: /system.slice/rpcbind.service
           └─442 /usr/bin/rpcbind -w

I can do a sudo systemctl start nfs-service.service and everything starts up just fine and dandy:


sudo systemctl status nfs-server.service
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled)
   Active: active (exited) since Fri 2014-11-07 09:01:17 PST; 34s ago
  Process: 4494 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
  Process: 4491 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 4494 (code=exited, status=0/SUCCESS)

Nov 07 09:01:17 mitchelh-linux exportfs[4491]: exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_...mnt".
Nov 07 09:01:17 mitchelh-linux exportfs[4491]: Assuming default behaviour ('no_subtree_check').
Nov 07 09:01:17 mitchelh-linux exportfs[4491]: NOTE: this default has changed since nfs-utils version 1.0.x
Hint: Some lines were ellipsized, use -l to show in full.

Any ideas why nfs-server.service isn't starting?

[1] https://wiki.archlinux.org/index.php/NFS

Last edited by mitch_feaster (2014-11-12 20:43:39)

Offline

#2 2014-11-11 08:06:07

ewigkeit
Member
Registered: 2009-01-06
Posts: 53

Re: [SOLVED] nfs-server.service refuses to autostart despite being enabled

It seems there's a bug if you have enabled NFS-Server and NFS-Client that's preventing the server-part from autostart. After reading the following post, my problem was solved. Maybe it works for you too.

https://bbs.archlinux.org/viewtopic.php?id=184588

Offline

#3 2014-11-12 20:41:28

mitch_feaster
Member
From: San Diego, CA
Registered: 2011-02-27
Posts: 55
Website

Re: [SOLVED] nfs-server.service refuses to autostart despite being enabled

Yep, that fixes it.  Thanks!

Offline

#4 2019-05-11 15:20:25

user1100
Member
Registered: 2019-05-11
Posts: 1

Re: [SOLVED] nfs-server.service refuses to autostart despite being enabled

I have the same issue right now. The above fix doesn't work for me (nfs-client neither started, nor enabled).

systemctl status nfs-server

* nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
uname -a
Linux alarmpi 4.19.37-2-ARCH #1 SMP PREEMPT Fri May 3 01:14:02 UTC 2019 armv7l GNU/Linux

Running

systemctl start nfs-servers

starts the nfs server
-----
any ideas how can I fix it?

Offline

#5 2019-05-11 15:25:16

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] nfs-server.service refuses to autostart despite being enabled

Please do not necrobump, especially threads marked [SOLVED].

In addition, Arch ARM is a separate distribution. Please ask on their forum.

Forum Registration wrote:

These forums are for Arch Linux x86_64 ONLY. Not Antergos, or Apricity, or Manjaro, or any of the "easy Arch installers", nor Arch-ARM; nothing other than vanilla 64-bit Arch Linux. Ask those communities for support. If you have installed Arch, please read the rules before posting. README: Forum Rules.

https://wiki.archlinux.org/index.php/Co … ort_*only*

Closing.

Offline

Board footer

Powered by FluxBB