Operating System - HP-UX
1833758 Members
2399 Online
110063 Solutions
New Discussion

NFS mount permission denied

 
Damle Yogesh
Occasional Contributor

NFS mount permission denied

My ignite client and server are running HP-UX 11.11.

I am trying to NFS mount the server disk onto client, but I am getting a "permission denied" error.

entry in /etc/exports looks like this:

/var/opt/ignite/recovery/archives/ -anon=2 access=

I also tried changing -anon=0. It did not help either.

Any thoughts?

Thanks in advance.
10 REPLIES 10
Geoff Wild
Honored Contributor

Re: NFS mount permission denied

Do you have a comma or a space?

Should be:

/var/opt/ignite/recovery/archives/ -anon=2,access=


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
RAC_1
Honored Contributor

Re: NFS mount permission denied

On client, are you trying to mount as root, then you would require option root=client_name/ip in /etc/exports file (on server)

Anil
There is no substitute to HARDWORK
Damle Yogesh
Occasional Contributor

Re: NFS mount permission denied

I have modified the entries as suggested by Goeff. It still does not work.

FYI.. The client has FQDN, where as the server does not. Hence client shows ..com when issue command "hostname". Same command on the server side shows .

I have tried modifying the exports file to take care of that as well.

what else can I do?
Geoff Wild
Honored Contributor

Re: NFS mount permission denied

Just a thought - you did a:

exportfs -a

after modifying the file?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Damle Yogesh
Occasional Contributor

Re: NFS mount permission denied

Of course I did.
Dave Olker
Neighborhood Moderator

Re: NFS mount permission denied

Hi Damle,

The best way to get a good understanding of why a mount fails is to collect both a network trace of the failing mount attempt, and to enable debug rpc.mountd logging on the NFS server.

You can use nettl or ethereal to collect the network trace. As for the debug rpc.mountd logging - you simply send the running rpc.mountd daemon a SIGUSR2 signal.

# ps -e | grep rpc.mountd
# kill -17

This will toggle debug logging on the server and start logging rpc.mountd messages into the file /var/adm/mountd.log. Once debug logging is enabled, and the network trace is started, reproduce the mount failure and then immediately stop the network trace (as these tend to fill up quickly) and then send the running rpc.mountd another "kill -17" to toggle debug logging back off.

The mountd log file should tell you why the mount is failing, or at least point you in the right direction. The network trace is handy to have to know exactly which IP address the mount request is coming from.

In other words, if your NFS client has 2 LAN interfaces and you're only exporting the filesystem on the server for 1 of the interfaces, and the mount request originates from the 2nd client LAN interface - the server will reject it. The network trace will show the IP addresses of the client sending the mount request, and you can use nslookup on the server to ensure that the server resolves the client's IP address to the hostname listed in the exports file.

Hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
A. Clay Stephenson
Acclaimed Contributor

Re: NFS mount permission denied

Another source of problems is very restricted permissions (maybe 000) of the mountpoint directories on the NFS server itself. This is especially true for nested mounts. The permissions of the mounted filesystem directories may look fine so you need to umount the filesystem(s) and check the mountpoint permissions for each one.



If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor

Re: NFS mount permission denied

Hi,

Add the short hostname, fully qualified name and the IP address also and see if it works. It depends on how the client is 'appearing' to the NFS server.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Geoff Wild
Honored Contributor

Re: NFS mount permission denied


What is in nswitch.conf on both servers?

hosts: file [ SUCCESS=return NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue ] dns

If files then dns, I would add the hostsnames and FQDN of all servrs to the /etc/hosts file.


x.x.x.x node1 node1.yourdomain.com


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Damle Yogesh
Occasional Contributor

Re: NFS mount permission denied

Thank you very much all of you. Its did help me toggle the debug switch with kill -17 and looking up nsswitch.conf file.

this problem has been solved.