nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

nfs

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


Go Back   nixCraft Linux Forum > Mastering Servers > File Servers

Linux answers from nixCraft.


File Servers Discussion about Samba, NFS and other UNIX / Linux file servers.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-05-2009, 12:16 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

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 is showing in 1st nfs server 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 27-08-2009, 03:05 AM
Junior Member
User
 
Join Date: Aug 2009
Location: France
OS: Debian (Ubuntu Jackalope) Gnome
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
harlock59 is on a distinguished road
Default

Quote:
Originally Posted by amitk_m View Post
i configruation two nfs server and using static ip.

plz help me and give me any idea how to configure these two nfs server mapping each other.
for god's sake, please use clear words ?
Reply With Quote
  #3 (permalink)  
Old 27-08-2009, 06:53 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 600
Thanks: 61
Thanked 78 Times in 70 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

Hello amitk_m,

NFS can be frustrating. Please check some things for us.

Verify that the portmapper service is running on both machines.

Code:
/etc/rc.d/rc.portmap start
Also change the /etc/exports/ from:

Code:
/tmp 192.168.1.1(ro,sync)
to

Code:
/tmp 192.168.1.1(rw,sync)
It appears that you have them set for ro, or Read Only.

Just suggestions as always. Once you make the changes in /ext/exports be sure to reexport and restart all services related.

This a great article for troubleshooting NFS issues. It has helped me many of times.

http://www.higs.net/85256C89006A03D2...roubleshooting


Also can you please provide the last 50 lines of /var/log/messages after you run the command to re export.

Code:
tail -n50 /var/log/messages

Good Luck,

Jaysunn
__________________
Have a look at what I have been working on
http://www.shellasaurus.com

Last edited by jaysunn; 27-08-2009 at 07:59 PM. Reason: Added Article for NFS troubleshooting
Reply With Quote
  #4 (permalink)  
Old 02-09-2009, 01:08 AM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 600
Thanks: 61
Thanked 78 Times in 70 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

Hey Amitk_m,

Any update on this? I very eager to here your progress.



Jaysunn
__________________
Have a look at what I have been working on
http://www.shellasaurus.com
Reply With Quote
  #5 (permalink)  
Old 02-09-2009, 03:13 PM
kumarat9pm's Avatar
Senior Member
User
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL,UBUNTU..
Posts: 447
Thanks: 20
Thanked 20 Times in 18 Posts
Rep Power: 5
kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default Bit puzziled..!

From his words i understand that he req some NFS cluster or some thing.. where two nfs server are working to share same data..
or if he really want to use two server with two diff share and want to see the same data means he can use rsync utility for this purpose... What you say nixcraft?
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 09:02 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 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