Solved

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

Posted on 2014-09-24
7
147 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 28

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
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Codiing Non-Existent Links 4 65
Fixing Non-Standard characters in text 8 91
Access_log 17 99
How to make a Bash alias that takes parameters 5 28
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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.

911 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

25 Experts available now in Live!

Get 1:1 Help Now