The first step is export the FS to be used on NFS server.
If you don't know how to do that, check the link bellow.
Configuring NFS server
Before to configure autoFS in your client is better check if you can see the nfs FS in your client.
# showmount -e <nfs server>
The return will be the list of what is exported on nfs server and who is allowed to mount/access.
If everything is right until this point... configure the autoFS:
Include on /etc/auto_master what you want mount, we are using the FS /user/home in our example.
# vi /etc/auto_master
/users/home /etc/auto_home -nosuid,intr,soft,rsize=32768,wsize=32768
Include on /etc/auto_home the address of your FS (NFS server and mount point):
* <nfs server>:/home/&
Restart automount
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
automount
Enable the auto start of AutoFS editing /etc/rc.config.d/nfsconf:
NFS_CLIENT=1
AUTOMOUNT=1
AUTOFS=1
Done
AutoFS - Automount
sexta-feira, 19 de abril de 2013