Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Unable to access NFS share on Solaris Server from Linux client

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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  
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:
# 3  
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:
# 4  
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
Solaris 10 NFS client cannot mount a share from a Windows server
Hiroshi
I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my /etc/vfstab, then I can mount, but when I create a file by root:root, the file owner changes to...... Solaris
1
Solaris
Can't access NFS Share on Solaris Server from a Linux Client
SunilB2011
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. & then ran the following On the client machine, while running the mount command, I am...... Solaris
0
Solaris
NFS Client unable to access shared DIR's
Amit Kulkarni
I ve a client : <clientname> and a server: <servername> Both of them running: HPUX B.11.31 SERVER outputs: I ve shared a folder in <servername> called /test and the O/P for # exportfs - /test root=<clientname>,rw=<clientname>,ro "" # showmount -e export list for...... HP-UX
6
HP-UX
Access AIX NFS Share from Windows Server 2008
ThePistonDoctor
Hi all, Hopefully this question hasn't been asked a thousand times. I am trying to connect a Windows Server to an exported NFS share which resides on an AIX box. I think the directory is exported correctly from the AIX side but I can't verify that because I didn't do it myself. On the...... AIX
6
AIX
Solaris 9 as a nfs client -- centos as a nfs server.
bruceharbin
Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about...... Solaris
1
Solaris

Featured Tech Videos