November 17, 2018, 07:59:38 PM

News : Linux Help Community Forum..

Author Topic: nfs  (Read 1669 times)

Offline amitk_m

  • New Member
  • Posts: 1
« on: May 19, 2009, 03:53:40 AM »
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
#vi /etc/exports
#exportfs -av
#/etc/rc.d/rc.nfsd restart

another nfs server is
#vi /etc/exports
#exportfs -av
#/etc/rc.d/rc.nfsd restart

then i have entry in first nfs server /etc/fstab file  /data  nfs     defaults 0 0

then i entry in 2nd nfs server /etc/fstab file /tmp nfs  defaults 0 0

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: 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.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: nfs
« Reply #1 on: June 02, 2009, 12:45:13 AM »
Did /data dir exists on first server? if u are exporting the /data dir then it should be there.

If above is there then please check the syntax of /etc/exports ( there should be no space between ipadress and options ),

If it also works then r try to export the dir other than /data like try to export /home and check wheather its exported?