Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NFS - using a dedicated port

Status
Not open for further replies.

djr111

Technical User
Aug 5, 2006
357
US
What I am attempting to do is connect to a Sun box that is sharing out a NFS share.


I had to do this with other Sun boxes by using the 'public' option within the 'mount' utility. Unfortunately I have to do it this way because of firewall issues.

kind of like:

mount -F NFS -o public,tcp,.....

connecting from sun box to sun box works just fine.

Im now trying to mount the NFS on a linux box, but I am not sure if I will be able to do that.

I need to connect to port 2049, so I tried the 'port' option within mount utility for linux. did not work.








 
try the option

mountport=2049

Anyway, 2049 is the standard NFS port on linux so it should work; have you checked iptables rules? Is NFS running with all its needed daemons (portmap, netfs, nfslock, nfs)?

Cheers

QatQat

Life is what happens when you are making other plans.
 
The reason for port 2049 is because of the Solaris machines. Network security only wanted us to use one port.

when using the 'public' option in solaris's version of NFS. it no longer uses port mapper to assign the port, but instead defaults to port 2049 (default NFS port). and then is able to connect as needed.

I have tried using the following, but it does not seem to work

mount -t nfs -o rw,hard,nointr,rsize=8192,wsize=8192,tcp,mountport=2049 servername:/export/storage /export/servername/storage

I also tried adding the option 'port='


I know the nfs client is running fine because I did test it by mounting a FS from another server on the same subnet, with the same structure of the command above.


thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top