Re: F25 nfs not starting

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

 



On 07/03/17 20:19, Amadeus W.M. wrote:
> Thank you Tom and Ed for taking the time to help. My F25 was upgraded 
> from F24, where nfs was working perfectly (as well as in all versions 
> before that). Here is my configuration:

No problem.  I enjoy a challenge.
> $ cat /etc/fedora-release 
> Fedora release 25 (Twenty Five)

Same

> $ rpm -q nfs-utils
> nfs-utils-2.1.1-5.rc3.fc25.x86_64

I have
nfs-utils-2.1.1-5.rc4.fc25.x86_64
but that shouldn't make any differenc

> $ cat /etc/sysconfig/nfs | grep -v "#"
> LOCKD_TCPPORT=4001
> LOCKD_UDPPORT=4001
> RPCNFSDARGS="--udp"                     # note this!!!
> RPCMOUNTDOPTS="-p 4002"
> STATDARG="-p 4003"
> SMNOTIFYARGS=""
> RPCIDMAPDARGS=""
> RPCGSSDARGS=""
> GSS_USE_PROXY="yes"
> RPCSVCGSSDARGS=""
> BLKMAPDARGS=""
> RQUOTAD_PORT=4000

Well I have only

RPCNFSDARGS=""
RPCMOUNTDOPTS=""
STATDARGS=""
SMNOTIFYARGS=""
RPCIDMAPDARGS=""
RPCGSSDARGS=""
GSS_USE_PROXY="yes"
BLKMAPDARGS=""

But then I replaced my file with yours and my configuration still works.

> $ systemctl cat nfs-server.service

Mine shows the same as yours except for the [Unit] section since I'm exporting
different than you.

[Unit]
RequiresMountsFor=/opt
RequiresMountsFor=/home/egreshko

>
>
> My firewall is down:

OK, but not important.  Mine is up.

>
> Somehow my nfs seems to be running 

I don't really think so since...

> $ 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: activating (start) since Sat 2017-07-01 19:58:26 EDT; 1 day 
> 12h ago
>   Process: 31864 ExecStopPost=/usr/sbin/exportfs -f (code=exited, 
> status=0/SUCCESS)
>   Process: 31862 ExecStopPost=/usr/sbin/exportfs -au (code=exited, 
> status=0/SUCCESS)
>   Process: 31968 ExecStartPre=/usr/sbin/exportfs -r (code=exited, 
> status=0/SUCCESS)
>  Main PID: 31970 (rpc.nfsd)
>     Tasks: 4 (limit: 4915)
>    CGroup: /system.slice/nfs-server.service
>            ├─25729 /usr/sbin/rpc.nfsd 8
>            ├─27750 /usr/sbin/rpc.nfsd 8
>            ├─31701 /usr/sbin/rpc.nfsd --udp 8
>            └─31970 /usr/sbin/rpc.nfsd --udp 8
>
> Jul 01 19:58:26 alpha systemd[1]: nfs-server.service: Failed with result 
> 'timeout'.
> Jul 01 19:58:26 alpha systemd[1]: Starting NFS server and services...

The "Failed with result 'timeout' is present.

Mine simply reads....

[egreshko@f25f sysconfig]$ 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 Mon 2017-07-03 21:31:24 CST; 8min ago
  Process: 1233 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SU
  Process: 1230 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 1233 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/nfs-server.service

Jul 03 21:31:24 f25f.greshko.com systemd[1]: Starting NFS server and services...
Jul 03 21:31:24 f25f.greshko.com systemd[1]: Started NFS server and services.

>
> $ exportfs
> /data         	192.168.1.0/24
> /opt          	192.168.1.0/24
>
> $ showmount -e
> Export list for alpha:
> /opt  192.168.1.0/24
> /data 192.168.1.0/24

OK....  But can you "cat /etc/exports" to show the options you've chosen?
Mine is....

[egreshko@f25f sysconfig]$ cat /etc/exports
/home/egreshko 192.168.1.0/24(rw,async,no_wdelay,no_root_squash)
/opt 192.168.1.0/24(rw,async,no_wdelay,no_root_squash)

>
> $ rpcinfo -p
>    program vers proto   port  service
>     100000    4   tcp    111  portmapper
>     100000    3   tcp    111  portmapper
>     100000    2   tcp    111  portmapper
>     100000    4   udp    111  portmapper
>     100000    3   udp    111  portmapper
>     100000    2   udp    111  portmapper
>     100003    3   tcp   2049  nfs
>     100003    4   tcp   2049  nfs
>     100227    3   tcp   2049  nfs_acl
>     100024    1   udp   4003  status
>     100024    1   tcp   4003  status
>     100005    1   udp   4002  mountd
>     100005    1   tcp   4002  mountd
>     100005    2   udp   4002  mountd
>     100005    2   tcp   4002  mountd
>     100005    3   udp   4002  mountd
>     100005    3   tcp   4002  mountd

Humm..... I have a few more entries with that....

[egreshko@f25f sysconfig]$ rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp   4002  mountd
    100005    1   tcp   4002  mountd
    100024    1   udp   4003  status
    100005    2   udp   4002  mountd
    100024    1   tcp   4003  status
    100005    2   tcp   4002  mountd
    100005    3   udp   4002  mountd
    100005    3   tcp   4002  mountd
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049  nfs_acl
    100003    3   udp   2049  nfs
    100227    3   udp   2049  nfs_acl
    100021    1   udp  34110  nlockmgr
    100021    3   udp  34110  nlockmgr
    100021    4   udp  34110  nlockmgr
    100021    1   tcp  33955  nlockmgr
    100021    3   tcp  33955  nlockmgr
    100021    4   tcp  33955  nlockmgr


What is your output for "lsmod | grep nfs"?   Mine is...

[root@f25f ~]# lsmod | grep nfs
nfsd                  339968  13
auth_rpcgss            61440  1 nfsd
nfs_acl                16384  1 nfsd
lockd                  90112  1 nfsd
grace                  16384  2 nfsd,lockd
sunrpc                335872  22 auth_rpcgss,nfsd,nfs_acl,lockd
>
>
>
> All that was on the nfs server (called alpha). On another machine now:

I don't think what is on the other machine is much of an issue or importance at this
time.  I think you have the mounts in the other system in your fstab.   Maybe just
comment them out for the time being?



-- 
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