Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem setting up NFS on two OS

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I have set up a NFS on 3 Computer systems and i encountered some problems.When i mount only one NFS Client Server to the NFS Server,it works!!but when i try to mount 2 NFS Client Servers to the NFS Server,i encountered Permission Denied by the Server on one of my NFS Client Servers with the other one working!These are the following steps i have done:

Solaris OS,version 8(64 bit) as my Master Host(NFS Server), HostName:BIGSVR004
Two Linux 7.3 OS as my Client Hosts(NFS Client server),
HostName:BIGCPU017 and BIGCPU015

i created a directory called /export/home/sge in all the hosts and i change the permission of this directory to 777

On my master host and Client host i edit the /etc/hosts file and add the follwin info:
127.0.0.1 Localhost
172.19.174.11 BIGSVR004
172.19.172.66 BIGCPU015
172.19.174.68 BIGCPU017

On my master host,i edit the /etc/dfs/dfstab file and add the followin info regardin which file i would like to share and to which host:

share -F nfs -o rw=BIGCPU017 /export/home/sge
share -F nfs -o rw=BIGCPU015 /export/home/sge

after tt i start my nfs server and nfs client server,which is successful..

After which i edit the /etc/fstab in both the NFS Client Server(LINUX OS) to mount the NFS parition tt has been shared

BIGSVR004:/export/home/sge /export/home/sge nfs rw 0 0

But when i type the command to manually mount the system:mount -t nfs -o rw BIGSVR004:/export/home/sge /export/home/sge in the command prompt in Linux but it displayed:permission Denied by Server.

What may be the problem that disable mounting of two NFS client server to the NFS Server??Anyone can help solving my problem??

Thanks in advance
 
You have two lines for the same share. It should only actually share out the last line for the same share. Try changing both lines into one like this:

share -F nfs -o rw=BIGCPU017:BIGCPU015 /export/home/sge

After you do this and restart NFS, you can do a 'showmount -e BIGSVR004' and it will tell you what is shared and who has access. Both systems should be listed after /export/home/sge, similar to this:

# showmount -e dpywasu1
export list for dpywasu1:
/export/wdt dpywaux1,dpywaux2

Thanks

Will Trepanier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top