LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2008, 06:42 PM   #1
mathiraj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
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...
 
Old 03-07-2008, 08:22 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 03-07-2008, 11:25 PM   #3
mathiraj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 03-08-2008, 08:46 AM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

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

Brian

Last edited by Brian1; 03-08-2008 at 08:47 AM.
 
Old 03-09-2008, 09:36 AM   #5
mathiraj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 03-09-2008, 11:18 AM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 03-09-2008, 11:50 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Brian1 View Post
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.
 
Old 03-10-2008, 06:13 PM   #8
mathiraj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 03-10-2008, 06:26 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 09-14-2009, 10:15 AM   #10
jiri
LQ Newbie
 
Registered: Sep 2009
Location: Colorado
Distribution: Ubuntu, OpenSolaris
Posts: 3

Rep: Reputation: 0
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
 
Old 09-15-2009, 11:52 AM   #11
mathiraj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 09-15-2009, 02:08 PM   #12
jiri
LQ Newbie
 
Registered: Sep 2009
Location: Colorado
Distribution: Ubuntu, OpenSolaris
Posts: 3

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
SUSE NFS client can't detect an NFS server RedBoot SUSE / openSUSE 4 01-19-2009 11:56 PM
LXer: NFS Server and Client Configuration in Ubuntu LXer Syndicated Linux News 0 05-08-2007 06:01 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration