LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nfs server on ubuntu doesn't play nice with nfs client on solaris (https://www.linuxquestions.org/questions/linux-networking-3/nfs-server-on-ubuntu-doesnt-play-nice-with-nfs-client-on-solaris-626508/)

mathiraj 03-07-2008 06:42 PM

nfs server on ubuntu doesn't play nice with nfs client on solaris
 
has anyone faced this situation?

I have a nfs server setup on a ubuntu machine. exportfs shows the following
/tmp <world>
/export <world>


I'm able to access these directories from other linux clients (running auto mounter daemon) by typing "/net/ubuntu-hostname/export"

When I type "/net/ubuntu-hostname/export" from a solaris 10 client, I get "Permission Denied" error.

The following are the two lines from my /etc/exportfs file on the ubuntu machine.
/tmp *(rw,sync,no_subtree_check,insecure)
/export *(rw,sync,no_subtree_check,insecure)

How to setup ubuntu nfs server so that it works with solaris10 clients? Appreciate any help...

Brian1 03-07-2008 08:22 PM

Just curious if there is a firewall up on the ubuntu machine and if so is the needed ports for the services open. NFS4 needs only one and NFS3 needs multiple ports open.

Brian

mathiraj 03-07-2008 11:25 PM

no, there are no firewall on any of the systems. In fact I'm able to access the nfs exports without any problem from other linux systems. Only from Solaris, I get "Permission Denied" error

Brian1 03-08-2008 08:46 AM

Never used Solaris much so no idea. Might try the share like this.
/dvdrw/ *(rw,async,all_squash)

Brian

mathiraj 03-09-2008 09:36 AM

Thanks Brian1. Tried that too. No success.

I also tried out a few more things. Put an OpenSuSE machine and configure it's nfs server exactly same as the Ubuntu one. To my surprise, Solaris clients can access the files shared by OpenSuSE with out any problems. The problem is only when the nfs client machine is Solaris and the nfs server is ubuntu.

Brian1 03-09-2008 11:18 AM

Only other thought is maybe conflict issue with NFS3 to NFS. maybe the ubuntu is NFS4 and Solaris current NFS kernel has no NFS4 support. How to tell I don't know.

Brian

jlliagre 03-09-2008 11:50 AM

Quote:

Originally Posted by Brian1 (Post 3083064)
maybe the ubuntu is NFS4 and Solaris current NFS kernel has no NFS4 support.

It can't be that way. Solaris 10 supports NFSv4 since its first release three years ago.

mathiraj 03-10-2008 06:13 PM

i'm guessing it has to do something with some settings/flags for the nfs server on ubuntu. Since, I'm no NFS expert, I can't figure this out

jlliagre 03-10-2008 06:26 PM

I would suggest you to use Wireshark to snoop the NFSv4 traffic between both of the Ubuntu an OpenSuse boxes and the Solaris one. Comparing them should help figuring out what's wrong.

jiri 09-14-2009 10:15 AM

Problem solved
 
Hi all, 6 months too late. I ran into the same problem, mostly getting "security mode does not match the server exporting".
There is a nice writeup on the issue and how to fix it and get the machines talking to each other. Unfortunately I can't yet post a url, so I'll follow up on this

Jiri

mathiraj 09-15-2009 11:52 AM

got it to work
 
looks like Solaris uses NFS version 4 and Linux uses NFS version 3

So, I set "NFS_CLIENT_VERSMAX=3" on solaris on /etc/default/nfs

and I can now access NFS server on Linux from a Solaris NFS Client

jiri 09-15-2009 02:08 PM

Solution link
 
Sorry, beeing a newbie here, I couldn't post a link yesterday, so here it is. This guy apparently knows his stuff:
http://blogs.sun.com/tdh/entry/some_...nteractions_at

The only thing I was missing was sec=sys in my exports as in
spot.home.net(rw,sec=sys,insecure,nohide,no_subtree_check)

Jiri


All times are GMT -5. The time now is 08:49 AM.