LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2014, 08:12 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
Question NFS4, showmount rpc errors yet directories are mounted.


i'm running Scientific Linux 6.5 ( aka Centos 6.5) and attempting to export directories over NFS4 over to Fedora 20.

host where i'm exporting from is "server" and the client is "toshiba". I took iptables down on both hosts:
Code:
[root@toshiba ~]# service iptables status
Redirecting to /bin/systemctl status  iptables.service
iptables.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
[root@server ~]# service iptables status
iptables: Firewall is not running.

Server config:
[root@server ~]# ip addr
<cut>
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether <cut>
    inet 192.168.1.204/24 brd 192.168.1.255 scope global eth0

Client:
[root@toshiba ~]# ip addr
<cut>
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 2<cut>
    inet 192.168.1.101/24 brd 192.168.1.255 scope global wlp2s0

[root@toshiba ~]# traceroute server
traceroute to server (192.168.1.204), 30 hops max, 60 byte packets
 1  server (192.168.1.204)  1.113 ms  1.160 ms  1.929 ms

[root@toshiba ~]# cat /etc/hosts
127.0.0.1   toshiba toshiba.home 
::1         toshiba toshiba.home
192.168.1.204 server server.home

Nmap scan report for server (192.168.1.204)
Host is up (0.0011s latency).
Not shown: 993 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
2049/tcp open  nfs
5432/tcp open  postgresql
6000/tcp open  X11
MAC Address: <cut> (Giga-byte Technology Co.)

Nmap done: 1 IP address (1 host up) scanned in 36.11 seconds

[root@toshiba ~]# rpcinfo -p server
   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    4   tcp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  32774  nlockmgr
    100021    3   udp  32774  nlockmgr
    100021    4   udp  32774  nlockmgr
    100021    1   tcp  32808  nlockmgr
    100021    3   tcp  32808  nlockmgr
    100021    4   tcp  32808  nlockmgr

[root@toshiba ~]# showmount -a server
clnt_create: RPC: Program not registered

[root@toshiba ~]# mount -vv -t nfs4 server:/mnt/storage/Video /media
mount.nfs4: timeout set for Sat Nov 29 20:53:49 2014
mount.nfs4: trying text-based options 'addr=192.168.1.204,clientaddr=192.168.1.101'
[root@toshiba ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
<cut>
server:/mnt/storage/Video on /media type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.101,local_lock=none,addr=192.168.1.204)
Yet, in the messages on toshiba(client) i see:
Code:
Nov 29 21:16:25 toshiba kernel: [24457.776551] RPC: AUTH_GSS upcall failed. Please check user daemon is running.
Nov 29 21:16:25 toshiba kernel: RPC: AUTH_GSS upcall failed. Please check user daemon is running.
ls -l /media - i can see files.


All right, lets go over to the server:

Code:
[root@server ~]# rpcinfo server
   program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::.0.111               portmapper superuser
    100000    3    udp6      ::.0.111               portmapper superuser
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /var/run/rpcbind.sock  portmapper superuser
    100000    3    local     /var/run/rpcbind.sock  portmapper superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    udp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp6      ::.8.1                 nfs        superuser
    100003    4    udp6      ::.8.1                 nfs        superuser
    100021    1    udp       0.0.0.0.128.6          nlockmgr   superuser
    100021    3    udp       0.0.0.0.128.6          nlockmgr   superuser
    100021    4    udp       0.0.0.0.128.6          nlockmgr   superuser
    100021    1    tcp       0.0.0.0.128.40         nlockmgr   superuser
    100021    3    tcp       0.0.0.0.128.40         nlockmgr   superuser
    100021    4    tcp       0.0.0.0.128.40         nlockmgr   superuser
    100021    1    udp6      ::.128.6               nlockmgr   superuser
    100021    3    udp6      ::.128.6               nlockmgr   superuser
    100021    4    udp6      ::.128.6               nlockmgr   superuser
    100021    1    tcp6      ::.128.40              nlockmgr   superuser
    100021    3    tcp6      ::.128.40              nlockmgr   superuser
    100021    4    tcp6      ::.128.40              nlockmgr   superuser

