nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

nfs configuration

This is a discussion on nfs configuration within the Slackware forums, part of the Linux Distribution category; hi i m working as a linux administrator in a software comapny. i have a task to nfs configuration. i ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Distribution > Slackware

Linux answers from nixCraft.


Slackware Discussion about Slackware Linux (the oldest distribution) related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2009, 12:59 PM
Junior Member
User
 
Join Date: May 2009
OS: Slackware
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
amitk_m is on a distinguished road
Default nfs configuration

hi
i m working as a linux administrator in a software comapny. i have a task to nfs configuration. i m using slackware linux. i configruation two nfs server and using static ip. i exported a directory such as /data in one nfs server1 and another is /tmp in nfs2 server. i want to configure such that when some directory or file will create in /data directory, the files will show the other nfs server /tmp dirctory and vice versa.

the configuration of two nfs server
one nfs server ip address is 192.168.1.1
#vi /etc/exports
/data 192.168.1.2(ro,sync)
:wq
#exportfs -av
#/etc/rc.d/rc.nfsd restart

another nfs server is 192.168.1.2
#vi /etc/exports
/tmp 192.168.1.1(ro,sync)
:wq
#exportfs -av
#/etc/rc.d/rc.nfsd restart

then i have entry in first nfs server /etc/fstab file
192.168.1.2:/tmp /data nfs defaults 0 0
:wq

then i entry in 2nd nfs server /etc/fstab file
192.168.1.1:/data /tmp nfs defaults 0 0
:wq

after that i tried mount -a in 1st nfs server
it ran well. the file of 2nd nfs server show data directory.
but when i m running mount -a in 2nd nfs server, a error message is display
i.e. mount: 192.168.1.1:/data failed, reason given by server: Permission denied.


plz help me and give me any idea how to configure these two nfs server mapping each other.
Reply With Quote
  #2 (permalink)  
Old 06-06-2009, 03:15 AM
Junior Member
User
 
Join Date: Dec 2008
OS: Centos
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
maxleonca is on a distinguished road
Default

Quote:
Originally Posted by amitk_m View Post
hi
i m working as a linux administrator in a software comapny. i have a task to nfs configuration. i m using slackware linux. i configruation two nfs server and using static ip. i exported a directory such as /data in one nfs server1 and another is /tmp in nfs2 server. i want to configure such that when some directory or file will create in /data directory, the files will show the other nfs server /tmp dirctory and vice versa.

the configuration of two nfs server
one nfs server ip address is 192.168.1.1
#vi /etc/exports
/data 192.168.1.2(ro,sync)
:wq
#exportfs -av
#/etc/rc.d/rc.nfsd restart

another nfs server is 192.168.1.2
#vi /etc/exports
/tmp 192.168.1.1(ro,sync)
:wq
#exportfs -av
#/etc/rc.d/rc.nfsd restart

then i have entry in first nfs server /etc/fstab file
192.168.1.2:/tmp /data nfs defaults 0 0
:wq

then i entry in 2nd nfs server /etc/fstab file
192.168.1.1:/data /tmp nfs defaults 0 0
:wq

after that i tried mount -a in 1st nfs server
it ran well. the file of 2nd nfs server show data directory.
but when i m running mount -a in 2nd nfs server, a error message is display
i.e. mount: 192.168.1.1:/data failed, reason given by server: Permission denied.


plz help me and give me any idea how to configure these two nfs server mapping each other.
I have not work with Slack quite a while now, but is there a "service" for portmap?
I know for a fact that portmap has to be running.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +5.5. The time now is 01:13 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38