Re: F25 nfs not starting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/04/17 02:30, Tom H wrote:
> [root@localhost ~]# cat /etc/sysconfig/nfs
> RPCNFSDARGS="--udp"
>
>
> [root@localhost ~]# systemctl restart nfs-server.service
> Job for nfs-server.service canceled.
>
>
> [root@localhost ~]# 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: failed (Result: exit-code) since Mon 2017-07-03 14:04:48 EDT; 6s ago
>   Process: 1005 ExecStopPost=/usr/sbin/exportfs -f (code=exited,
> status=0/SUCCESS)
>   Process: 1004 ExecStopPost=/usr/sbin/exportfs -au (code=exited,
> status=0/SUCCESS)
>   Process: 993 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
>   Process: 1003 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS
> (code=exited, status=2)
>   Process: 1002 ExecStartPre=/usr/sbin/exportfs -r (code=exited,
> status=0/SUCCESS)
>  Main PID: 1003 (code=exited, status=2)
>
> Jul 03 14:04:48 localhost.localdomain rpc.nfsd[1003]: Invalid argument: '?'
> Jul 03 14:04:48 localhost.localdomain rpc.nfsd[1003]: Usage:
> Jul 03 14:04:48 localhost.localdomain rpc.nfsd[1003]: rpc.nfsd
> [-d|--debug] [-H hostname] [-p|-P|--port port]
> Jul 03 14:04:48 localhost.localdomain rpc.nfsd[1003]:
> [-N|--no-nfs-version version] [-V|--nfs-version version]
> Jul 03 14:04:48 localhost.localdomain rpc.nfsd[1003]:    [-s|--syslog]
> [-t|--tcp] [-T|--no-tcp] [-u|--udp] [-U|--no-udp]
> Jul 03 14:04:48 localhost.localdomain rpc.nfsd[1003]:    [-r|--rdma=]
> [-G|--grace-time secs] [-L|--leasetime secs] nrservs
> Jul 03 14:04:48 localhost.localdomain systemd[1]: nfs-server.service:
> Main process exited, code=exited, status=2/INVALIDARGUMENT
> Jul 03 14:04:48 localhost.localdomain systemd[1]: Stopped NFS server
> and services.
> Jul 03 14:04:48 localhost.localdomain systemd[1]: nfs-server.service:
> Unit entered failed state.
> Jul 03 14:04:48 localhost.localdomain systemd[1]: nfs-server.service:
> Failed with result 'exit-code'.


Odd....  I cannot reproduce this error.

[root@f25f ~]# cat /etc/sysconfig/nfs
RPCNFSDARGS="--udp"

[root@f25f ~]# systemctl restart nfs-server
[root@f25f ~]#

[root@f25f ~]# systemctl status nfs-server
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor pres
  Drop-In: /run/systemd/generator/nfs-server.service.d
           └─order-with-mounts.conf
   Active: active (exited) since Tue 2017-07-04 07:28:45 CST; 51s ago
  Process: 2136 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 2132 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 2131 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
  Process: 2151 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SU
  Process: 2148 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 2151 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/nfs-server.service

Jul 04 07:28:45 f25f.greshko.com systemd[1]: Starting NFS server and services...
Jul 04 07:28:45 f25f.greshko.com systemd[1]: Started NFS server and services.


Could you have a non-printable character in your /etc/sysconfig/nfs file?

root@f25f ~]# od -bc /etc/sysconfig/nfs
0000000 122 120 103 116 106 123 104 101 122 107 123 075 042 055 055 165
          R   P   C   N   F   S   D   A   R   G   S   =   "   -   -   u
0000020 144 160 042 012
          d   p   "  \n
0000024

-- 
Fedora Users List - The place to go to speculate endlessly

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux