Unable to access NFS share on Solaris Server from Linux client | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Unable to access NFS share on Solaris Server from Linux client

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-21-2012
SunilB2011 SunilB2011 is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 9 March 2013, 5:11 AM EST
Posts: 38
Thanks: 41
Thanked 0 Times in 0 Posts
Unable to access NFS share on Solaris Server from Linux client

Hi,

I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server.

On the NFS Server, in /etc/dfs/, I added following line to dfstab file.


Code:
 
share -F nfs -o rw /var/share

& then ran the following


Code:
 
svcadm -v enable -r network/nfs/server

On the client machine, while running the mount command, I am getting the following error.


Code:
 
mount -vt nfs 97.146.133.114:/var/share /nfs_test
mount: trying 97.146.133.114 prog 100003 vers 3 prot tcp port 2049
mount: trying 97.146.133.114 prog 100005 vers 3 prot udp port 32777
mount: 97.146.133.114:/var/share failed, reason given by server: Permission denied

97.146.133.114 is the NFS Server.

Please help me to resolve this issue.

Thanks,
Sunil

Last edited by pludi; 06-21-2012 at 10:54 AM.. Reason: code tags
Sponsored Links
    #2  
Old 06-21-2012
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 25 October 2014, 1:14 AM EDT
Location: /dev/ph
Posts: 4,823
Thanks: 64
Thanked 430 Times in 399 Posts
What happens when you set NFS_CLIENT_VERSMAX=3 in /etc/default/nfs and restart your NFS server?
The Following User Says Thank You to fpmurphy For This Useful Post:
SunilB2011 (06-22-2012)
Sponsored Links
    #3  
Old 06-21-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 24 October 2014, 1:47 PM EDT
Location: Cornwall, UK
Posts: 832
Thanks: 44
Thanked 157 Times in 142 Posts
I've experienced this problem in the past and remember having to fight it.

I recommend that you ease all security until you make is work and then tighten up afterwards. I can confirm that it can be made to work with RHEL.

1.
Start by opening up root access to the Solaris share:


Code:
 
share -F nfs -o rw,root=<RHEL nodename> /var/share

Put the RHEL nodename and its ip address in /etc/hosts

2.
Set the access rights on the Solaris share to 777.
For good measure also set 777 on its parent directory


Code:
 
chmod 777 /var/share
chmod 777 /var

3.
On RHEL try:-

mount <Solaris ip>:/var/share <mount point>

You may also need to try specifying nfs version 2,3 or 4 on the mount command. Try all three versions to test.

Post the results of that.

I think you'll agree that it's easier to troubleshoot from a working position than a non-working position. You can then re-tighten security until you break it.

Hope that helps.

Last edited by hicksd8; 06-21-2012 at 06:10 AM..
The Following User Says Thank You to hicksd8 For This Useful Post:
SunilB2011 (06-22-2012)
    #4  
Old 06-22-2012
SunilB2011 SunilB2011 is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 9 March 2013, 5:11 AM EST
Posts: 38
Thanks: 41
Thanked 0 Times in 0 Posts
MySQL

Quote:
Originally Posted by fpmurphy View Post
What happens when you set NFS_CLIENT_VERSMAX=3 in /etc/default/nfs and restart your NFS server?
Thanks. Your solution worked. The issue is resolved.

---------- Post updated at 11:31 AM ---------- Previous update was at 11:27 AM ----------

Quote:
Originally Posted by hicksd8 View Post
I've experienced this problem in the past and remember having to fight it.

I recommend that you ease all security until you make is work and then tighten up afterwards. I can confirm that it can be made to work with RHEL.

1.
Start by opening up root access to the Solaris share:


Code:
 
share -F nfs -o rw,root=<RHEL nodename> /var/share

Put the RHEL nodename and its ip address in /etc/hosts

2.
Set the access rights on the Solaris share to 777.
For good measure also set 777 on its parent directory


Code:
 
chmod 777 /var/share
chmod 777 /var

3.
On RHEL try:-

mount <Solaris ip>:/var/share <mount point>

You may also need to try specifying nfs version 2,3 or 4 on the mount command. Try all three versions to test.

Post the results of that.

I think you'll agree that it's easier to troubleshoot from a working position than a non-working position. You can then re-tighten security until you break it.

Hope that helps.
Quote:
The issue is resolved by adding NFS_CLIENT_VERSMAX=3 in /etc/default/nfs and restarting the NFS server.

Though I did not try your solution, I appreciate your effort in putting a detailed explaination.

Thanks,
Sunil
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can't access NFS Share on Solaris Server from a Linux Client SunilB2011 Solaris 0 06-21-2012 02:39 AM
NFS share need to mount with tomcat user in client server kpoobathi UNIX for Advanced & Expert Users 0 04-04-2012 11:29 AM
NFS Client unable to access shared DIR's Amit Kulkarni HP-UX 6 02-03-2012 02:28 AM
Access to particular IP's from the solaris/LINUX server pk123 UNIX for Advanced & Expert Users 2 11-16-2009 06:09 AM
how to share the unix file for other client 's access floopw UNIX for Dummies Questions & Answers 2 07-11-2006 01:52 AM



All times are GMT -4. The time now is 08:40 AM.