geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

135 lines
3.6 KiB

  1. .\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\"
  13. .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
  14. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
  17. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. .\" SUCH DAMAGE.
  24. .\"
  25. .\" $FreeBSD$
  26. .\"
  27. .Dd September 8, 2016
  28. .Dt GGATED 8
  29. .Os
  30. .Sh NAME
  31. .Nm ggated
  32. .Nd "GEOM Gate network daemon"
  33. .Sh SYNOPSIS
  34. .Nm
  35. .Op Fl h
  36. .Op Fl n
  37. .Op Fl v
  38. .Op Fl a Ar address
  39. .Op Fl p Ar port
  40. .Op Fl q Ar queue_size
  41. .Op Fl F Ar pidfile
  42. .Op Fl R Ar rcvbuf
  43. .Op Fl S Ar sndbuf
  44. .Op Ar "exports file"
  45. .Sh DESCRIPTION
  46. The
  47. .Nm
  48. utility is a network server for the GEOM Gate class.
  49. It runs on a server machine to service GEOM Gate requests from workers
  50. placed on a client machine.
  51. Keep in mind, that connections between
  52. .Xr ggatec 8
  53. and
  54. .Nm
  55. are not encrypted.
  56. .Pp
  57. Available options:
  58. .Bl -tag -width ".Ar exports\ file"
  59. .It Fl a Ar address
  60. Specifies an IP address to bind to.
  61. .It Fl h
  62. Print available options.
  63. .It Fl n
  64. Do not use
  65. .Dv TCP_NODELAY
  66. option on TCP sockets.
  67. .It Fl p Ar port
  68. Port on which
  69. .Nm
  70. listens for connections.
  71. Default is 3080.
  72. .It Fl q Ar queue_size
  73. The number of IOs to queue to the disks at once.
  74. The default is 20.
  75. If you have a large number of disks and/or you are not seeing the expected
  76. number of IOPS, increase this parameter.
  77. .It Fl F Ar pidfile
  78. PID file that
  79. .Nm
  80. uses.
  81. .It Fl R Ar rcvbuf
  82. Size of receive buffer to use.
  83. When not specified, the system default is used.
  84. .It Fl S Ar sndbuf
  85. Size of send buffer to use.
  86. When not specified, the system default is used.
  87. .It Fl v
  88. Do not fork, run in foreground and print debug information on standard
  89. output.
  90. .It Ar "exports file"
  91. An alternate location for the exports file.
  92. .El
  93. .Pp
  94. The format of an exports file is as follows:
  95. .Bd -literal -offset indent
  96. 1.2.3.4 RO /dev/cd0
  97. 1.2.3.0/24 RW /tmp/test.img
  98. hostname WO /tmp/image
  99. .Ed
  100. .Sh FILES
  101. .Bl -tag -width ".Pa /var/run/ggated.pid" -compact
  102. .It Pa /var/run/ggated.pid
  103. The default location of the
  104. .Nm
  105. PID file.
  106. .El
  107. .Sh EXIT STATUS
  108. Exit status is 0 on success, or 1 if the command fails.
  109. To get details about the failure,
  110. .Nm
  111. should be called with the
  112. .Fl v
  113. option.
  114. .Sh EXAMPLES
  115. Export CD-ROM device and a file:
  116. .Bd -literal -offset indent
  117. # echo "1.2.3.0/24 RO /dev/cd0" > /etc/gg.exports
  118. # echo "client RW /image" >> /etc/gg.exports
  119. # ggated
  120. .Ed
  121. .Sh SEE ALSO
  122. .Xr geom 4 ,
  123. .Xr ggatec 8 ,
  124. .Xr ggatel 8
  125. .Sh HISTORY
  126. The
  127. .Nm
  128. utility appeared in
  129. .Fx 5.3 .
  130. .Sh AUTHORS
  131. The
  132. .Nm
  133. utility as well as this manual page was written by
  134. .An Pawel Jakub Dawidek Aq Mt pjd@FreeBSD.org .