Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. db51-id32.socsec.prod.be01.uni etc # cat auto.master
  2. #
  3. # Sample auto.master file
  4. # This is a 'master' automounter map and it has the following format:
  5. # mount-point [map-type[,format]:]map [options]
  6. # For details of the format look at auto.master(5).
  7. #
  8. #/misc /etc/auto.misc
  9. #
  10. # NOTE: mounts done from a hosts map will be mounted with the
  11. # "nosuid" and "nodev" options unless the "suid" and "dev"
  12. # options are explicitly given.
  13. #
  14. #/net -hosts
  15. #
  16. # Include central master map if it can be found using
  17. # nsswitch sources.
  18. #
  19. # Note that if there are entries for /net or /misc (as
  20. # above) in the included master map any keys that are the
  21. # same will not be seen as the first read key seen takes
  22. # precedence.
  23. #
  24. #+auto.master
  25. /auto /etc/auto.mysqlbackup
  26.  
  27. db51-id32.socsec.prod.be01.uni etc # cat /etc/auto.mysqlbackup
  28. mysqlbackups -hard,intr,nfsvers=3,noatime,nocto,nolock,port=2049,rw nas01.store.dc01.uni:/export/mysqlbackups
  29.  
  30. db51-id32.socsec.prod.be01.uni etc # /etc/init.d/autofs restart
  31. Stopping automount: [ OK ]
  32. Starting automount: [ OK ]
  33.  
  34. db51-id32.socsec.prod.be01.uni etc # /etc/init.d/autofs reload
  35. Reloading maps
  36.  
  37. db51-id32.socsec.prod.be01.uni etc # ls /auto
  38.  
  39. 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
  40. nas01.store.dc01.uni:/export/mysqlbackups on /tmp/testmount type nfs (rw,noatime,hard,intr,nfsvers=3,nocto,nolock,port=2049)
  41.  
  42. db51-id32.socsec.prod.be01.uni etc # mount | grep mysqlbackups
  43. 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