Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-09-24
7
Medium Priority
?
256 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 31

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

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…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

876 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