pbs_server.8B 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH pbs_server 8B "19 February 2018" Local "PBS Professional"
  37. .SH NAME
  38. .B pbs_server
  39. - start a PBS batch server
  40. .SH SYNOPSIS
  41. .B pbs_server
  42. [-a <active>]
  43. [-A <acctfile>]
  44. [-C]
  45. [-d <config path>]
  46. .RS 11
  47. [-e <mask>]
  48. [-F <delay>]
  49. [-L <logfile>]
  50. [-M <MoM port>]
  51. [-N]
  52. [-p <port number>]
  53. [-R <MoM RPP port>]
  54. [-S <default scheduler port>]
  55. [-s <replacement string>]
  56. [-t <restart type>]
  57. .RE
  58. .B pbs_server
  59. --version
  60. .SH DESCRIPTION
  61. The
  62. .B pbs_server
  63. command starts a batch server on the local host.
  64. Typically, this command is in a local boot file such as
  65. .I /etc/rc.local.
  66. If the batch server is already in running,
  67. .B pbs_server
  68. exits with an error.
  69. .B Required Permission
  70. .br
  71. To ensure that the
  72. .B pbs_server
  73. command is not runnable by the general user community, the server
  74. runs only if its real and effective uid is zero. You must be root
  75. on Linux or Admin on Windows.
  76. .SH OPTIONS
  77. .IP "-A <acctfile>" 10
  78. Specifies an absolute path name for the file to use as the accounting file.
  79. If not specified, the file is named for the current date in the
  80. PBS_HOME/server_priv/accounting directory.
  81. .IP "-a <active> " 10
  82. When
  83. .I True,
  84. the server is in state "active" and the default scheduler is called
  85. to schedule jobs.
  86. When
  87. .I False,
  88. the server is in state "idle" and the default scheduler is not called
  89. to schedule jobs.
  90. Sets the server's
  91. .I scheduling
  92. attribute.
  93. If this option is not specified, the server uses the prior
  94. .I value
  95. for the
  96. .I scheduling
  97. attribute.
  98. .br
  99. Format: Boolean
  100. .br
  101. .IP "-C" 10
  102. The server starts up, creates the database, and exits. Windows only.
  103. .IP "-d <config path>" 10
  104. Specifies the absolute path to the directory containing the server
  105. configuration files, PBS_HOME. Each server must have a different
  106. configuration directory. The default configuration directory is
  107. specified in $PBS_HOME, and is typically
  108. .I /var/spool/PBS .
  109. .IP "-e <mask>"
  110. Specifies a log event mask to be used when logging. See "log_events" in the
  111. pbs_server_attributes(7B) man page.
  112. .IP "-F <delay>"
  113. Specifies the number of seconds that the secondary server should wait
  114. before taking over when it believes the primary server is down. If
  115. the number of seconds is specified as
  116. .I -1,
  117. the secondary will make one
  118. attempt to contact the primary and then become active.
  119. .br
  120. Default:
  121. .I 30 seconds
  122. .IP "-L <logfile>"
  123. Specifies the absolute path name for the log file.
  124. If not specified, the file is named for the current date in the
  125. PBS_HOME/server_logs directory. PBS_HOME is specified in the $PBS_HOME
  126. environment variable or in /etc/pbs.conf; see the
  127. .I -d
  128. option.
  129. .IP "-M <MoM port>"
  130. Specifies the host name and/or port number on which the server should connect
  131. to MOM. The option argument,
  132. .I MoM port,
  133. uses the syntax:
  134. .br
  135. .I \ \ \ [<hostname>][:<port number>]
  136. .br
  137. If
  138. .I hostname
  139. is not specified, the local host is assumed.
  140. .br
  141. If
  142. .I port number
  143. is not specified, the default port is assumed. See the
  144. .I -M
  145. option for pbs_mom(8).
  146. .br
  147. Default:
  148. .I 15002
  149. .IP "-N" 10
  150. The server runs in standalone mode. On Windows, it does not register
  151. as a Windows service. On other platforms, MoM does not detach from the
  152. current session.
  153. .IP "-p <port number>" 10
  154. Specifies the port number on which the server is to listen for batch requests.
  155. If multiple servers are running on a
  156. single host, each must have its own unique port number.
  157. This option is for use in testing with multiple batch systems on a single host.
  158. .br
  159. Default:
  160. .I 15001
  161. .IP "-R <MoM RPP port>"
  162. Specifies the port number on which the server should query the up/down
  163. status of MoM. See the
  164. .I -R
  165. option for pbs_mom(8).
  166. .br
  167. Default:
  168. .I 15003
  169. .IP "-S <default scheduler port>" 10
  170. Specifies the port number to which the server should connect when
  171. contacting the default scheduler. The option argument,
  172. .I default scheduler port,
  173. uses the syntax:
  174. .br
  175. .I \ \ \ [<hostname>][:<port number>]
  176. .br
  177. Default:
  178. .I 15004
  179. .IP "-s <replacement string>" 10
  180. Specifies the string to use when replacing spaces in accounting
  181. entity names. Only available under Windows. See the
  182. .I PBS Professional Administrator's Guide.
  183. .IP "-t <restart type>"
  184. Specifies behavior when the server restarts. The
  185. .I restart type
  186. argument is one of the following:
  187. .RS
  188. .IP cold 7
  189. All jobs are purged. Positive confirmation is required before
  190. this direction is accepted.
  191. .IP create 7
  192. The server discards any existing configuration files: server, nodes, queues,
  193. and jobs, and initialize configuration files to the default values.
  194. The default scheduler is idled (
  195. .I scheduling
  196. is set to
  197. .I False
  198. ). Any multischeds are deleted.
  199. .IP hot 7
  200. All jobs in the Running state are retained in that state. Any job
  201. that was requeued into the Queued state from the Running state when
  202. the server last shut down is run immediately, assuming the required
  203. resources are available. This returns the server to the same state as
  204. when it went down. After those jobs are restarted, normal scheduling
  205. takes place for all remaining queued jobs. All other jobs are
  206. retained in their current state.
  207. .IP
  208. If a job cannot be restarted immediately because of a missing resource, such
  209. as a vnode being down, the server attempts to restart it periodically for
  210. up to 5 minutes. After that period, the server will revert to a normal state,
  211. as if
  212. .I warm
  213. started, and will no longer attempt to restart any remaining jobs
  214. which were running prior to the shutdown.
  215. .IP updatedb 7
  216. Updates format of PBS data from the previous format to the
  217. data service format.
  218. .IP warm 7
  219. All jobs in the Running state are retained in that state. All other
  220. jobs are maintained in their current state. The default scheduler
  221. typically chooses new jobs for execution.
  222. .I warm
  223. is the default if
  224. .I -t
  225. is not specified.
  226. .RE
  227. .LP
  228. .IP "--version" 10
  229. The
  230. .B pbs_server
  231. command returns its PBS version information and exits.
  232. This option can only be used alone.
  233. .SH FILES
  234. .IP $PBS_HOME/server_priv 10
  235. Default directory for configuration files
  236. .IP $PBS_HOME/server_logs 10
  237. Directory for log files recorded by the server
  238. .SH Signal Handling
  239. When it receives the following signals, the server performs the following actions:
  240. .IP SIGHUP
  241. The current server log and accounting log are closed and reopened. This
  242. allows for the prior log to be renamed and a new log started from the time
  243. of the signal.
  244. .IP SIGTERM
  245. Causes a rapid orderly shutdown of
  246. .B pbs_server,
  247. identical to
  248. .I "qterm -t quick".
  249. .IP SIGSHUTDN
  250. On systems where SIGSHUTDN is defined, causes an orderly
  251. .I "quick"
  252. shutdown of the server.
  253. .IP "SIGPIPE, SIGUSR1, SIGUSR2"
  254. These signals are ignored.
  255. .LP
  256. All other signals have their default behavior installed.
  257. .SH Diagnostic Messages
  258. The server will record a diagnostic message in a log file for any
  259. error occurrence. The log files are maintained in the server_logs
  260. directory below the home directory of the server.
  261. If the log file cannot be opened, the diagnostic message is written
  262. to the system console. The server writes its PBS
  263. version and build information to the logfile whenever it starts up or
  264. the logfile is rolled to a new file.
  265. .SH Stopping the PBS Server
  266. .B Stopping the Server on Linux
  267. .br
  268. Use the
  269. .B qterm
  270. command:
  271. .br
  272. .I \ \ \ qterm
  273. .br
  274. (see qterm(8B))
  275. .br
  276. or send a SIGTERM:
  277. .br
  278. .I \ \ \ kill <server PID>
  279. .B Stopping the Server on Windows
  280. .br
  281. if you're running "pbs_server -N" for a standalone mode server,
  282. use:
  283. .br
  284. .I \ \ \ <cntrl>-<break>
  285. .SH EXIT STATUS
  286. .IP Zero
  287. When the server has run in the background and then exits
  288. .IP "Greater than zero"
  289. If the server command fails to begin batch operation
  290. .SH SEE ALSO
  291. The
  292. .I PBS Professional Administrator's Guide
  293. and the following manual pages:
  294. qsub (1B), pbs_connect(3B),
  295. pbs_mom(8B), pbs_sched(8B),
  296. pbsnodes(8B), qdisable(8B), qenable(8B), qmgr(8B), qrun(8B), qstart(8B),
  297. qstop(8B), and qterm(8B)