[NTLUG:Discuss] NFS Network File sharing between two linuxmachines

Greg Edwards greg at nas-inet.com
Sun Aug 26 10:52:27 CDT 2001


Patrick Parks wrote:
> 
>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: 7bit

Patrick,

With you /etc/fstab you would need to put noauto so that the system can
stabilize before attempting to access.

For autofs to work you need it installed (obvious comment) and started. 
Make sure its set to start on boot.  What distrib do you have
installed?  I use Mandrake so I get to startup services through
Drakconf.  You can get there with linuxconf as well.

You need at least 2 files for starting this service (auto.master and
auto.xxx).  The auto.master tells autofs where and what mount
directories to use.  One big advantage to autofs is that its dynamic and
will mount only when in use.

Here's my /etc/auto.master

=======================================================
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
 
/misc   /etc/auto.misc     --timeout 30
/net    /etc/auto.net      --timeout 60
=======================================================

and part of my /etc/auto.net

=======================================================
webserv -user,dev,exec,suid,rw,bg,soft 
www.webserv.nas-inet.com:/inet/httpd
ftpserv -user,dev,exec,suid,rw,bg,soft 
ftp.webserv.nas-inet.com:/inet/ftp
=======================================================

on my webserv machine I have /etc/exports

=======================================================
/inet/httpd *.nas-inet.com(rw,no_root_squash)  # Allow developers access
/inet/ftp   *.nas-inet.com(rw,no_root_squash)  # Allow developers access
=======================================================

in webserv /etc/hosts.allow I have all internal IPs allowed

On my hosts that access webserv I have a symbolic link "ln -s
/inet/http_prod /net/webserv" so an "ll /inet/http_prod/" produces a
listing from my webservers base directory.

Anytime you make a change to /etc/auto.xxx you need to do a restart on
autofs.

I hope this helps.

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com



More information about the Discuss mailing list