[root@server ~]# service nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 5658) is running...
nfsd (pid 5666) is running...
[root@server ~]# service rpcbind status
rpcbind (pid  5527) is running...
[root@server ~]# ps -ef | grep rpc
root      1739     2  0 Nov14 ?        00:00:00 [rpciod/0]
root      1740     2  0 Nov14 ?        00:00:00 [rpciod/1]
root      1741     2  0 Nov14 ?        00:00:00 [rpciod/2]
root      1742     2  0 Nov14 ?        00:00:00 [rpciod/3]
root      1743     2  0 Nov14 ?        00:00:00 [rpciod/4]
root      1744     2  0 Nov14 ?        00:00:00 [rpciod/5]
root      1745     2  0 Nov14 ?        00:00:00 [rpciod/6]
root      1746     2  0 Nov14 ?        00:00:00 [rpciod/7]
rpcuser   1752     1  0 Nov14 ?        00:00:00 rpc.statd -p 662 -o 2020
rpc       5527     1  0 20:15 ?        00:00:00 rpcbind
root      5658     1  0 20:17 ?        00:00:00 rpc.mountd -p 892 --no-nfs-version 2 --no-nfs-version 3
root      5689     1  0 20:17 ?        00:00:00 rpc.idmapd
root      5925  4704  0 20:54 pts/0    00:00:00 grep rpc

[root@server ~]# date
Sat Nov 29 20:55:12 EST 2014

[root@server ~]# cat /etc/exports 
/mnt/storage/Video 192.168.1.150(ro,async,anonuid=1000,anongid=1000) 192.168.1.101(rw,async)

[root@server ~]# export -ra
export    exportfs  
[root@server ~]# exportfs -ra


[root@server ~]# grep -v ^# /etc/sysconfig/nfs 
MOUNTD_NFS_V2="no"
MOUNTD_NFS_V3="no"
LOCKD_TCPPORT=32808
LOCKD_UDPPORT=32774
RPCNFSDARGS="-N 2 -N 3"
RPCNFSDCOUNT=1
MOUNTD_PORT=892
STATD_PORT=662
STATD_OUTGOING_PORT=2020

[root@server ~]# 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    4   tcp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  32774  nlockmgr
    100021    3   udp  32774  nlockmgr
    100021    4   udp  32774  nlockmgr
    100021    1   tcp  32808  nlockmgr
    100021    3   tcp  32808  nlockmgr
    100021    4   tcp  32808  nlockmgr

[root@server ~]# showmount -e server
clnt_create: RPC: Program not registered
[root@server ~]# showmount -e localhost
clnt_create: RPC: Program not registered
[root@server ~]# showmount -e lo
clnt_create: RPC: Unknown host
[root@server ~]# showmount -e 192.168.1.204
clnt_create: RPC: Program not registered
[root@server ~]# showmount -e 127.0.0.1
clnt_create: RPC: Program not registered

[root@server ~]# cat /etc/hosts.allow 

#portmap: 192.168.1.150 , 192.168.1.101
rpcbind: 192.168.1.150, 192.168.1.101
[root@server ~]# cat /etc/hosts.deny 
portmap:ALL
I'm not sure if i can/should/permit to use rpcbind and (mix it with) portmap in hosts.* files?
And i have no idea why i'm getting that error during showmount on both server and client, yet i can mount it on the client (toshiba).

any ideas are very much welcome, because i'm in the deep ... mmmm.... corner ( let's put it midly )

Last edited by DBabo; 11-29-2014 at 08:44 PM.
 
Old 11-29-2014, 08:43 PM   #2
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
ahhhh. showmount does NOT work with v4 . it has to have V2/3 enabled. this is great (sarcasm)....

so how do i know what is exported from the server then?

P.S. Here is the confirmation of that. Yet another problem is that the err message i've got ("clnt_create: RPC: Program not registered") is different and misleading. Showmount version o have is 1.2.3 from nfs-utils-1.2.3-39.el6.x86_64

Last edited by DBabo; 11-29-2014 at 09:53 PM.
 
Old 12-02-2014, 01:16 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Filed https://bugzilla.redhat.com/show_bug.cgi?id=1169939 as per maintainer's suggestion.
 
  


Reply

Tags
nfs4, rpc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no access to directories on nfs-mounted disk jeppe_99@maxiom.se Linux - Server 2 05-27-2012 03:00 AM
[SOLVED] vsftpd cannot access NFS-mounted directories guertin Linux - Server 7 05-18-2012 01:21 PM
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 02:14 AM
FC6 broken with NFS-mounted /home directories? skellert Fedora 2 11-02-2006 10:37 PM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration