Operating System - HP-UX
1832802 Members
3317 Online
110045 Solutions
New Discussion

NFS filesystems are not mounting...( permission denied)

 
HP-FMS
Frequent Advisor

NFS filesystems are not mounting...( permission denied)

Hi,..

We are facing problem related NFS FS..

Server:- HP-UX 11.23 ia 64

Problem is At the time of mounting the FS thro NFS server, permission denied error is coming in client... We were checked the /etc/exports, /etc/xtab, /etc/rmtab & /etc/rc,config.d/nfsconf file entries... we didn`t found any pblm.. NFS service is running properly.. Here i attached the screen shots the above files:--

----------------------------------------------
epprddb/>>
epprddb/>>cat /etc/exports
/export/usr/sap/trans -root=epprdci:epprddb:dbEP1:ciEP1:epapp01:epapp02,access=dbEP1:ciEP1:\
epprdci:epprddb:epapp01:epapp02
/export/sapmnt/EP1 -root=epprdci:epprddb:dbEP1:ciEP1:epapp01:epapp02,access=dbEP1:ciEP1:\
epprdci:epprddb:epapp01:epapp02

----------------------------------------------

epprddb/>>cat /etc/xtab
/export/sapmnt/EP1 -root=epprdci:epprddb:dbEP1:ciEP1,access=dbEP1:ciEP1:epprdci:epprddb
/export/usr/sap/trans -root=epprdci:epprddb:dbEP1:ciEP1,access=dbEP1:ciEP1:epprdci:epprddb
/oracle/EP1/sapbackup -root=ebsdp01:ebsdp02
/oracle/EP1/saparch -root=ebsdp01:ebsdp02
/oracle/EP1/sapreorg -root=ebsdp01:ebsdp02

______________________________________________

epprddb/>>cat /etc/rmtab
epapp01:/export/sapmnt/EP1
epapp02:/export/usr/sap/trans
epapp02:/export/sapmnt/EP1
epapp01:/export/usr/sap/trans
epprdci:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
#bsdp02:/oracle/EP1/saparch
#bsdp02:/oracle/EP1/sapbackup
#bsdp02:/oracle/EP1/sapreorg
#bEP1:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bsdp01:/oracle/EP1/saparch
#bsdp01:/oracle/EP1/sapbackup
#bsdp01:/oracle/EP1/sapreorg
#bsdp02:/oracle/EP1/saparch
#bsdp02:/oracle/EP1/sapbackup
#bsdp02:/oracle/EP1/sapreorg
#bEP1:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
epprddb/>>pwd
/
epprddb/>
---------------------------------------------

From this file entry, we are facing the problem in epapp01 & 02 servers... From nfs server 2 filesystems to be mounted in clients(epapp01 & 02).. This is PRD servers..

pls guide for this issue...

H.Kannan..

17 REPLIES 17
HP-FMS
Frequent Advisor

Re: NFS filesystems are not mounting...( permission denied)

Hi Guru`s...

Pls do the needfull for this pblm!.....

Thanks in advance,

H.Kannan.
Jeeshan
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

Hi Kannan

please check the dns if you have any dns server in unix for name resolution problem.
a warrior never quits
HP-FMS
Frequent Advisor

Re: NFS filesystems are not mounting...( permission denied)

Dear Ashan,

I checked the DNS conf files & /etc/hosts file entry... It is working fine...

One more thing is, NFS problem in only this 2 servers... Rest of all ok...

Thanks,

H.Kannan.
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

On NFS Client1
Ensure NFS subsystem is in the kernel
2edit /etc/rc.config.d/nfsconf
3start NFS daemon
/sbin/init.d/nfs.client start
4 /etc/fstab
5 mount the NFS file system.
Jeeshan
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

HI Kannan

add an entry like this in /etc/exports file


example
/srv01/proj/intrs -anon=65534,root=srv005
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

Dear Kannan
did u checked what i posted before if it is
perfectly ok
next u have to check file permissions also
if u are getting file permission denied error the reason may be the following

u should to check the permissions of the directory you have shared.
The permissions should be atleast 755.

HP-FMS
Frequent Advisor

Re: NFS filesystems are not mounting...( permission denied)

Dear ashan & sahir,..

Thanks for u r prior reply!...

I tried with the same entry in /etc/exports file... But same pblm exits,...

I want to mount, 2 NFS filesystems to client.. As per your reply(sahir) the 1`st dir permission is 777 & another one is 555..
But now only we are facing the pblm... Befor that it was working fine from last 3 months... No-body didn`t change anything...Becaz it is PRD server...

Thanks in Advance,

H.Kannan.
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

u have to check u hostname also
if somebodey changed hostname u will get such an erro so please confirm it also
HP-FMS
Frequent Advisor

Re: NFS filesystems are not mounting...( permission denied)

Dear sahir,

Hostname & filesystem config are verified properly...

