Trying to Create NFS Mount

Hello, I am trying to create a NFS mount from one Solaris server to another.

Both servers have the following OS:
SunOS MySvr 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240

I created a directory MySvr called /oracle_dir

I also created a directory on MySvr2 called /db/oracle_dir

I added the following entries to the /etc/dfs/dfstab file on both servers:
MySvr:

share -F nfs  -o public,nosuid,ro,anon=-1  -d "oracle directories" /oracle_dir

MySvr2:

share -F nfs  -o public,nosuid,ro,anon=-1  -d "oracle directories" /db/oracle_dir

I mounted the NFS mount point on MySvr:

mount 10.21.33.15:/db/oracle_dir /oracle_dir 

I then started the nfs server on both servers:

/etc/init.d/nfs.server start

When I attempt to do a df -k on MySvr, I get the following error:

NFS fsstat failed for server 10.51.13.11: error 7 (RPC: Authentication error)
df: cannot statvfs /oracle_dir: Permission denied

Any ideas on how to correct this issue? Thank you in advance for your assistance. By the way I am an Oracle DBA, NOT a Unix admin so please go easy on me. We have no admin. Thank you.

David

An NFS server requires various daemons to be started, e.g. the portmapper, try looking at the following for details of all of them:
BigAdmin Submitted Tech Tip: Introducing NFS Fundamentals for the Solaris OS

This site is helpful also:
Troubleshooting Solaris NFS Problems

You are running:

/etc/init.d/nfs.server start

As the root user aren't you?

Tony, thank you for the reply. I am running everything as root. I will look at these links.

David

you should start the nfs services first BEFORE using the mount command

On the NFS client side, the mount point directory should be an empty directory. It looks like you are trying to share out the mount point directory.

mount 10.21.33.15:/db/oracle_dir /mountDir

Where /mountDir is an empty directory not shared in /etc/dfs/dfstab

check both servers version of nfs

First I think you are doing NFS Sharing and mount wrong way.

If I am not wrong, then you want to Share "/db/oracle_dir" directory on 10.21.33.15 server and mount this resource on to second server (on /oracle_dir).If it is so, then do following :

  1. On 10.21.33.15 :

#share /db/oracle_dir

  1. On Second server :

#mkdir /oracle_dir

#mount 10.21.33.15:/db/oracle_dir /oracle_dir

And if still you face error regarding "Permission denied"
then,
Plz post the out put of following commands :

#ls -ld /db/oracle_dir ------>>> from 10.21.33.15

and

#ls -ld /oracle_dir ----->>>> from second server.

That worked! Thank you for all you assistance. The device was initially busy but a reboot took care of that.

:slight_smile:

David