NFS hangs on mount
I am trying to mount a directory using NFS. The directory is on a separate partition and I am sharing its mount point.
When I try to mount the shared directory on a client (even if that client is the same machine as the server), the mount command hangs (seemingly) forever (I have let it run for 6 hours before stopping it). The disk containing the shared data does have a lot of data (about 4TB) on it, but I don't think the server should have to examine all that data to mount it remotely. Is there anything I can do to make this work? I am on Fedora 17 x64 My /etc/exports: Code:
/media/Data/Media 127.0.0.1(ro,nohide) Also note that the drive is mounted at /media/Data and Media is a subdirectory on that drive. Let me know what extra information I can provide (I don't know much about NFS). |
What do you get from these commands on the server?
Code:
showmount -e |
This is what I get (note that this is before any mount commands have been issued after starting the server fresh, selinux is in permissive mode and the firewall is turned off)
EDIT: I also tried with selinux disabled and nothing changed Code:
% showmount -e |
Change:
Code:
/media/Data/Media 127.0.0.1(ro,nohide) Code:
/media/Data/Media *(ro,nohide) http://h10025.www1.hp.com/ewfrf/wc/d...name=c02073470 |
Ok I tried what you said (changing /etc/exports and using a different machine) and I get the same problem. The client is Linux Mint 15 x64 and the mount hangs indefinitely.
I also tried exporting my home directory, so my /etc/exports now reads Code:
/media/Data/Media *(ro,nohide) Just to be clear I am mounting on the client using Code:
# Hangs forever |
/media/Data/Media *(rw,sync,no_root_squash) #you can change rw to ro if you want
/home/mehrlich *(rw,sync,no_root_squash) try this on your exports mate, then restart nfs server and retry mounting again on your client |
Why can't you use automounts? This will mount on demand and will stop that hang issue.
|
All times are GMT -5. The time now is 10:07 AM. |