Automount NFS


Tags:

                                  

to automount NFS

on the server to be mounted from:

edit the /etc/dfs/dfstab file to share the directory to be mounted.

example:

***********************************************************************************

share  -F nfs  -o ro=hostname.domain.com   /u01/app/jboss/server/all/log

***********************************************************************************

stop/start /etc/init.d/nfs.client  &  /etc/init.d/nfs.server



on server to be mounted on:

edit the /etc/auto_export file to add the mountpoint:

example:


***********************************************************************************
mountpoint hostname:/u01/app/weblogic/bea/user_projects/domains/mydomain/logdir
mountpoint hostname2:/u01/app/jboss/CMS/server/all/log

***********************************************************************************

run automount

check to make sure you can access that directory in /export

(if it does not mount, check auto_master to make sure /export /etc/auto_export is
 present