View previous topic :: View next topic |
Author |
Message |
BlueFusion Guru

Joined: 08 Mar 2006 Posts: 371
|
Posted: Thu Oct 08, 2015 6:37 pm Post subject: NFS help |
|
|
I can't seem to get an NFS to work between two computers.
NFS server: 10.2.1.12 (phoenix)
NFS client: 10.2.1.10 (area51)
Server side...
Quote: | phoenix ~ # cat /etc/hosts.allow /etc/exports;echo;exportfs -rv
portmap:10.2.1.0/255.255.255.0
lockd:10.2.1.0/255.255.255.0
rquotad:10.2.1.0/255.255.255.0
mountd:10.2.1.0/255.255.255.0
statd:10.2.1.0/255.255.255.0
# /etc/exports: NFS file systems being exported. See exports(5).
/backup 10.2.1.0/24(rw,async,no_subtree_check,no_root_squash)
exporting 10.2.1.0/24:/backup |
On the client side....
fstab entry:
Quote: | phoenix:/backup /mnt/backup nfs rw,hard,intr,rsize=2048,wsize=2048,nfsvers=3 |
Quote: | area51 ~ # showmount -e phoenix
Export list for phoenix:
/backup 10.2.1.0/24
area51 ~ # rpcinfo -p phoenix
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
100024 1 udp 53900 status
100024 1 tcp 40705 status
100005 1 udp 47860 mountd
100005 1 tcp 54482 mountd
100005 2 udp 33905 mountd
100005 2 tcp 43389 mountd
100005 3 udp 54847 mountd
100005 3 tcp 34896 mountd
100003 3 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100003 3 udp 2049 nfs
100227 3 udp 2049 nfs_acl
100021 1 udp 60742 nlockmgr
100021 3 udp 60742 nlockmgr
100021 4 udp 60742 nlockmgr
100021 1 tcp 50424 nlockmgr
100021 3 tcp 50424 nlockmgr
100021 4 tcp 50424 nlockmgr
area51 ~ # mount /mnt/backup -v
mount.nfs: timeout set for Thu Oct 8 14:37:27 2015
mount.nfs: trying text-based options 'hard,intr,rsize=2048,wsize=2048,nfsvers=3,addr=10.2.1.12'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.2.1.12 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.2.1.12 prog 100005 vers 3 prot UDP port 54847
mount.nfs: mount(2): Stale file handle
mount.nfs: trying text-based options 'hard,intr,rsize=2048,wsize=2048,nfsvers=3,addr=10.2.1.12'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.2.1.12 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.2.1.12 prog 100005 vers 3 prot UDP port 54847
mount.nfs: mount(2): Stale file handle
mount.nfs: trying text-based options 'hard,intr,rsize=2048,wsize=2048,nfsvers=3,addr=10.2.1.12'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.2.1.12 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.2.1.12 prog 100005 vers 3 prot UDP port 54847
mount.nfs: mount(2): Stale file handle
<<<repeats>>>
mount.nfs: Connection timed out |
Note: iptables has been disabled on both PCs. |
|
Back to top |
|
 |
kikko Apprentice


Joined: 29 Apr 2014 Posts: 261 Location: Milan, IT
|
Posted: Thu Oct 08, 2015 7:09 pm Post subject: |
|
|
Hi BlueFusion
I'm not an NFS guru (I've always fought with it btw ), but there is something about your hosts.allow file I can't get:
BlueFusion wrote: | Code: | phoenix ~ # cat /etc/hosts.allow
portmap:10.2.1.0/255.255.255.0
lockd:10.2.1.0/255.255.255.0
rquotad:10.2.1.0/255.255.255.0
mountd:10.2.1.0/255.255.255.0
statd:10.2.1.0/255.255.255.0 |
|
some daemons seems missing:
- rpc.statd
- rpcbind
- nfsd ? (not sure about this one)
Regards |
|
Back to top |
|
 |
BlueFusion Guru

Joined: 08 Mar 2006 Posts: 371
|
Posted: Thu Oct 08, 2015 8:24 pm Post subject: |
|
|
Using all of the NFS howtos, these are the only things listed. I've used these files in the past for an NFS v3 server. I haven't used it in a few years, though.
I tried setting in /etc/hosts.allow ALL:ALL, restarted the associated NFS services and it still fails with the same error. |
|
Back to top |
|
 |
kikko Apprentice


Joined: 29 Apr 2014 Posts: 261 Location: Milan, IT
|
Posted: Fri Oct 09, 2015 11:14 am Post subject: |
|
|
hi BlueFusion
have you tried to test port connectivity from "area51"?
Code: | telnet (or nc -vz if you have netcat installed) 10.2.1.12 2049 |
|
|
Back to top |
|
 |
BlueFusion Guru

Joined: 08 Mar 2006 Posts: 371
|
Posted: Fri Oct 09, 2015 12:15 pm Post subject: |
|
|
Yes I am able to connect to the port via telnet.
Quote: | area51 ~ # telnet 10.2.1.12 2049
Trying 10.2.1.12...
Connected to 10.2.1.12.
Escape character is '^]'. |
|
|
Back to top |
|
 |
kikko Apprentice


Joined: 29 Apr 2014 Posts: 261 Location: Milan, IT
|
Posted: Fri Oct 09, 2015 2:28 pm Post subject: |
|
|
I'm really running out of ideas...
Your first error "mount.nfs: mount(2): Stale file handle", could be related to something unclean in kernel's export table
you could try to refresh exports running
I guess you could give it a try
Regards |
|
Back to top |
|
 |
BlueFusion Guru

Joined: 08 Mar 2006 Posts: 371
|
Posted: Sat Oct 10, 2015 6:35 pm Post subject: |
|
|
Nope that didn't help anything.
I'm really at a loss over this one. I've never had issues in the past getting NFS working. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|