Unable to access NFS share on Solaris Server from Linux client

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Unable to access NFS share on Solaris Server from Linux client
# 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:
# 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:
# 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 Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Unable to search NFS Share

My customer has created a share on a Windows Server 2012 system and exported it as a NFS share. I can mount the share on a SCO system, but I only have read/write access. So I am unable to list the contents of the share. It is as if the directories had 0666 permissions. My customer says that this... (5 Replies)
Discussion started by: jgt
5 Replies

2. Solaris

Solaris 10 NFS client cannot mount a share from a Windows server

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... (1 Reply)
Discussion started by: Hiroshi
1 Replies

3. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

4. Solaris

Can't access NFS Share on Solaris Server from a 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. & then ran the following On the client machine, while running the mount command, I am... (0 Replies)
Discussion started by: SunilB2011
0 Replies

5. Red Hat

Not able to mount NFS share on client side

When i tried to mount the nfs i see this error message mount -t nfs 192.168.20.194:/remote/proj1 /nfsmount mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied and the /etc/exports file in the host side looks like this /remote/proj1 ... (12 Replies)
Discussion started by: srinathk
12 Replies

6. HP-UX

NFS Client unable to access shared DIR's

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... (6 Replies)
Discussion started by: Amit Kulkarni
6 Replies

7. AIX

can not mount from aix client to linux nfs server

Hi, I am trying to mount a nfs folder from AIX client to Linux NFS Server, but I got the following error: # mount 128.127.11.121:/aix /to_be_del mount: 1831-010 server 128.127.11.121 not responding: RPC: 1832-018 Port mapper failure - RPC: 1832-008 Timed out mount: retrying... (1 Reply)
Discussion started by: victorcheung
1 Replies

8. AIX

Access AIX NFS Share from Windows Server 2008

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... (6 Replies)
Discussion started by: ThePistonDoctor
6 Replies

9. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

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... (1 Reply)
Discussion started by: bruceharbin
1 Replies

10. Linux

NFS Server FC7 Solaris client problems!

Hi, my problem is that I am not able to grand the nfs directory on a Fedora 7 server to a standard solaris client. I always got the messages no permission. Important: No change on the client (Solaris) is possible! So I am not able to change the NFS Version on the client side to force the... (3 Replies)
Discussion started by: joerg
3 Replies
Login or Register to Ask a Question