Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. # sudo mount -t nfs -o 'vers=3' -v 192.168.1.101:/data/info /share/info
  2.  
  3. 192.168.1.101:/data/info /share/info nfs user,rw,nfsvers=3,auto 0 0
  4.  
  5. #
  6. # /etc/nfsmount.conf - see nfsmount.conf(5) for details
  7. #
  8. # This is an NFS mount configuration file. This file can be broken
  9. # up into three different sections: Mount, Server and Global
  10. #
  11. # [ MountPoint "Mount_point" ]
  12. # This section defines all the mount options that
  13. # should be used on a particular mount point. The '<Mount_Point>'
  14. # string need to be an exact match of the path in the mount
  15. # command. Example:
  16. # [ MountPoint "/export/home" ]
  17. # background=True
  18. # Would cause all mount to /export/home would be done in
  19. # the background
  20. #
  21. # [ Server "Server_Name" ]
  22. # This section defines all the mount options that
  23. # should be used on mounts to a particular NFS server.
  24. # Example:
  25. # [ Server "nfsserver.foo.com" ]
  26. # rsize=32k
  27. # wsize=32k
  28. # All reads and writes to the 'nfsserver.foo.com' server
  29. # will be done with 32k (32768 bytes) block sizes.
  30. #
  31. [ NFSMount_Global_Options ]
  32. # This statically named section defines global mount
  33. # options that can be applied on all NFS mount.
  34. #
  35. # Protocol Version [2,3,4]
  36. # This defines the default protocol version which will
  37. # be used to start the negotiation with the server.
  38. # Defaultvers=4
  39. #
  40. # Setting this option makes it mandatory the server supports the
  41. # given version. The mount will fail if the given version is
  42. # not support by the server.
  43. # Nfsvers=4
  44. #
  45. # Network Protocol [udp,tcp,rdma] (Note: values are case sensitive)
  46. # This defines the default network protocol which will
  47. # be used to start the negotiation with the server.
  48. # Defaultproto=tcp
  49. #
  50. # Setting this option makes it mandatory the server supports the
  51. # given network protocol. The mount will fail if the given network
  52. # protocol is not supported by the server.
  53. # Proto=tcp
  54. #
  55. # The number of times a request will be retired before
  56. # generating a timeout
  57. # Retrans=2
  58. #
  59. # The number of minutes that will retry mount
  60. # Retry=2
  61. #
  62. # The minimum time (in seconds) file attributes are cached
  63. # acregmin=30
  64. #
  65. # The Maximum time (in seconds) file attributes are cached
  66. # acregmin=60
  67. #
  68. # The minimum time (in seconds) directory attributes are cached
  69. # acregmin=30
  70. #
  71. # The Maximum time (in seconds) directory attributes are cached
  72. # acregmin=60
  73. #
  74. # Enable Access Control Lists
  75. # Acl=False
  76. #
  77. # Enable Attribute Caching
  78. # Ac=True
  79. #
  80. # Do mounts in background (i.e. asynchronously)
  81. # Background=False
  82. #
  83. # Close-To-Open cache coherence
  84. # Cto=True
  85. #
  86. # Do mounts in foreground (i.e. synchronously)
  87. # Foreground=True
  88. #
  89. # How to handle times out from servers (Hard is STRONGLY suggested)
  90. # Hard=True
  91. # Soft=False
  92. #
  93. # Enable File Locking
  94. # Lock=True
  95. #
  96. # Enable READDIRPLUS on NFS version 3 mounts
  97. # Rdirplus=True
  98. #
  99. # Maximum Read Size (in Bytes)
  100. # Rsize=8k
  101. #
  102. # Maximum Write Size (in Bytes)
  103. # Wsize=8k
  104. #
  105. # Maximum Server Block Size (in Bytes)
  106. # Bsize=8k
  107. #
  108. # Ignore unknown mount options
  109. # Sloppy=False
  110. #
  111. # Share Data and Attribute Caches
  112. # Sharecache=True
  113. #
  114. # The amount of time, in tenths of a seconds, the client
  115. # will wait for a response from the server before retransmitting
  116. # the request.
  117. # Timeo=600
  118. #
  119. # Sets all attributes times to the same time (in seconds)
  120. # actimeo=30
  121. #
  122. # Server Mountd port mountport
  123. # mountport=4001
  124. #
  125. # Server Mountd Protocol
  126. # mountproto=tcp
  127. #
  128. # Server Mountd Version
  129. # mounvers=3
  130. #
  131. # Server Mountd Host
  132. # mounthost=hostname
  133. #
  134. # Server Port
  135. # Port=2049
  136. #
  137. # RPCGSS security flavors
  138. # [none, sys, krb5, krb5i, krb5p ]
  139. # Sec=sys
  140. #
  141. # Allow Signals to interrupt file operations
  142. # Intr=True
  143. #
  144. # Specifies how the kernel manages its cache of directory
  145. # Lookupcache=all|none|pos|positive
  146. #
  147. # Turn of the caching of that access time
  148. # noatime=True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement