1822147 Members
4147 Online
109640 Solutions
New Discussion юеВ

NFS mount not working

 
Craig A. Sharp
Super Advisor

NFS mount not working

I have an exported directory on one system. I am mounting this directory on another. The system that I am mounting the directory on, is telling me that I do not have permission to mount the directory from the server.
I have verified that the /etc/exports file on the server has the entry for the client system. I have also checked that the hosts file has the entry for the client system and vice versa. The client is mounting other directories from the server already.

Here is the exports file from the server:
/fdisk1 -anon=65534,root=anatrol:kelvin:newton:hertz:tesla:einstein:lagrange:fourier:IRIS
/projects -anon=65534,root=anatrol:kelvin:tesla:hertz:newton:einstein:lagrange:fourier:IRIS
/projects2 -anon=65534,root=anatrol:kelvin:tesla:newton:hertz:einstein:lagrange:fourier:IRIS
/projects3 -anon=65534,root=anatrol:newton:hertz:fourier:kelvin:tesla:lagrange:einstein:IRIS
/projects5 -anon=65534,root=anatrol:newton:hertz:fourier:kelvin:tesla:einstein:lagrange:IRIS

I am trying to mount projects3. The entries are identical for each export and projects3 is the only one that does not work.

The export worked at one time. The drive died and had to be replaced and now the export and mount does not work.

Thanks

Craig A. Sharp
Unix Systems Administrator
Roush Industries, Inc.

9 REPLIES 9
Andreas Voss
Honored Contributor

Re: NFS mount not working

Hi,

on your server do:
exportfs -a
This will reexport your /etc/exports.

Regards
Stefan Schulz
Honored Contributor

Re: NFS mount not working

sounds like the /projekts3 is not really exported. Run the command exportfs on the server without options. This returns a list of all exported filesystems.

If /projekts3 is not on the list, run exportfs -a to reexport all filesystems or exportfs /projekts3 to export only this filesystem.

Hope this helps.

Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Byron Myers
Trusted Contributor

Re: NFS mount not working

Craig, You may also have a stale NFS handle on your client. Another thing to try is to stop and restart NFS on the server and client.
"/sbin/init.d/nfs.client stop" and
"/sbin/init.d/nfs.server stop" then
"/sbin/init.d/nfs.client start" and
"/sbin/init.d/nfs.servert start"

First do this on the server, then the client.
Then re-export on the nfs server
"exportfs -a"
Then re-mount on the client if the mount is in fstab - otherwise, the restart above of automounter on the client should pick up the server exports.
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.
Ade Jinadu
Occasional Advisor

Re: NFS mount not working

With this kind of a situation,it is sometimes necessary to unexport the particular filesystem first. So here is a sequent that might help:
unexport the filesystem,
unmount the filesystem,
remount the filesystem,
reexport the filesystem
and try to mount it on the client.

Hope this helps.
Run Unix
Ade Jinadu
Occasional Advisor

Re: NFS mount not working

With this kind of a situation,it is sometimes necessary to unexport the particular filesystem first. So here is a sequent that might help:
unexport the filesystem,
unmount the filesystem,
remount the filesystem,
reexport the filesystem
and try to mount it on the client.

Hope this helps.
Run Unix
Ade Jinadu
Occasional Advisor

Re: NFS mount not working

With this kind of a situation,it is sometimes necessary to unexport the particular filesystem first. So here is a sequent that might help:
unexport the filesystem,
unmount the filesystem,
remount the filesystem,
reexport the filesystem
and try to mount it on the client.

Hope this helps.
Run Unix
Ade Jinadu
Occasional Advisor

Re: NFS mount not working

With this kind of a situation,it is sometimes necessary to unexport the particular filesystem first. So here is a sequent that might help:
unexport the filesystem,
unmount the filesystem,
remount the filesystem,
reexport the filesystem
and try to mount it on the client.

Hope this helps.
Run Unix
Devbinder Singh Marway
Valued Contributor

Re: NFS mount not working

Another thing to try is do a fuser and check what processes are running . If one is there from previous state ( i.e. NFS mounted) kill it off , if it does not die force the kill ( kill -9)

if this is successfull and no processes are running against this filesystem then retry the mount . If this does not work then try stopping and starting NFS daemons ( when suitable) and retry the mount.

It may be that you may need to reboot the server ????

HTH
Seek and you shall find
Devbinder Singh Marway
Valued Contributor

Re: NFS mount not working

Another thing to try is do a fuser and check what processes are running . If one is there from previous state ( i.e. NFS mounted) kill it off , if it does not die force the kill ( kill -9)

if this is successfull and no processes are running against this filesystem then retry the mount . If this does not work then try stopping and starting NFS daemons ( when suitable) and retry the mount.

It may be that you may need to reboot the server ????

HTH
Seek and you shall find