<!DOCTYPE html> <html> <head> </head> <body> <div><strong>yum install nfs-utils nfs-utils-lib</strong></div> <div> </div> <hr /> <div><strong>/etc/sysconfig/autofs</strong></div> <div>#</div> <div># Init syatem options</div> <div>#</div> <div># If the kernel supports using the autofs miscellanous device</div> <div># and you wish to use it you must set this configuration option</div> <div># to "yes" otherwise it will not be used.</div> <div>#</div> <div>USE_MISC_DEVICE="yes"</div> <div>#</div> <div># Use OPTIONS to add automount(8) command line options that</div> <div># will be used when the daemon is started.</div> <div>#</div> <div>#OPTIONS=""</div> <div>#</div> <div>MASTER_MAP_NAME="auto.master" #defines default primary configuration file</div> <div>TIMEOUT=300 #the maximum idle time (in seconds) after which filesystem is unmounted</div> <div>NEGATIVE_TIMEOUT=60 #negative timeout for failed mount attempts (default 60)</div> <div>LOGGING="verbose" #enable logging (read logs to /var/log/messages</div> <div>MOUNT_NFS_DEFAULT_PROTOCOL=4 #default protocol used by mount.nfs</div> <div>BROWSE_MODE="yes" #set to yes by default. Set it to NO and autofs only creates mount points when something is actually mounted on them</div> <hr /> <div> </div> <hr /> <div><strong>/etc/auto.master</strong></div> <div>#</div> <div># Sample auto.master file</div> <div># This is a 'master' automounter map and it has the following format:</div> <div># mount-point [map-type[,format]:]map [options]</div> <div># For details of the format look at auto.master(5).</div> <div>#</div> <div>/misc /etc/auto.misc</div> <div>#</div> <div># NOTE: mounts done from a hosts map will be mounted with the</div> <div># "nosuid" and "nodev" options unless the "suid" and "dev"</div> <div># options are explicitly given.</div> <div>#</div> <div>/net -hosts</div> <div>#</div> <div># Include /etc/auto.master.d/*.autofs</div> <div># The included files must conform to the format of this file.</div> <div>#</div> <div>+dir:/etc/auto.master.d</div> <div>#</div> <div># Include central master map if it can be found using</div> <div># nsswitch sources.</div> <div>#</div> <div># Note that if there are entries for /net or /misc (as</div> <div># above) in the included master map any keys that are the</div> <div># same will not be seen as the first read key seen takes</div> <div># precedence.</div> <div>#</div> <div># +auto.master</div> <div>/nfs /etc/auto.nfsdb –timeout=180</div> <hr /> <div> </div> <hr /> <div> </div> <div><strong>/etc/auto.nfsdb</strong></div> <div>backup -fstype=nfs,rw,soft,intr 192.168.222.68:/cPanel/hostingoline3.goline.ch</div> <hr /> <div> </div> </body> </html>
Subscribe
0 Comments
Oldest