Solved

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

Posted on 2014-09-24
7
207 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 30

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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

617 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