Solved

nfs error: reason given by server: Permission denied

Posted on 2010-09-07
16
3,315 Views
Last Modified: 2013-12-15
I am trying to mount a nfs filesystem confiugred on rhel4 server on a rhel5 server. I have added the mountpoint in /etc/exports file & have done exportfs -arv. But when i am trying the mount the filesystem on rhel5 system it is giving :

mount: epoaqa01:/filesystem failed, reason given by server: Permission denied

This filesystem is nfs mounted on rhel4 server using netapp storage on a folder & i am trying to mount that folder on rhel5 server getting above error. kindly help in this regard.

Thanks
PG
0
Comment
Question by:pankajgadhari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
  • 3
16 Comments
 
LVL 6

Accepted Solution

by:
jghelfman40 earned 250 total points
ID: 33622101
Typically, the reason you receive that error is that your client that wants to access it for some reason doesn't have access to mount the remote system. I've seen this typically fall under network delegations for the specific mount point.Have a look at the exports man page on your server.
0
 
LVL 1

Author Comment

by:pankajgadhari
ID: 33622197
Can u elaborate in more details as to what exactly you want to say.
0
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33622218
What is the content of your exports file?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 1

Author Comment

by:pankajgadhari
ID: 33622261
/u01/app/oracle/product/epoaqaappl      *.abc.com(rw,sync,insecure,no_root_squash)
/xfile  *.abc.com(rw,sync,insecure,no_root_squash)

first filesystem is getting mounted while the second filesystem is not getting mounted. giving error for second mount point.
0
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33622291
Does "/xfile" exist on the server?What is the output of:ls -ald /u01 /xfile
0
 
LVL 78

Expert Comment

by:arnold
ID: 33622312
You can not reshare a mounted partition which is what it sounds you are trying to do.
i.e.rhel4 mounts an NFS partition from somewhere. You now on the rhel4 want to extend access to this partition to the rhel5.

This can not be done since the altimate access is granted by the source of the partition.

You should confifigure rhel5 to access the NFS partition directly from the system that hosts it.
0
 
LVL 1

Author Comment

by:pankajgadhari
ID: 33622379
permission of /u01 and /xfile :-

[root@server ~]# ls -ald /u01 /xfile/
drwxr-xr-x   4 oracle dba 4096 Jun 15 09:58 /u01
drwxrwsr-x  10 oracle dba 4096 Sep  7 12:51 /xfile/

hi arnold,

Both the above mount points are nfs mounted from netapp storage, but one is able to mount & the other is not. That is wht i am figuring out.
0
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33622448
Where, and how,  are you trying to mount them on the remote end?
0
 
LVL 78

Expert Comment

by:arnold
ID: 33622455
/file has a setgid set.

Any reason why you are not granting the  rhe5 access to the device from the  netapp?

NFS/netapp will arbitrate access/modifications to the files.

What is the source of /xfile how are the permissions on the netapp vary for the two partitions??
0
 
LVL 1

Author Comment

by:pankajgadhari
ID: 33622477
The filesystem is mounted on server1:/xfile from netapp storage which is rhel4. I am trying to mount it on server b (rhel5) as :

mount server1:/xfile /mnt
or
mount -t nfs server1:/xfile /mnt
Nothing is working. getting the permission denied error.  exports file is already been provided for the same.
0
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33622498
what do the logs on the netapp say? or on the client host?
0
 
LVL 1

Author Comment

by:pankajgadhari
ID: 33622527
Arnold, i changed that permission to check if i am able to nfs mount the directory. The source of xfile on rhel4 server is the netapp volume mounted as nfs mount on mountpoint /xfile.  On rhel5 server , we want to mount this mount point to copy the contents of this directory to the directory on rhel5 server.
0
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33622550
Is anything else mounted under /mnt? If so, this could cause an issue. It is best to create a new mount, or really just used the standard of network mounted filesystems using the /net mount. You can create something like this:

/net/xfile
0
 
LVL 78

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 33622594
What are the restrictions to /xfile on the netapp?
I.e. the first partition can be mounted by any device on the LAN while the /xfile is restricted to rhel4 system.

Why are you not configuring the rhel5 system to directly access the /xfile partition from the netapp?

In your current attempt the issue can be between the netapp and rhel4 which prevents the access seemingly granted by he rhel4 to rhel5.


netapp to rhle5 only has one explanation the configuration/settings on the netapp prevents the access provided rhel5 has access to one of the IPs on which netapp serves these partition.

To confirm, try mounting the first partition directly from the netapp and it might be successful versus the /xfile. Is /xfile the administrative partition on netapp?
0
 
LVL 6

Expert Comment

by:jghelfman40
ID: 33622669
Please post your /vol/vol0/etc/exports file from the netapp.
0
 
LVL 1

Author Closing Comment

by:pankajgadhari
ID: 33686329
Currently i will not be able to provide the logs. Thanks for commenting on the questions. Got some hint on what to check from storage side.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question