Solved

Command to mount nfs share just hangs there on the command line

Posted on 2014-09-24
7
137 Views
Last Modified: 2015-10-12
I'm just trying to mount an nfs share. Client: Ubuntu 14.04 to  Server: Ubuntu 12.04.
nfs-kernel-server is installed on the server and /etc/exports is set up. nfs-common is installed on the client.

showmount -e 192.168.0.142 shows the correct shares

The following command
jaga@surveillance:~$ sudo mount -v -t nfs  192.168.0.142:/home/jaga/NetBackup/ZM_Backup /ZM_Backup
gives
mount.nfs: timeout set for Wed Sep 24 21:52:50 2014
mount.nfs: trying text-based options 'vers=4,addr=192.168.0.142,clientaddr=192.168.0.70'
then just hangs there.

if I use -o nfsver=3 it gives

portmap query failed: RPC: Timed out


I have tried installing all updates and restarting the nfs-kernel-server several times. I have also tried changing the ownership of the share and creating a test share.
0
Comment
Question by:Jeff swicegood
7 Comments
 
LVL 27

Expert Comment

by:serialband
ID: 40344266
That means that it either can't find the remote system or your system is blocked from mounting nfs.

What does the following command return?

showmount 192.168.0.142
0
 
LVL 44

Expert Comment

by:Darr247
ID: 40344374
Check for (gigabit ethernet option) Jumbo Frame mismatches between the client and remote systems.
e.g. If the client is set to 9KB frames, set it back to 1500 bytes, restart the client's network service, then retry the NFS mount.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40344457
check rpcionfo -p 192.168.0.142

it should show at least mountd and nfsd, and you should clearly see which versions/protocols are provided.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 1

Author Comment

by:Jeff swicegood
ID: 40344737
jaga@surveillance:~$ showmount  192.168.0.142
Hosts on 192.168.0.142:
192.168.0.109
192.168.0.120
192.168.0.126
192.168.0.128
192.168.0.130
192.168.0.131
192.168.0.133
192.168.0.138
192.168.0.140
192.168.0.145
192.168.0.163
192.168.0.166
192.168.0.180
192.168.0.182
192.168.0.192
192.168.0.193
192.168.0.43
192.168.0.46
192.168.0.53

I do not recognize these as actual clients on the network.


jaga@surveillance:~$ rpcinfo -p 192.168.0.142
   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  59381  status
    100024    1   tcp  56385  status
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049
    100227    3   tcp   2049
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    2   udp   2049
    100227    3   udp   2049
    100021    1   udp  46534  nlockmgr
    100021    3   udp  46534  nlockmgr
    100021    4   udp  46534  nlockmgr
    100021    1   tcp  54478  nlockmgr
    100021    3   tcp  54478  nlockmgr
    100021    4   tcp  54478  nlockmgr
    100005    1   udp  56672  mountd
    100005    1   tcp  60918  mountd
    100005    2   udp  48698  mountd
    100005    2   tcp  38326  mountd

Both client and server have the same MTU 1500
0
 
LVL 61

Expert Comment

by:gheist
ID: 40345439
nfs v2/3/4 tcp or udp
0
 
LVL 1

Accepted Solution

by:
Jeff swicegood earned 0 total points
ID: 40346756
Well, I had done everything except restarting the server. After restarting the server, it's fixed.
0
 
LVL 1

Author Closing Comment

by:Jeff swicegood
ID: 41035598
All I needed to do was restart the server.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now