Now what i am thinking, is this any patches related issue?.. Becaz recently we installed ARPA cumalative patches on this 1 server.. we didn`t done on second..

Thanks in advance,
HK...
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

I don't think so
are u logged as root to the NFS client, check the export permissions to determine whether root access to the directory is granted to your NFS client.


If you are logged in as root to the NFS client, and your client is not allowed root access to the exported directory, check the passwd database on the NFS server to determine whether it contains an entry for user nobody. Without root access, the root user on an NFS client is given the access permissions of user nobody. Also, check whether anonymous users are denied access to the directory (with the anon=65535 export option).

If your client is not allowed root access or anonymous user ID access to the exported directory, log in as a non-root user to get access to the directory.

If you are not running NIS or NIS+, or if the server is in a different domain from the client, check the passwd databases on the server and the client to make sure you have a valid login on both machines and that your user ID is the same on both machines. If your user ID is unrecognized on the NFS server, you will be granted the permissions of user nobody.

Aneesh Mohan
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)


The servers epapp01 & epapp02 are not listed in /etc/xtab on epprddb

fyi:-
epprddb/>>cat /etc/xtab
/export/sapmnt/EP1 -root=epprdci:epprddb:dbEP1:ciEP1,access=dbEP1:ciEP1:epprdci:epprddb
/export/usr/sap/trans -root=epprdci:epprddb:dbEP1:ciEP1,access=dbEP1:ciEP1:epprdci:epprddb
/oracle/EP1/sapbackup -root=ebsdp01:ebsdp02
/oracle/EP1/saparch -root=ebsdp01:ebsdp02
/oracle/EP1/sapreorg -root=ebsdp01:ebsdp02


Please do :-

1)

on epapp01&epapp02
---------
unmount /export/sapmnt/EP1
unmount /export/usr/sap/trans

2)

on epprddb
-------
#exportfs -av

Confirm the server names epapp01&epapp02 in xtab or showmount -e

3)

Then do mount the nfs shares on epapp01&epapp02


Thanks ,
Aneesh
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

Dear Kannan
pls send /etc/xtab contents
HP-FMS
Frequent Advisor

Re: NFS filesystems are not mounting...( permission denied)

Hi aneesh & sahir,..

I already done from server end showmount -e & mounted again... But no improvement!..

I checked the NFS with root user only!....
Here i attached the files from server /etc/exports, /etc/xtab/ ,/etc/rmtab.
from cleint /etc/fstab file...
--------------------------------------------
epprddb/>>
epprddb/>>cat /etc/exports
/export/usr/sap/trans -root=epprdci:epprddb:dbEP1:ciEP1:epapp01:epapp02,access=dbEP1:ciEP1:\
epprdci:epprddb:epapp01:epapp02
/export/sapmnt/EP1 -root=epprdci:epprddb:dbEP1:ciEP1:epapp01:epapp02,access=dbEP1:ciEP1:\
epprdci:epprddb:epapp01:epapp02

--------------------------------------------
epprddb/>>cat /etc/xtab
/export/sapmnt/EP1 -root=epprdci:epprddb:dbEP1:ciEP1,access=dbEP1:ciEP1:epprdci:epprddb
/export/usr/sap/trans -root=epprdci:epprddb:dbEP1:ciEP1,access=dbEP1:ciEP1:epprdci:epprddb
/oracle/EP1/sapbackup -root=ebsdp01:ebsdp02
/oracle/EP1/saparch -root=ebsdp01:ebsdp02
/oracle/EP1/sapreorg -root=ebsdp01:ebsdp02

--------------------------------------------
epprddb/>>cat /etc/rmtab
epapp01:/export/sapmnt/EP1
epapp02:/export/usr/sap/trans
epapp02:/export/sapmnt/EP1
epapp01:/export/usr/sap/trans
epprdci:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
#bsdp02:/oracle/EP1/saparch
#bsdp02:/oracle/EP1/sapbackup
#bsdp02:/oracle/EP1/sapreorg
#bEP1:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bsdp01:/oracle/EP1/saparch
#bsdp01:/oracle/EP1/sapbackup
#bsdp01:/oracle/EP1/sapreorg
#bsdp02:/oracle/EP1/saparch
#bsdp02:/oracle/EP1/sapbackup
#bsdp02:/oracle/EP1/sapreorg
#bEP1:/export/sapmnt/EP1
#bEP1:/export/usr/sap/trans
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
#bEP1:/export/sapmnt/EP1
epprddb/>>pwd
/

--------------------------------------------

From epapp01 ,

# cat /etc/fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg01/lvswap01 ... swap pri=1 0 0
/dev/vg01/lvol9 ... swap pri=0 0 0
/dev/vg00/usrsap /usr/sap vxfs delaylog,nodatainlog,largefiles,rw,suid 0 2
dbEP1:/export/sapmnt/EP1 /sapmnt/EP1 nfs rw,suid 0 0
dbEP1:/export/usr/sap/trans /usr/sap/trans nfs rw,suid 0 0
#

--------------------------------------------


Verify the files above & give the help!..

Thanks,.

HK...



















Aneesh Mohan
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

Hi Kannan,

Please post the output of the below command.

#grep -E "epapp01|epapp02" /etc/hosts


Aneesh
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

can u use remount option
if u file system is export ro then it will be after remount rw
for that first u umount it
then remount
HP-FMS
Frequent Advisor

Re: NFS filesystems are not mounting...( permission denied)

Hi Friends,

Problem is resoved... Main issue is permission problem in the dir...

Thanks for the valuable help!...
HK,...
Sajjad Sahir
Honored Contributor

Re: NFS filesystems are not mounting...( permission denied)

Its ok but u remount it again