Solved

nfs error: reason given by server: Permission denied

Posted on 2010-09-07
16
3,142 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
  • 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
 
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 77

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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 77

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 77

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now