Cannot mount NFS, command hangs and no feedback why

Status
Not open for further replies.

Dewey

Dabbler
Joined
Dec 19, 2016
Messages
14
I've been banging my head against a wall on this one and just can not for the life of me figure out why this isn't working. I've got FreeNAS installed on a dedicated box. Decent storage and works fine with iSCSI and CIFS, with LACP with two interfaces. However I'm trying to get NFS working with its own mount, everything looks fine on the server, but when I connect the mount command hangs and will time out. On the server is the following exports:
Code:
showmount -e 192.168.13.41									
Export list for 192.168.13.41:
/mnt/HotSwapSpindleDisks/nova 192.168.13.0

Now I have tried both with and without NFSv4 and mounting with just NFSv3, to no avail, exact same response. Speaking of, here is what I'm doing/seeing.
Code:
# time sudo mount -t nfs4 -v -v -v -v -o tcp 192.168.13.41:/ /mnt/nfs
[sudo] password for user: 
mount.nfs4: timeout set for Thu Dec 29 20:50:59 2016
mount.nfs4: trying text-based options 'tcp,vers=4.2,addr=192.168.13.41,clientaddr=192.168.13.108'
mount.nfs4: mount(2): Connection timed out
mount.nfs4: Connection timed out
sudo mount -t nfs4 -v -v -v -v -o tcp 192.168.13.41:/ /mnt/nfs  0.02s user 0.00s system 0% cpu 4:24.56 total

On the server I've enabled Log mountd requests and Log rpc.statd and rpc.lockd
Code:
Dec 29 21:42:20 freenas notifier: Starting rpcbind.
Dec 29 21:42:20 freenas notifier: Starting mountd.
Dec 29 21:42:20 freenas notifier: NFSv4 is disabled
Dec 29 21:42:20 freenas notifier: Starting nfsd.
Dec 29 21:42:21 freenas notifier: Starting statd.
Dec 29 21:42:21 freenas nfsd: can't register svc name
Dec 29 21:42:21 freenas notifier: Starting lockd.
Dec 29 21:42:40 freenas mountd[7571]: export request succeeded from 192.168.13.108

It logs the showmount but not the mount attempt. I did also run a traceroute and saw request go out, but nothing comes back. What am I missing and why is NFS not responding on a mount request. Any help would be greatly appreciated.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
The only time I've seen this is if there is a firewall between the client and server. Do you have a firewall between the two devices?

If there is a firewall, you need to set mountd, rpc.statd and rpc.lockd port numbers in the NFS service and allow that traffic through the firewall.
 

Dewey

Dabbler
Joined
Dec 19, 2016
Messages
14
@dlavigne No, this is still an issue.

@m0nkey_ There is no firewall between the client and server. I've ran nmap to verify the ports and they are all open.

It looks like there might be something wrong with the LACP. We unplugged 1 of 2 ports and while one port failed to connect, when we switched to the other port is mounted fine. I will admit, I know what LACP does and and does not do, but I have never set it up before. It's possible that I misconfigured the switch (Cisco small business SLM2008T-NA) but even they made that really easy, so I'm not sure why it would be wrong. If it turns out that LACP is misconfigured, it then doesn't make sense to me why web admin, ssh, and CIFS work fine while NFS doesn't.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Disable lacp you probably set it up wrong.

Your mount command is wrong, you need to have server:/mnt/pool/dataset as the source. You are trying to mount the root directory in your example.


Sent from my Nexus 5X using Tapatalk
 

Dewey

Dabbler
Joined
Dec 19, 2016
Messages
14
@SweetAndLow The mount command was for NFS vers 4. I did try the other command which was:
mount -t nfs -o vers=3 192.168.13.41:/mnt/HotSwapSpindleDisks/nova /mnt/nfs/

So I've disabled LACP on both FreeNAS and the Cisco Switch. I've git the box back on the network and services running just fine. I attempt to mount with the command:
mount -t nfs -o vers=3 192.168.13.41:/mnt/HotSwapSpindleDisks/nova /mnt/nfs/
I have to specify version 3 because otherwise it defaults to 4 and hangs. On FreeNAS I see:
Code:
Jan  6 19:20:58 freenas mountd[2211]: mount request succeeded from 192.168.13.49 for /mnt/HotSwapSpindleDisks/nova

however the client just hangs and acts like nothing is happening and eventually times out. I have verified that FreeNAS can ping the client. But I see no logs or feedback on either the server or client to figure out why the timeout is happening. I have made sure that on the client any firewall and selinux is disabled. There shouldn't be anything blocking NFS.
 
Status
Not open for further replies.
Top