Trying to Create NFS Mount


 
Thread Tools Search this Thread
Operating Systems Solaris Trying to Create NFS Mount
# 1  
Old 03-25-2010
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:
Code:
share -F nfs  -o public,nosuid,ro,anon=-1  -d "oracle directories" /oracle_dir

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

I mounted the NFS mount point on MySvr:
Code:
mount 10.21.33.15:/db/oracle_dir /oracle_dir

I then started the nfs server on both servers:
Code:
/etc/init.d/nfs.server start

When I attempt to do a df -k on MySvr, I get the following error:
Code:
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

Last edited by pludi; 03-25-2010 at 06:02 PM.. Reason: code tags, please...
# 2  
Old 03-26-2010
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:
Code:
/etc/init.d/nfs.server start

As the root user aren't you?
# 3  
Old 03-29-2010
Tony, thank you for the reply. I am running everything as root. I will look at these links.


David
# 4  
Old 03-29-2010
you should start the nfs services first BEFORE using the mount command
# 5  
Old 03-29-2010
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.

Code:
mount 10.21.33.15:/db/oracle_dir /mountDir

Where /mountDir is an empty directory not shared in /etc/dfs/dfstab
# 6  
Old 03-30-2010
check both servers version of nfs
# 7  
Old 04-02-2010
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

2. 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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies

2. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

3. UNIX for Dummies Questions & Answers

Mount NFS

Hi I have 2 servers, one is running on SunOS SPARC and the other is running on GNU Linux. Since my Linux is very poor I am not sure on how to mount a NFS from SunOS to Gnu Linux. Please help! FS at Host Server: root@rocux4 # ls -ld /data/PCFILES/GTPROD/DWHFILES.NEW drwxrwxrwx 4 nobody ... (6 Replies)
Discussion started by: hedkandi
6 Replies

4. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

5. OS X (Apple)

NFS Mount

Hello! Im trying to mount an nfs share. But got a bit of a problem. The problem im having is that i try to mount The problem is that the my.server.com/pub/home is owned by root. I know i can make a mount point my.server.com://pub/home/username - > /pub/home But that means i have to do... (1 Reply)
Discussion started by: dozy
1 Replies

6. UNIX for Dummies Questions & Answers

NFS mount

I have a NAS server that needs to have the share mounted on a unix server. I am not that familiar with NFS mounts....any help on what I have to do on the UNIX box...thanks! (7 Replies)
Discussion started by: andrewd
7 Replies

7. AIX

NFS does not mount on boot!

Hi, Can someone help me on this? I'm not able to enable a well working mounting process for NFS filesystems on boot time. On the server side (AIX 5.2) everything seems to be OK and correctly exported, seeing other clients (AIX 5.2) are able to mount normally on boot time. On a client in... (5 Replies)
Discussion started by: padawan75
5 Replies

8. UNIX for Dummies Questions & Answers

mount -o llock -F nfs vs mount -F nfs

Hi, We encountered NFS issue (solaris) especially running on Oracle application. Problem such as forms hang when close button is click, concurrent job shows running status all time. Understand we need to use mount -o llock -F nfs instead of mount -F nfs to eliminate? this problem.. Can... (1 Reply)
Discussion started by: KhawHL
1 Replies

9. UNIX for Dummies Questions & Answers

NFS Mount Points

Hi Solaris 10 On server A, there is a directory called data with 10 files. This data directory has a further 3 subdirectories, gl, pay, contract (for example) On server B, I want to see the server A data directory commands used: on server A, share -F nfs -o ro -d "<description">... (1 Reply)
Discussion started by: davidra
1 Replies

10. Filesystems, Disks and Memory

NFS mount

Hi All, Can any one help in Mounting remote filesystems with NFS? Thanks in advance. Regards, Suresh. (4 Replies)
Discussion started by: srvaka1
4 Replies
Login or Register to Ask a Question