Unable to access NFS share on Solaris Server from Linux client

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 06-21-2012
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 11:54 AM.. Reason: code tags
# 2  
Old 06-21-2012
What happens when you set NFS_CLIENT_VERSMAX=3 in /etc/default/nfs and restart your NFS server?
This User Gave Thanks to fpmurphy For This Post:
SunilB2011 (06-22-2012)
# 3  
Old 06-21-2012
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 07:10 AM..
This User Gave Thanks to hicksd8 For This Post:
SunilB2011 (06-22-2012)
# 4  
Old 06-22-2012
MySQL

Quote:
Originally Posted by fpmurphy
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
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
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Unable to search NFS Share jgt IP Networking 5 12-21-2018 03:38 PM
Unable to access the CIFS share folder on windows by IP Abu_SM Windows & DOS: Issues & Discussions 4 01-16-2018 03:59 AM
Solaris 10 NFS client cannot mount a share from a Windows server Hiroshi Solaris 1 02-08-2017 07:07 PM
Mount NFS Share On NFS Client via bash script. Brian.t Shell Programming and Scripting 4 03-13-2016 11:03 AM
NFS share full access for local user shyam2j Red Hat 1 04-01-2015 08:14 AM
Unable to write to a mounted NFS share Rossdba UNIX for Dummies Questions & Answers 4 09-15-2014 04:07 PM
Can't access NFS Share on Solaris Server from a Linux Client SunilB2011 Solaris 0 06-21-2012 03:39 AM
Not able to mount NFS share on client side srinathk Red Hat 12 02-10-2012 08:43 PM
NFS Client unable to access shared DIR's Amit Kulkarni HP-UX 6 02-03-2012 03:28 AM
can not mount from aix client to linux nfs server victorcheung AIX 1 11-30-2010 06:37 AM
Access AIX NFS Share from Windows Server 2008 ThePistonDoctor AIX 6 08-04-2010 06:00 PM
Solaris 9 as a nfs client -- centos as a nfs server. bruceharbin Solaris 1 07-23-2010 06:03 PM
NFS Server FC7 Solaris client problems! joerg Linux 3 07-12-2007 06:34 PM
how to share the unix file for other client 's access floopw UNIX for Dummies Questions & Answers 2 07-11-2006 02:52 AM
Unable to mount NFS share during boot jlslhills AIX 0 08-09-2005 03:55 PM