Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 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. db51-id32.socsec.prod.be01.uni etc # cat /etc/auto.mysqlbackup
  27. mysqlbackups -hard,intr,nfsvers=3,noatime,nocto,nolock,port=2049,rw nas01.store.dc01.uni:/export/mysqlbackups
  28. db51-id32.socsec.prod.be01.uni etc # /etc/init.d/autofs restart
  29. Stopping automount: [ OK ]
  30. Starting automount: [ OK ]
  31. db51-id32.socsec.prod.be01.uni etc # /etc/init.d/autofs reload
  32. Reloading maps
  33. db51-id32.socsec.prod.be01.uni etc # ls /auto
  34. 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
  35. mount: no type was given - I'll assume nfs because of the colon
  36. mount.nfs: timeout set for Thu Nov 27 13:01:46 2014
  37. mount.nfs: trying text-based options 'hard,intr,nfsvers=3,nocto,nolock,port=2049,addr=10.255.0.210'
  38. mount.nfs: prog 100003, trying vers=3, prot=6
  39. mount.nfs: trying 10.255.0.210 prog 100003 vers 3 prot TCP port 2049
  40. mount.nfs: prog 100005, trying vers=3, prot=17
  41. mount.nfs: trying 10.255.0.210 prog 100005 vers 3 prot UDP port 59222
  42. nas01.store.dc01.uni:/export/mysqlbackups on /tmp/testmount type nfs (rw,noatime,hard,intr,nfsvers=3,nocto,nolock,port=2049)
  43. db51-id32.socsec.prod.be01.uni etc # mount | grep mysqlbackups
  44. 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