Solved

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

Posted on 2014-09-24
7
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 29

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 62

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
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
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 62

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

726 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