Avatar of pankajgadhari
pankajgadhariFlag for United States of America

asked on 

nfs error: reason given by server: Permission denied

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
LinuxLinux Distributions

Avatar of undefined
Last Comment
pankajgadhari
ASKER CERTIFIED SOLUTION
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of pankajgadhari

ASKER

Can u elaborate in more details as to what exactly you want to say.
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

What is the content of your exports file?
Avatar of pankajgadhari

ASKER

/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.
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

Does "/xfile" exist on the server?What is the output of:ls -ald /u01 /xfile
Avatar of arnold
arnold
Flag of United States of America image

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.
Avatar of pankajgadhari

ASKER

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.
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

Where, and how,  are you trying to mount them on the remote end?
Avatar of arnold
arnold
Flag of United States of America image

/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??
Avatar of pankajgadhari

ASKER

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.
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

what do the logs on the netapp say? or on the client host?
Avatar of pankajgadhari

ASKER

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.
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

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
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of jghelfman40
jghelfman40
Flag of United States of America image

Please post your /vol/vol0/etc/exports file from the netapp.
Avatar of pankajgadhari
pankajgadhari
Flag of United States of America image

ASKER

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.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo