Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db51-id32.socsec.prod.be01.uni etc # cat auto.master
- #
- # Sample auto.master file
- # This is a 'master' automounter map and it has the following format:
- # mount-point [map-type[,format]:]map [options]
- # For details of the format look at auto.master(5).
- #
- #/misc /etc/auto.misc
- #
- # NOTE: mounts done from a hosts map will be mounted with the
- # "nosuid" and "nodev" options unless the "suid" and "dev"
- # options are explicitly given.
- #
- #/net -hosts
- #
- # Include central master map if it can be found using
- # nsswitch sources.
- #
- # Note that if there are entries for /net or /misc (as
- # above) in the included master map any keys that are the
- # same will not be seen as the first read key seen takes
- # precedence.
- #
- #+auto.master
- /auto /etc/auto.mysqlbackup
- db51-id32.socsec.prod.be01.uni etc # cat /etc/auto.mysqlbackup
- mysqlbackups -hard,intr,nfsvers=3,noatime,nocto,nolock,port=2049,rw nas01.store.dc01.uni:/export/mysqlbackups
- db51-id32.socsec.prod.be01.uni etc # /etc/init.d/autofs restart
- Stopping automount: [ OK ]
- Starting automount: [ OK ]
- db51-id32.socsec.prod.be01.uni etc # /etc/init.d/autofs reload
- Reloading maps
- db51-id32.socsec.prod.be01.uni etc # ls /auto
- db51-id32.socsec.prod.be01.uni etc # mount -v -o hard,intr,nfsvers=3,noatime,nocto,nolock,port=2049,rw nas01.store.dc01.uni:/export/mysqlbackups /tmp/testmount
- mount: no type was given - I'll assume nfs because of the colon
- mount.nfs: timeout set for Thu Nov 27 13:01:46 2014
- mount.nfs: trying text-based options 'hard,intr,nfsvers=3,nocto,nolock,port=2049,addr=10.255.0.210'
- mount.nfs: prog 100003, trying vers=3, prot=6
- mount.nfs: trying 10.255.0.210 prog 100003 vers 3 prot TCP port 2049
- mount.nfs: prog 100005, trying vers=3, prot=17
- mount.nfs: trying 10.255.0.210 prog 100005 vers 3 prot UDP port 59222
- nas01.store.dc01.uni:/export/mysqlbackups on /tmp/testmount type nfs (rw,noatime,hard,intr,nfsvers=3,nocto,nolock,port=2049)
- db51-id32.socsec.prod.be01.uni etc # mount | grep mysqlbackups
- nas01.store.dc01.uni:/export/mysqlbackups on /tmp/testmount type nfs (rw,noatime,hard,intr,nfsvers=3,nocto,nolock,port=2049,addr=10.255.0.210)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement