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 )