Appendix 9 | |
2.2.7 NFS Here
we are going to describe the setting process of NFS(Network File System) server as well as
NFS client. As we have already mentioned earlier that NFS is a client-server application
we have to set both the client and server for taking the benefit of NFS. At first we began
with the setting of Server: NFS Server Setting There's only three things you have to do set up a NFS server:
(But more clearly telling you should require rpc.lockd, rpc.stad) ---------------- Start of /etc/exports file ------------------- You can refer to exports(5) for more reference on writing this file. But
to give you an easy starting let us explain these lines. The first column(/usr or /cdrom)
directs which directory to export to other clients, -network option directs tells to who
should be eligible clients(specific names like 192.168.0.3 should have worked just fine,
but for some unknown reason it didn't), -ro options directs that these files should be
exported as read only. The next step you need to do is run the mount daemon: mapletown# mountd -r Now you can see that your mountd is running. If you try from your
clients(assuming that your clients are set as nfs clients) you gill get a message like: RPC program not registered Next comes the part of running nfsd. You should run nfsd with following
options: mapletown# nfsd -u -t 4 It tells nfsd to run four daemons. If you specify less number of daemons
it might slowdown the remote mounting or there might be no mounting at all. At least four
daemons are required(you are welcome to test what happens when there is less than four
daemons). -------------------------- Start of a quick view of /etc/rc.network
--------------------- Most of the variables are defined in rc.conf, so before running these
options please make sure that you read the variables from rc.conf. Though we didn NFS Client Setting: All you have to do is: maple# nfsiod maple# mkdir /tmp/mapletown That's all. Now you should be accessing mapletown's /usr directory(not
necessarily all the files under that name) as local files in /tmp/mapletown, but
unfortunately as read only files only. ---------------------- Start of /etc/rc.conf file on ther NFS server
------------------ ---------------------- Start of /etc/rc.conf file on ther NFS client
------------------ In case you might want to mount on the mount points on the client
automatically, when the client gets up you can set the /etc/fstab file as below: ---------------------- Start of /etc/fstab file on ther NFS server
------------------ But necessary system files should not be imported(export can be
accepted, though) in this way of auto-mounting. There is always some possibility of remote
server(NFS server) not being available which will might force you to boot in a single user
mode. |
| Home | Introduction | An Overview of Our Network | System Administration | Security | Conclusion | Acknowledgements | References | Appendix 1 | Appendix 2 | Appendix 3 | Appendix 4 | Appendix 5 | Appendix 6 | Appendix 7 | Appendix 8 | Appendix 9 | Appendix 10 |
This page is maintained by:
jchakma@yahoo.com