Don't fail to build documentation if kindlegen doesn't exist
[openafs.git] / doc / xml / AdminGuide / auagd009.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter id="HDRWQ142">
3   <title>Monitoring and Controlling Server Processes</title>
4
5   <para>
6   <indexterm>
7     <primary>monitoring</primary>
8
9     <secondary>server processes</secondary>
10   </indexterm>
11
12   <indexterm>
13     <primary>BOS Server</primary>
14
15     <secondary>monitoring server processes</secondary>
16   </indexterm>
17
18   One of your most important responsibilities as a system administrator is ensuring that the processes on file server machines
19   are running correctly. The BOS Server, which runs on every file server machine, relieves you of much of the responsibility by
20   constantly monitoring the other AFS server processes on its machine. It can automatically restart processes that have failed,
21   ordering the restarts to take interdependencies into account.</para>
22
23   <para>Because different file server machines run different combinations of processes, you must define which processes the BOS
24   Server on each file server machine is to monitor (to learn how, see <link linkend="HDRWQ154">Controlling and Checking Process
25   Status</link>).</para>
26
27   <para>It is sometimes necessary to take direct control of server process status before performing routine maintenance or
28   correcting problems that the BOS Server cannot correct (such as problems with database replication or mutual authentication). At
29   those times, you control process status through the BOS Server by issuing <emphasis role="bold">bos</emphasis> commands.</para>
30
31   <sect1 id="HDRWQ143">
32     <title>Summary of Instructions</title>
33
34     <para>This chapter explains how to perform the following tasks by using the indicated commands:</para>
35
36     <informaltable frame="none">
37       <tgroup cols="2">
38         <tbody>
39           <row>
40             <entry>Examine process status</entry>
41
42             <entry><emphasis role="bold">bos status</emphasis></entry>
43           </row>
44
45           <row>
46             <entry>Examine information from the <emphasis role="bold">BosConfig file</emphasis> file</entry>
47
48             <entry><emphasis role="bold">bos status</emphasis> with <emphasis role="bold">-long</emphasis> flag</entry>
49           </row>
50
51           <row>
52             <entry>Create a process instance</entry>
53
54             <entry><emphasis role="bold">bos create</emphasis></entry>
55           </row>
56
57           <row>
58             <entry>Stop a process</entry>
59
60             <entry><emphasis role="bold">bos stop</emphasis></entry>
61           </row>
62
63           <row>
64             <entry>Start a stopped process</entry>
65
66             <entry><emphasis role="bold">bos start</emphasis></entry>
67           </row>
68
69           <row>
70             <entry>Stop a process temporarily</entry>
71
72             <entry><emphasis role="bold">bos shutdown</emphasis></entry>
73           </row>
74
75           <row>
76             <entry>Start a temporarily stopped process</entry>
77
78             <entry><emphasis role="bold">bos startup</emphasis></entry>
79           </row>
80
81           <row>
82             <entry>Stop and immediately restart a process</entry>
83
84             <entry><emphasis role="bold">bos restart</emphasis></entry>
85           </row>
86
87           <row>
88             <entry>Stop and immediately restart all processes</entry>
89
90             <entry><emphasis role="bold">bos restart</emphasis> with <emphasis role="bold">-bosserver</emphasis> flag</entry>
91           </row>
92
93           <row>
94             <entry>Examine BOS Server's restart times</entry>
95
96             <entry><emphasis role="bold">bos getrestart</emphasis></entry>
97           </row>
98
99           <row>
100             <entry>Set BOS Server's restart times</entry>
101
102             <entry><emphasis role="bold">bos setrestart</emphasis></entry>
103           </row>
104
105           <row>
106             <entry>Examine a log file</entry>
107
108             <entry><emphasis role="bold">bos getlog</emphasis></entry>
109           </row>
110
111           <row>
112             <entry>Execute a command remotely</entry>
113
114             <entry><emphasis role="bold">bos exec</emphasis></entry>
115           </row>
116         </tbody>
117       </tgroup>
118     </informaltable>
119   </sect1>
120
121   <sect1 id="HDRWQ145">
122     <title>Brief Descriptions of the AFS Server Processes</title>
123
124     <para>This section briefly describes the different server processes that can run on an AFS server machine. In cells with
125     multiple server machines, not all processes necessarily run on all machines.</para>
126
127     <indexterm>
128       <primary>server process</primary>
129
130       <secondary>different names for</secondary>
131     </indexterm>
132
133     <para>An AFS server process is referred to in one of three ways, depending on the context: <itemizedlist>
134         <listitem>
135           <para>The output from the <emphasis role="bold">bos status</emphasis> command refers to a process by the name assigned
136           when the <emphasis role="bold">bos create</emphasis> command creates its entry in the <emphasis
137           role="bold">/usr/afs/local/BosConfig</emphasis> file. The name can differ from machine to machine, but it is easiest to
138           maintain the cell if you assign the same name on all machines. The <emphasis>OpenAFS Quick Beginnings</emphasis> and the
139           reference page for the <emphasis role="bold">bos create</emphasis> command list the conventional names. Examples are
140           <emphasis role="bold">bosserver</emphasis>, <emphasis role="bold">kaserver</emphasis>, and <emphasis
141           role="bold">vlserver</emphasis>.</para>
142         </listitem>
143
144         <listitem>
145           <para>The process listing produced by the standard <emphasis role="bold">ps</emphasis> command generally matches the
146           process's binary file. Examples of process binary files are <emphasis role="bold">/usr/afs/bin/bosserver</emphasis>,
147           <emphasis role="bold">/usr/afs/bin/kaserver</emphasis>, and <emphasis role="bold">/usr/afs/bin/vlserver</emphasis>.</para>
148         </listitem>
149
150         <listitem>
151           <para>In most contexts, including most references in the documentation, a process is referred to as (for example) the
152           <emphasis role="bold">Basic OverSeer (BOS) Server</emphasis>, the <emphasis role="bold">Authentication Server</emphasis>,
153           or the <emphasis role="bold">Volume Location Server</emphasis>.</para>
154         </listitem>
155       </itemizedlist></para>
156
157     <para>The following sections specify each name for the process as well as some of the administrative tasks in which you use the
158     process. For a more general description of the servers, see <link linkend="HDRWQ17">AFS Server Processes and the Cache
159     Manager</link>.</para>
160
161     <sect2 id="HDRWQ146">
162       <title>The bosserver Process: the Basic OverSeer Server</title>
163
164       <indexterm>
165         <primary>BOS Server</primary>
166
167         <secondary>as bosserver process</secondary>
168       </indexterm>
169
170       <indexterm>
171         <primary>server process</primary>
172
173         <secondary>bosserver</secondary>
174       </indexterm>
175
176       <para>The <emphasis role="bold">bosserver</emphasis> process, which runs on every AFS server machine, is the Basic OverSeer
177       (BOS) Server responsible for monitoring the other AFS server processes running on its machine. If a process fails, the BOS
178       Server can restart it automatically, without human intervention. It takes interdependencies into account when restarting a
179       process that has multiple component processes (such as the <emphasis role="bold">fs</emphasis> process described in <link
180       linkend="HDRWQ148">The fs Collection of Processes: the File Server, Volume Server and Salvager</link>).</para>
181
182       <indexterm>
183         <primary>usr/afs/bin/bosserver</primary>
184       </indexterm>
185
186       <para>Because the BOS Server does not monitor or restart itself, it does not appear in the output from the <emphasis
187       role="bold">bos status</emphasis> command. It appears in the <emphasis role="bold">ps</emphasis> command's output as
188       <computeroutput>/usr/afs/bin/bosserver</computeroutput>.</para>
189
190       <indexterm>
191         <primary>BOS Server</primary>
192
193         <secondary>when to contact</secondary>
194       </indexterm>
195
196       <indexterm>
197         <primary>contacting processes</primary>
198
199         <secondary>BOS Server</secondary>
200       </indexterm>
201
202       <indexterm>
203         <primary>bos commands</primary>
204
205         <secondary>summary of functions</secondary>
206       </indexterm>
207
208       <para>As a system administrator, you contact the BOS Server when you issue <emphasis role="bold">bos</emphasis> commands to
209       perform the following kinds of tasks. <itemizedlist>
210           <listitem>
211             <para>Defining the processes for the BOS Server to monitor by creating entries in the <emphasis
212             role="bold">/usr/afs/local/BosConfig</emphasis> file as described in <link linkend="HDRWQ154">Controlling and Checking
213             Process Status</link></para>
214           </listitem>
215
216           <listitem>
217             <para>Stopping and starting processes on the file server machines according to subsequent instructions in this
218             chapter</para>
219           </listitem>
220
221           <listitem>
222             <para>Defining your cell's database server machines in the <emphasis role="bold">/usr/afs/etc/CellServDB</emphasis> file
223             as described in <link linkend="HDRWQ118">Maintaining the Server CellServDB File</link></para>
224           </listitem>
225
226           <listitem>
227             <para>Defining AFS server encryption keys in the <emphasis role="bold">/usr/afs/etc/KeyFile</emphasis> file as described
228             in <link linkend="HDRWQ355">Managing Server Encryption Keys</link>.</para>
229           </listitem>
230
231           <listitem>
232             <para>Granting system administrator privileges with respect to BOS Server, Volume Server, and Backup Server operations,
233             by adding a user to the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file as described in <link
234             linkend="HDRWQ592">Administering the UserList File</link></para>
235           </listitem>
236
237           <listitem>
238             <para>Setting authorization checking requirements on a server machine as described in <link linkend="HDRWQ123">Managing
239             Authentication and Authorization Requirements</link></para>
240           </listitem>
241         </itemizedlist></para>
242     </sect2>
243
244     <sect2 id="HDRWQ147">
245       <title>The buserver Process: the Backup Server</title>
246
247       <indexterm>
248         <primary>Backup Server</primary>
249
250         <secondary>as buserver process</secondary>
251       </indexterm>
252
253       <indexterm>
254         <primary>server process</primary>
255
256         <secondary>buserver</secondary>
257       </indexterm>
258
259       <para>The <emphasis role="bold">buserver</emphasis> process, which runs on database server machines, is the Backup Server. It
260       maintains information about Backup System configuration and operations in the Backup Database.</para>
261
262       <para>The process appears as <computeroutput>buserver</computeroutput> in the <emphasis role="bold">bos status</emphasis>
263       command's output, if the conventional name is assigned. It appears in the <emphasis role="bold">ps</emphasis> command's output
264       as <computeroutput>/usr/afs/bin/buserver</computeroutput>.</para>
265
266       <indexterm>
267         <primary>Backup Server</primary>
268
269         <secondary>when to contact</secondary>
270       </indexterm>
271
272       <indexterm>
273         <primary>contacting processes</primary>
274
275         <secondary>Backup Server</secondary>
276       </indexterm>
277
278       <para>As a system administrator, you contact the Backup Server when you issue any <emphasis role="bold">backup</emphasis>
279       command that manipulates information in the Backup Database, including those that change Backup System configuration
280       information, that dump data from volumes to permanent storage, or that restore data to AFS. See <link
281       linkend="HDRWQ248">Configuring the AFS Backup System</link> and <link linkend="HDRWQ283">Backing Up and Restoring AFS
282       Data</link>.</para>
283     </sect2>
284
285     <sect2 id="HDRWQ148">
286       <title>The fs Collection of Processes: the File Server, Volume Server and Salvager</title>
287
288       <indexterm>
289         <primary>fs process</primary>
290       </indexterm>
291
292       <indexterm>
293         <primary>server process</primary>
294
295         <secondary>fs</secondary>
296       </indexterm>
297
298       <para>The <emphasis role="bold">fs</emphasis> process, which runs on every file server machine, combines three component
299       processes: File Server, Volume Server and Salvager. The three components perform independent functions, but are controlled as
300       a single process for the following reasons. <itemizedlist>
301           <listitem>
302             <para>They all operate on the same data, namely files and directories stored in AFS volumes. Combining them as a single
303             process enables them to coordinate their actions, never attempting simultaneous operations on the same data that can
304             possibly corrupt it.</para>
305           </listitem>
306
307           <listitem>
308             <para>It enables the BOS Server to stop and restart the processes in the required order. When the File Server fails, the
309             BOS Server stops the Volume Server and runs the Salvager to correct any corruption that resulted from the failure. (The
310             Salvager runs only in this special circumstance or when you invoke it yourself by issuing the <emphasis role="bold">bos
311             salvage</emphasis> command as instructed in <link linkend="HDRWQ232">Salvaging Volumes</link>.) If only the Volume
312             Server fails, the BOS Server can restart it without affecting the File Server or Salvager.</para>
313           </listitem>
314         </itemizedlist></para>
315
316       <para>The File Server component handles AFS data at the level of files and directories, manipulating file system elements as
317       requested by application programs and the standard operating system commands. Its main duty is to deliver requested files to
318       client machines and store them again on the server machine when the client is finished. It also maintains status and
319       protection information about each file and directory. It runs continuously during normal operation.</para>
320
321       <indexterm>
322         <primary>File Server</primary>
323
324         <secondary>as part of fs process</secondary>
325       </indexterm>
326
327       <para>The Volume Server component handles AFS data at the level of complete volumes rather than files and directories. In
328       response to <emphasis role="bold">vos</emphasis> commands, it creates, removes, moves, dumps and restores entire volumes,
329       among other actions. It runs continuously during normal operation.</para>
330
331       <indexterm>
332         <primary>Volume Server</primary>
333
334         <secondary>as part of fs process</secondary>
335       </indexterm>
336
337       <para>The Salvager component runs only after the failure of one of the other two processes. It checks the file system for
338       internal consistency and repairs any errors it finds.</para>
339
340       <indexterm>
341         <primary>Salvager</primary>
342
343         <secondary>as part of fs process</secondary>
344       </indexterm>
345
346       <indexterm>
347         <primary>file system</primary>
348
349         <secondary>salvager</secondary>
350
351         <see>Salvager</see>
352       </indexterm>
353
354       <para>The process appears as <computeroutput>fs</computeroutput> in the <emphasis role="bold">bos status</emphasis> command's
355       output, if the conventional name is assigned. An auxiliary message reports the status of the File Server or Salvager
356       component. See <link linkend="HDRWQ158">Displaying Process Status and Information from the BosConfig File</link>.</para>
357
358       <para>The component processes of the <emphasis role="bold">fs</emphasis> process appear individually in the <emphasis
359       role="bold">ps</emphasis> command's output, as follows. There is no entry for the <computeroutput>fs</computeroutput> process
360       itself. <itemizedlist>
361           <listitem>
362             <para><computeroutput>/usr/afs/bin/fileserver</computeroutput></para>
363           </listitem>
364
365           <listitem>
366             <para><computeroutput>/usr/afs/bin/volserver</computeroutput></para>
367           </listitem>
368
369           <listitem>
370             <para><computeroutput>/usr/afs/bin/salvager</computeroutput></para>
371           </listitem>
372         </itemizedlist></para>
373
374       <indexterm>
375         <primary>File Server</primary>
376
377         <secondary>when to contact</secondary>
378       </indexterm>
379
380       <indexterm>
381         <primary>contacting processes</primary>
382
383         <secondary>File Server</secondary>
384       </indexterm>
385
386       <para>The Cache Manager contacts the File Server component on your behalf whenever you access data or status information in an
387       AFS file or directory or issue file manipulation commands such as the UNIX <emphasis role="bold">cp</emphasis> and <emphasis
388       role="bold">ls</emphasis> commands. You can contact the File Server directly by issuing <emphasis role="bold">fs</emphasis>
389       commands that perform the following functions <itemizedlist>
390           <listitem>
391             <para>Administering the ACL of any directory in the file system as described in <link linkend="HDRWQ562">Managing Access
392             Control Lists</link></para>
393           </listitem>
394
395           <listitem>
396             <para>Installing new partitions for housing AFS volumes, in which case you must restart the <emphasis
397             role="bold">fs</emphasis> process for it to recognize the new partition; for instructions, see <link
398             linkend="HDRWQ130">Adding or Removing Disks and Partitions</link></para>
399           </listitem>
400
401           <listitem>
402             <para>Creating and deleting volume mount points in the AFS filespace as described in <link linkend="HDRWQ208">Mounting
403             Volumes</link></para>
404           </listitem>
405
406           <listitem>
407             <para>Setting volume quota and displaying information about the space used and available in a volume or partition as
408             described in <link linkend="HDRWQ234">Setting and Displaying Volume Quota and Current Size</link></para>
409           </listitem>
410         </itemizedlist></para>
411
412       <indexterm>
413         <primary>Volume Server</primary>
414
415         <secondary>when to contact</secondary>
416       </indexterm>
417
418       <indexterm>
419         <primary>contacting processes</primary>
420
421         <secondary>Volume Server</secondary>
422       </indexterm>
423
424       <para>You contact the Volume Server component when you issue <emphasis role="bold">vos</emphasis> commands that manipulate
425       volumes in any way--creating, removing, replicating, moving, renaming, converting to different formats, and salvaging. For
426       instructions, see <link linkend="HDRWQ174">Managing Volumes</link>.</para>
427
428       <para>The Salvager normally runs automatically in case of a failure. You can also start it with the <emphasis role="bold">bos
429       salvage</emphasis> command as described in <link linkend="HDRWQ232">Salvaging Volumes</link>.</para>
430
431       <indexterm>
432         <primary>Salvager</primary>
433
434         <secondary>when to contact</secondary>
435       </indexterm>
436
437       <indexterm>
438         <primary>contacting processes</primary>
439
440         <secondary>Salvager</secondary>
441       </indexterm>
442     </sect2>
443
444     <sect2 id="HDRWQ149">
445       <title>The kaserver Process: the Authentication Server</title>
446
447       <indexterm>
448         <primary>Authentication Server</primary>
449
450         <secondary>as kaserver process</secondary>
451       </indexterm>
452
453       <indexterm>
454         <primary>server process</primary>
455
456         <secondary>kaserver</secondary>
457       </indexterm>
458
459       <para>The <emphasis role="bold">kaserver</emphasis> process, which runs on database server machines, is the Authentication
460       Server responsible for several aspects of AFS security. It verifies AFS user identity by requiring a password. It maintains
461       all AFS server encryption keys and user passwords in the Authentication Database. The Authentication Server's Ticket Granting
462       Service (TGS) module creates the shared secrets that AFS client and server processes use when establishing secure
463       connections.</para>
464
465       <para>The process appears as <computeroutput>kaserver</computeroutput> in the <emphasis role="bold">bos status</emphasis>
466       command's output, if the conventional name is assigned. The <emphasis role="bold">ka</emphasis> string stands for
467       <emphasis>Kerberos Authentication</emphasis>, reflecting the fact that AFS's authentication protocols are based on Kerberos,
468       which was originally developed at the Massachusetts Institute of Technology's Project Athena.</para>
469
470       <para>It appears in the <emphasis role="bold">ps</emphasis> command's output as
471       <computeroutput>/usr/afs/bin/kaserver</computeroutput>.</para>
472
473       <indexterm>
474         <primary>Authentication Server</primary>
475
476         <secondary>when to contact</secondary>
477       </indexterm>
478
479       <indexterm>
480         <primary>contacting processes</primary>
481
482         <secondary>Authentication Server</secondary>
483       </indexterm>
484
485       <para>As a system administrator, you contact the Authentication Server when you issue <emphasis role="bold">kas</emphasis>
486       commands to perform the following kinds of tasks. <itemizedlist>
487           <listitem>
488             <para>Setting a user's password. Users normally change their own passwords, so you probably perform this task only
489             creating a new user account as described in <link linkend="HDRWQ502">Creating AFS User Accounts</link> and <link
490             linkend="HDRWQ516">Changing AFS Passwords</link>.</para>
491           </listitem>
492
493           <listitem>
494             <para>Setting the AFS server encryption key in the Authentication Database, which the TGS uses to seal server tickets;
495             see <link linkend="HDRWQ355">Managing Server Encryption Keys</link>.</para>
496           </listitem>
497
498           <listitem>
499             <para>Granting or revoking system administrator privileges with respect to the Authentication Server as described in
500             <link linkend="HDRWQ589">Granting Privilege for kas Commands: the ADMIN Flag</link>.</para>
501           </listitem>
502         </itemizedlist></para>
503     </sect2>
504
505     <sect2 id="HDRWQ150">
506       <title>The ptserver Process: the Protection Server</title>
507
508       <indexterm>
509         <primary>Protection Server</primary>
510
511         <secondary>as ptserver process</secondary>
512       </indexterm>
513
514       <indexterm>
515         <primary>server process</primary>
516
517         <secondary>ptserver</secondary>
518       </indexterm>
519
520       <para>The <emphasis role="bold">ptserver</emphasis> process, which runs on database server machines, is the Protection Server.
521       Its main responsibility is maintaining the Protection Database which contains user, machine, and group entries. The Protection
522       Server allocates AFS IDs and maintains the mapping between them and names. The File Server consults the Protection Server when
523       verifying that a user is authorized to perform a requested action.</para>
524
525       <para>The process appears as <computeroutput>ptserver</computeroutput> in the <emphasis role="bold">bos status</emphasis>
526       command's output, if the conventional name is assigned. It appears in the <emphasis role="bold">ps</emphasis> command's output
527       as <computeroutput>/usr/afs/bin/ptserver</computeroutput>.</para>
528
529       <indexterm>
530         <primary>Protection Server</primary>
531
532         <secondary>when to contact</secondary>
533       </indexterm>
534
535       <indexterm>
536         <primary>contacting processes</primary>
537
538         <secondary>Protection Server</secondary>
539       </indexterm>
540
541       <para>As a system administrator, you contact the Protection Server when you issue <emphasis role="bold">pts</emphasis>
542       commands to perform the following kinds of tasks. <itemizedlist>
543           <listitem>
544             <para>Creating a new user, machine, or group entry in the Protection Database as described in <link
545             linkend="HDRWQ531">Administering the Protection Database</link></para>
546           </listitem>
547
548           <listitem>
549             <para>Adding or removing group members or otherwise manipulating Protection Database entries as described in <link
550             linkend="HDRWQ531">Administering the Protection Database</link></para>
551           </listitem>
552
553           <listitem>
554             <para>Granting or revoking system administrator privilege by changing the membership of the <emphasis
555             role="bold">system:administrators</emphasis> group as described in <link linkend="HDRWQ586">Administering the
556             system:administrators Group</link></para>
557           </listitem>
558         </itemizedlist></para>
559     </sect2>
560
561     <sect2 id="HDRWQ151">
562       <title>The runntp Process</title>
563
564       <indexterm>
565         <primary>runntp process</primary>
566       </indexterm>
567
568       <indexterm>
569         <primary>ntpd</primary>
570
571         <secondary>invoked by runntp process</secondary>
572       </indexterm>
573
574       <indexterm>
575         <primary>server process</primary>
576
577         <secondary>runntp</secondary>
578       </indexterm>
579
580       <para>The <emphasis role="bold">runntp</emphasis> process, which runs on every server machine, is a controller program for the
581       Network Time Protocol Daemon (NTPD), which synchronizes the hardware clocks on server machines. You need to run the <emphasis
582       role="bold">runntp</emphasis> process if you are not already running NTP or another time synchronization protocol on your
583       server machines.</para>
584
585       <para>The clocks on database server machines need to be synchronized because AFS's distributed database technology (Ubik)
586       works properly only when the clocks agree within a narrow range of variation (see <link linkend="HDRWQ103">Configuring the
587       Cell for Proper Ubik Operation</link>). The clocks on file server machines need to be correct not only because the File Server
588       sets modification time stamps on files, but because in the conventional configuration they serve as the time source for AFS
589       client machines.</para>
590
591       <para>The process appears as <computeroutput>runntp</computeroutput> in the <emphasis role="bold">bos status</emphasis>
592       command's output, if the conventional name is assigned. It appears in the output from the <emphasis role="bold">ps</emphasis>
593       command as <computeroutput>/usr/afs/bin/runntp</computeroutput>. The <emphasis role="bold">ps</emphasis> command's output also
594       includes an entry called <computeroutput>ntpd</computeroutput>; its exact form depends on the arguments you provide to the
595       <emphasis role="bold">runntp</emphasis> command.</para>
596
597       <indexterm>
598         <primary>ntpd</primary>
599
600         <secondary>when to contact</secondary>
601       </indexterm>
602
603       <indexterm>
604         <primary>contacting processes</primary>
605
606         <secondary>NTPD</secondary>
607       </indexterm>
608
609       <para>As a system administrator, you do not contact the NTPD directly once you have installed it according to the instructions
610       in the <emphasis>OpenAFS Quick Beginnings</emphasis>.</para>
611     </sect2>
612
613     <sect2 id="HDRWQ152">
614       <title>The upserver and upclient Processes: the Update Server</title>
615
616       <indexterm>
617         <primary>Update Server</primary>
618
619         <secondary>as upserver and upclient processes</secondary>
620       </indexterm>
621
622       <indexterm>
623         <primary>server process</primary>
624
625         <secondary>upserver</secondary>
626       </indexterm>
627
628       <indexterm>
629         <primary>server process</primary>
630
631         <secondary>upclient</secondary>
632       </indexterm>
633
634       <para>The Update Server has two separate parts, each of which runs on a different type of server machine. The <emphasis
635       role="bold">upserver</emphasis> process is the server portion of the Update Server. Its function depends on which edition of
636       AFS you use: <itemizedlist>
637           <listitem>
638             <para>With both the United States and international editions, it runs on the binary distribution machine of each system
639             type you use as a server machine, distributing the contents of each one's <emphasis role="bold">/usr/afs/bin</emphasis>
640             directory to the other server machines of that type. This guarantees that all machines have the same version of AFS
641             binaries. (For a list of the binaries, see <link linkend="HDRWQ84">Binaries in the /usr/afs/bin
642             Directory</link>.)</para>
643           </listitem>
644
645           <listitem>
646             <para>In you use the United States edition of AFS, it also runs on the cell's system control machine, distributing the
647             contents of its <emphasis role="bold">/usr/afs/etc</emphasis> directory to all the other server machines in order to
648             synchronize the configuration files stored in that directory. (For a list of the configuration files, see <link
649             linkend="HDRWQ85">Common Configuration Files in the /usr/afs/etc Directory</link>.)</para>
650           </listitem>
651         </itemizedlist></para>
652
653       <para>The <emphasis role="bold">upclient</emphasis> process is the client portion of the Update Server, and like the server
654       portion its function depends on the AFS edition in use. <itemizedlist>
655           <listitem>
656             <para>It runs on every server machine that is not a binary distribution machine, referencing the binary distribution
657             machine of its system type as the source for updates to the binaries in the <emphasis
658             role="bold">/usr/afs/bin</emphasis> directory. The conventional process name to assign is <emphasis
659             role="bold">upclientbin</emphasis>.</para>
660           </listitem>
661
662           <listitem>
663             <para>If you use the United States edition of AFS, another instance of the process runs on every server machine except
664             the system control machine. It references the system control machine as the source for updates to the common
665             configuration files in the <emphasis role="bold">/usr/afs/etc</emphasis> directory. The conventional process name to
666             assign is <emphasis role="bold">upclientetc</emphasis>.</para>
667           </listitem>
668         </itemizedlist></para>
669
670       <para>In output from the <emphasis role="bold">bos status</emphasis> command, the server portion appears as
671       <computeroutput>upserver</computeroutput> and the client portions as <computeroutput>upclientbin</computeroutput> and
672       <computeroutput>upclientetc</computeroutput>, if the conventional names are assigned. In the output from the <emphasis
673       role="bold">ps</emphasis> command, the server portion appears as <computeroutput>/usr/afs/bin/upserver</computeroutput> and
674       the client portions as /usr/afs/bin/upclient.</para>
675
676       <indexterm>
677         <primary>Update Server</primary>
678
679         <secondary>when to contact</secondary>
680       </indexterm>
681
682       <indexterm>
683         <primary>contacting processes</primary>
684
685         <secondary>Update Server</secondary>
686       </indexterm>
687
688       <para>You do not contact the Update Server directly once you have installed it. It operates automatically whenever you use
689       <emphasis role="bold">bos</emphasis> commands to change the files that it distributes.</para>
690     </sect2>
691
692     <sect2 id="HDRWQ153">
693       <title>The vlserver Process: the Volume Location Server</title>
694
695       <indexterm>
696         <primary>VL Server</primary>
697
698         <secondary>as vlserver process</secondary>
699       </indexterm>
700
701       <indexterm>
702         <primary>server process</primary>
703
704         <secondary>vlserver</secondary>
705       </indexterm>
706
707       <para>The <emphasis role="bold">vlserver</emphasis> process, which runs on database server machines, is the Volume Location
708       (VL) Server that automatically tracks which file server machines house each volume, making its location transparent to client
709       applications.</para>
710
711       <para>The process appears as <computeroutput>vlserver</computeroutput> in the <emphasis role="bold">bos status</emphasis>
712       command's output, if the conventional name is assigned. It appears in the <emphasis role="bold">ps</emphasis> command's output
713       as <computeroutput>/usr/afs/bin/vlserver</computeroutput>.</para>
714
715       <indexterm>
716         <primary>VL Server</primary>
717
718         <secondary>when to contact</secondary>
719       </indexterm>
720
721       <indexterm>
722         <primary>contacting processes</primary>
723
724         <secondary>VL Server</secondary>
725       </indexterm>
726
727       <indexterm>
728         <primary>vos commands</primary>
729
730         <secondary>summary of functions</secondary>
731       </indexterm>
732
733       <para>As a system administrator, you contact the VL Server when you issue any <emphasis role="bold">vos</emphasis> command
734       that changes the status of a volume (it records the status changes in the VLDB).</para>
735     </sect2>
736   </sect1>
737
738   <sect1 id="HDRWQ154">
739     <title>Controlling and Checking Process Status</title>
740
741     <para>To define the AFS server processes that run on a server machine, use the <emphasis role="bold">bos create</emphasis>
742     command to create entries for them in the local <emphasis role="bold">/usr/afs/local/BosConfig</emphasis> file. The BOS Server
743     monitors the processes listed in the <emphasis role="bold">BosConfig</emphasis> file that are marked with the
744     <computeroutput>Run</computeroutput> status flag, and automatically attempts to restart them if they fail. After creating
745     process entries, you use other commands from the <emphasis role="bold">bos</emphasis> suite to stop and start processes or
746     change the status flag as desired.</para>
747
748     <para>Never edit the <emphasis role="bold">BosConfig</emphasis> file directly rather than using <emphasis
749     role="bold">bos</emphasis> commands. Similarly, it is not a good practice to run server processes without listing them in the
750     <emphasis role="bold">BosConfig</emphasis> file, or to stop them using process termination commands such as the UNIX <emphasis
751     role="bold">kill</emphasis> command.</para>
752
753     <sect2 id="Header_176">
754       <title>The Information in the BosConfig File</title>
755
756       <indexterm>
757         <primary>BosConfig file</primary>
758
759         <secondary>information</secondary>
760       </indexterm>
761
762       <indexterm>
763         <primary>files</primary>
764
765         <secondary>BosConfig</secondary>
766       </indexterm>
767
768       <para>A process's entry in the <emphasis role="bold">BosConfig</emphasis> file includes the following information:
769       <itemizedlist>
770           <listitem>
771             <para>The process's name. The recommended conventional names are defined in both the <emphasis>OpenAFS Quick
772             Beginnings</emphasis> and <link linkend="HDRWQ161">Creating and Removing Processes</link>. The name of a simple process
773             usually matches the name of its binary file (for example, <emphasis role="bold">ptserver</emphasis> for the Protection
774             Server).</para>
775           </listitem>
776
777           <listitem>
778             <para>Its type, which is one of the following: <variablelist>
779                 <indexterm>
780                   <primary>simple-type server process</primary>
781
782                   <secondary>defined</secondary>
783                 </indexterm>
784
785                 <indexterm>
786                   <primary>server process</primary>
787
788                   <secondary>simple type, defined</secondary>
789                 </indexterm>
790
791                 <varlistentry>
792                   <term><emphasis role="bold">simple</emphasis></term>
793
794                   <listitem>
795                     <para>A process that runs independently of any other on the server machine. If several simple processes fail at
796                     the same time, the BOS Server can restart them in any order. All standard AFS processes except the <emphasis
797                     role="bold">fs</emphasis> process are simple.</para>
798                   </listitem>
799                 </varlistentry>
800
801                 <varlistentry>
802                   <term><emphasis role="bold">fs</emphasis></term>
803
804                   <listitem>
805                     <indexterm>
806                       <primary>fs-type server process</primary>
807
808                       <secondary>defined</secondary>
809                     </indexterm>
810
811                     <indexterm>
812                       <primary>server process</primary>
813
814                       <secondary>fs type, defined</secondary>
815                     </indexterm>
816
817                     <indexterm>
818                       <primary>File Server</primary>
819
820                       <secondary>as part of fs process</secondary>
821                     </indexterm>
822
823                     <indexterm>
824                       <primary>Volume Server</primary>
825
826                       <secondary>as part of fs process</secondary>
827                     </indexterm>
828
829                     <indexterm>
830                       <primary>Salvager</primary>
831
832                       <secondary>as part of fs process</secondary>
833                     </indexterm>
834
835                     <para>A process type reserved for the server process for which the conventional name is also <emphasis
836                     role="bold">fs</emphasis>. This process combines three components: the File Server, the Volume Server, and the
837                     Salvager.</para>
838
839                     <indexterm>
840                       <primary>cron-type server process</primary>
841
842                       <secondary>defined</secondary>
843                     </indexterm>
844
845                     <indexterm>
846                       <primary>server process</primary>
847
848                       <secondary>cron type, defined</secondary>
849                     </indexterm>
850                   </listitem>
851                 </varlistentry>
852
853                 <varlistentry>
854                   <term><emphasis role="bold">cron</emphasis></term>
855
856                   <listitem>
857                     <para>A process that runs at a defined time rather than continuously. There are no standard processes of this
858                     type.</para>
859                   </listitem>
860                 </varlistentry>
861               </variablelist></para>
862
863             <indexterm>
864               <primary>status flag for process in BosConfig file</primary>
865
866               <secondary>Run and Not Run, meaning of</secondary>
867             </indexterm>
868
869             <indexterm>
870               <primary>Run status flag in BosConfig file</primary>
871
872               <secondary>defined</secondary>
873             </indexterm>
874
875             <indexterm>
876               <primary>NotRun status flag in BosConfig file</primary>
877
878               <secondary>defined</secondary>
879             </indexterm>
880
881             <indexterm>
882               <primary>process</primary>
883
884               <secondary>status flag in BosConfig file</secondary>
885             </indexterm>
886           </listitem>
887
888           <listitem>
889             <para>Its status flag, which tells the BOS Server whether it performs the following two actions with respect to the
890             process: <itemizedlist>
891                 <listitem>
892                   <para>Start the process during BOS Server initialization</para>
893                 </listitem>
894
895                 <listitem>
896                   <para>Restart the process if it (the process) fails</para>
897                 </listitem>
898               </itemizedlist></para>
899
900             <para>The two possible values are <computeroutput>Run</computeroutput> (which directs the BOS Server to perform these
901             actions) and <computeroutput>NotRun</computeroutput> (which directs the BOS Server to ignore the process). The BOS
902             Server itself never changes the setting of this flag, even if the process fails repeatedly. Also, this flag is for
903             internal use only; it does not appear in the <emphasis role="bold">bos status</emphasis> command's output.</para>
904           </listitem>
905
906           <listitem>
907             <para>Its command parameters, which are the commands that the BOS Server runs to start the process. <itemizedlist>
908                 <indexterm>
909                   <primary>command parameters</primary>
910
911                   <secondary>in BosConfig file</secondary>
912                 </indexterm>
913
914                 <listitem>
915                   <para>A simple processes has one: the complete pathname to its binary file</para>
916                 </listitem>
917
918                 <listitem>
919                   <para>The <emphasis role="bold">fs</emphasis> process has three: the complete pathnames to each of the three
920                   component processes (<emphasis role="bold">/usr/afs/bin/fileserver</emphasis>, <emphasis
921                   role="bold">/usr/afs/bin/volserver</emphasis>, and <emphasis role="bold">/usr/afs/bin/salvager</emphasis>)</para>
922                 </listitem>
923
924                 <listitem>
925                   <para>A cron process has two: the first the complete pathname to its binary file, the second the time at which the
926                   BOS Server runs it</para>
927                 </listitem>
928               </itemizedlist></para>
929           </listitem>
930         </itemizedlist></para>
931
932       <para>In addition to process definitions, the <emphasis role="bold">BosConfig</emphasis> file also records automatic restart
933       times for processes that have new binaries, and for all server processes including the BOS Server. See <link
934       linkend="HDRWQ171">Setting the BOS Server's Restart Times</link>.</para>
935     </sect2>
936
937     <sect2 id="HDRWQ155">
938       <title>How the BOS Server Uses the Information in the BosConfig File</title>
939
940       <indexterm>
941         <primary>BOS Server</primary>
942
943         <secondary>use of BosConfig file</secondary>
944       </indexterm>
945
946       <indexterm>
947         <primary>BOS Server</primary>
948
949         <secondary>memory state</secondary>
950       </indexterm>
951
952       <indexterm>
953         <primary>memory state of BOS Server</primary>
954       </indexterm>
955
956       <para>Whenever the BOS Server starts or restarts, it reads the <emphasis role="bold">BosConfig</emphasis> file to learn which
957       processes it is to start and monitor. It transfers the information into kernel memory and does not read the <emphasis
958       role="bold">BosConfig</emphasis> file again until it next restarts. This implies that the BOS Server's memory state can change
959       independently of the <emphasis role="bold">BosConfig</emphasis> file. You can, for example, stop a process but leave its
960       status flag in the <emphasis role="bold">BosConfig</emphasis> file as <computeroutput>Run</computeroutput>, or start a process
961       even though its status flag in the <emphasis role="bold">BosConfig</emphasis> file is
962       <computeroutput>NotRun</computeroutput>.</para>
963     </sect2>
964
965     <sect2 id="HDRWQ156">
966       <title>About Starting and Stopping the Database Server Processes</title>
967
968       <indexterm>
969         <primary>database server process</primary>
970
971         <secondary>about starting and stopping</secondary>
972       </indexterm>
973
974       <indexterm>
975         <primary>Authentication Server</primary>
976
977         <secondary>about starting and stopping</secondary>
978       </indexterm>
979
980       <indexterm>
981         <primary>Protection Server</primary>
982
983         <secondary>about starting and stopping</secondary>
984       </indexterm>
985
986       <indexterm>
987         <primary>VL Server</primary>
988
989         <secondary>about starting and stopping</secondary>
990       </indexterm>
991
992       <indexterm>
993         <primary>Backup Server</primary>
994
995         <secondary>about starting and stopping</secondary>
996       </indexterm>
997
998       <indexterm>
999         <primary>starting</primary>
1000
1001         <secondary>database server process, about</secondary>
1002       </indexterm>
1003
1004       <indexterm>
1005         <primary>stopping</primary>
1006
1007         <secondary>database server process, about</secondary>
1008       </indexterm>
1009
1010       <para>When you start or stop a database server process (Authentication Server, Backup Server, Protection Server, or Volume
1011       Location Server) for more than a short time, you must follow the instructions in the <emphasis>OpenAFS Quick
1012       Beginnings</emphasis> for installing or removing a database server machine. Here is a summary of the tasks you must perform to
1013       preserve correct AFS functioning. <itemizedlist>
1014           <listitem>
1015             <para>Start or stop all four database server processes on that machine. All AFS server processes and the Cache Manager
1016             processes expect all four database server processes to be running on each machine listed in the <emphasis
1017             role="bold">CellServDB</emphasis> file. There is no way to indicate in the file that a machine is running only some of
1018             the database server processes.</para>
1019           </listitem>
1020
1021           <listitem>
1022             <para>Add or remove the machine in the <emphasis role="bold">/usr/afs/etc/CellServDB</emphasis> file on all server
1023             machines and the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file on all client machines.</para>
1024           </listitem>
1025
1026           <listitem>
1027             <para>Restart the database server processes on the other database server machines to force an election of a new Ubik
1028             coordinator for each one.</para>
1029           </listitem>
1030         </itemizedlist></para>
1031     </sect2>
1032
1033     <sect2 id="HDRWQ157">
1034       <title>About Starting and Stopping the Update Server</title>
1035
1036       <indexterm>
1037         <primary>Update Server</primary>
1038
1039         <secondary>about starting and stopping</secondary>
1040       </indexterm>
1041
1042       <para>In the conventional cell configuration, one server machine of each system type acts as a binary distribution machine,
1043       running the server portion of the Update Server (<emphasis role="bold">upserver</emphasis> process) to distribute the contents
1044       of its <emphasis role="bold">/usr/afs/bin</emphasis> directory. The other server machines of its system type run an instance
1045       of the Update Server client portion (by convention called <emphasis role="bold">upclientbin</emphasis>) that references the
1046       binary distribution machine.</para>
1047
1048       <para>If you run the United States edition of AFS, it is conventional for the first server machine you install to act as the
1049       system control machine, running the server portion of the Update Server (<emphasis role="bold">upserver</emphasis> process) to
1050       distribute the contents of its <emphasis role="bold">/usr/afs/etc</emphasis> directory. All other server machines run an
1051       instance of the Update Server client portion (by convention called <emphasis role="bold">upclientetc</emphasis>) that
1052       references the system control machine.</para>
1053
1054       <note>
1055         <para>If you are using the international edition of AFS, do not use the Update Server to distribute the contents of the
1056         <emphasis role="bold">/usr/afs/etc</emphasis> directory (you do not run a system control machine). Ignore all references to
1057         the process in this chapter.</para>
1058       </note>
1059
1060       <para>It is simplest not to move binary distribution or system control responsibilities to a different machine unless you
1061       completely decommission a machine that is currently serving in one of those roles. Running the Update Server usually imposes
1062       very little processing load. If you must move the functionality, perform the following related tasks. <itemizedlist>
1063           <listitem>
1064             <para>If you replace the system control machine, you must stop the <emphasis role="bold">upclientetc</emphasis> process
1065             on every other server machine and define a new one that references the new system control machine.</para>
1066           </listitem>
1067
1068           <listitem>
1069             <para>If you replace a binary distribution machine, you must stop the <emphasis role="bold">upclientbin</emphasis>
1070             process on every other server machine of its system type and define a new one that references the new binary
1071             distribution machine (unless you are no longer running any server machines of that system type).</para>
1072           </listitem>
1073         </itemizedlist></para>
1074     </sect2>
1075   </sect1>
1076
1077   <sect1 id="HDRWQ158">
1078     <title>Displaying Process Status and Information from the BosConfig File</title>
1079
1080     <para>To display the status of the AFS server processes on a server machine, issue the <emphasis role="bold">bos
1081     status</emphasis> command. Adding the <emphasis role="bold">-long</emphasis> flag displays most of the information from each
1082     process's entry in the <emphasis role="bold">BosConfig</emphasis> file, including its type and command parameters. It also
1083     displays a warning message if the mode bits on files and subdirectories in the <emphasis role="bold">/usr/afs</emphasis>
1084     directory do not match the expected values.</para>
1085
1086     <sect2 id="HDRWQ159">
1087       <title>To display the status of server processes and their BosConfig entries</title>
1088
1089       <indexterm>
1090         <primary>displaying</primary>
1091
1092         <secondary>server process status</secondary>
1093       </indexterm>
1094
1095       <indexterm>
1096         <primary>server process</primary>
1097
1098         <secondary>displaying status</secondary>
1099       </indexterm>
1100
1101       <indexterm>
1102         <primary>status</primary>
1103
1104         <secondary>displaying for server process</secondary>
1105       </indexterm>
1106
1107       <indexterm>
1108         <primary>displaying</primary>
1109
1110         <secondary>entries from BosConfig file</secondary>
1111       </indexterm>
1112
1113       <indexterm>
1114         <primary>server process</primary>
1115
1116         <secondary>displaying entry in BosConfig</secondary>
1117       </indexterm>
1118
1119       <indexterm>
1120         <primary>BosConfig file</primary>
1121
1122         <secondary>displaying entries</secondary>
1123       </indexterm>
1124
1125       <indexterm>
1126         <primary>bos commands</primary>
1127
1128         <secondary>status</secondary>
1129       </indexterm>
1130
1131       <indexterm>
1132         <primary>commands</primary>
1133
1134         <secondary>bos status</secondary>
1135       </indexterm>
1136
1137       <orderedlist>
1138         <listitem>
1139           <para>Issue the <emphasis role="bold">bos status</emphasis> command. <programlisting>
1140    % <emphasis role="bold">bos status</emphasis> &lt;<replaceable>machine name</replaceable>&gt;  [&lt;<replaceable>server process name</replaceable>&gt;+]  [<emphasis
1141                 role="bold">-long</emphasis>]
1142 </programlisting></para>
1143
1144           <para>where <variablelist>
1145               <varlistentry>
1146                 <term><emphasis role="bold">stat</emphasis></term>
1147
1148                 <listitem>
1149                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">status</emphasis>.</para>
1150                 </listitem>
1151               </varlistentry>
1152
1153               <varlistentry>
1154                 <term><emphasis role="bold">machine name</emphasis></term>
1155
1156                 <listitem>
1157                   <para>Specifies the file server machine for which to display process status.</para>
1158                 </listitem>
1159               </varlistentry>
1160
1161               <varlistentry>
1162                 <term><emphasis role="bold">server process name</emphasis></term>
1163
1164                 <listitem>
1165                   <para>Names each process for which to display status, using the name assigned when its entry was defined with the
1166                   <emphasis role="bold">bos create</emphasis> command. Omit this argument to display the status of all server
1167                   processes.</para>
1168                 </listitem>
1169               </varlistentry>
1170
1171               <varlistentry>
1172                 <term><emphasis role="bold">-long</emphasis></term>
1173
1174                 <listitem>
1175                   <para>Displays, in addition to status, information from the process's entry in the <emphasis
1176                   role="bold">BosConfig</emphasis> file: its type, its status flag, its command parameters, the associated notifier
1177                   program, and so on.</para>
1178                 </listitem>
1179               </varlistentry>
1180             </variablelist></para>
1181         </listitem>
1182       </orderedlist>
1183
1184       <para>The output includes an entry for each process and uses one of the following strings to indicate the process's status:
1185       <itemizedlist>
1186           <listitem>
1187             <para><computeroutput>currently running normally</computeroutput> indicates that the process is running and its status
1188             flag in the <emphasis role="bold">BosConfig</emphasis> file is <computeroutput>Run</computeroutput>. For cron entries,
1189             this message indicates that the command is still scheduled to run, not necessarily that it is actually running when the
1190             <emphasis role="bold">bos status</emphasis> command was issued.</para>
1191           </listitem>
1192
1193           <listitem>
1194             <para><computeroutput>temporarily enabled</computeroutput> indicates that the process is running but that its status
1195             flag in the <emphasis role="bold">BosConfig</emphasis> file is <computeroutput>NotRun</computeroutput>. The most common
1196             reason is that a system administrator has used the <emphasis role="bold">bos startup</emphasis> command to start the
1197             process.</para>
1198           </listitem>
1199
1200           <listitem>
1201             <para><computeroutput>temporarily disabled</computeroutput> indicates that the process is not running even though its
1202             status flag in the <emphasis role="bold">BosConfig</emphasis> file is <computeroutput>Run</computeroutput>. The most
1203             common reasons are either that a system administrator has used the <emphasis role="bold">bos shutdown</emphasis> command
1204             to stop the process or that the BOS Server ceased trying to restart the process after numerous failed attempts. In the
1205             latter case, a supplementary message appears: <computeroutput>stopped for too many errors</computeroutput>.</para>
1206           </listitem>
1207
1208           <listitem>
1209             <para>disabled indicates that the process is not running and that its status flag in the <emphasis
1210             role="bold">BosConfig</emphasis> file is <computeroutput>NotRun</computeroutput>. The BOS Server is not monitoring the
1211             process. Only a system administrator can set the flag this way; the BOS Server never does.</para>
1212           </listitem>
1213         </itemizedlist></para>
1214
1215       <para>The output for the <emphasis role="bold">fs</emphasis> process always includes a message marked
1216       <computeroutput>Auxiliary status</computeroutput>, which can be one of the following: <itemizedlist>
1217           <listitem>
1218             <para><computeroutput>file server running</computeroutput> indicates that the File Server and Volume Server components
1219             of the File Server process are running normally.</para>
1220           </listitem>
1221
1222           <listitem>
1223             <para><computeroutput>salvaging file system</computeroutput> indicates that the Salvager is running, which usually
1224             implies that the File Server and Volume Server are temporarily disabled. The BOS Server restarts them as soon as the
1225             Salvager is finished.</para>
1226           </listitem>
1227         </itemizedlist></para>
1228
1229       <para>The output for a cron process also includes an <computeroutput>Auxiliary status</computeroutput> message to report when
1230       the command is scheduled to run next; see the example that follows.</para>
1231
1232       <para>The output for any process can include the supplementary message <computeroutput>has core file</computeroutput> to
1233       indicate that at some point the process failed and generated a core file in the <emphasis role="bold">/usr/afs/logs</emphasis>
1234       directory. In most cases, the BOS Server is able to restart the process and it is running.</para>
1235
1236       <para>The following example includes a user-defined cron entry called <emphasis role="bold">backupusers</emphasis>:</para>
1237
1238       <programlisting>
1239    % <emphasis role="bold">bos status fs3.abc.com</emphasis>
1240    Instance kaserver, currently running normally.
1241    Instance ptserver, currently running normally.
1242    Instance vlserver, has core file, currently running normally.
1243    Instance buserver, currently running normally.
1244    Instance fs, currently running normally.
1245        Auxiliary status is: file server running.
1246    Instance upserver, currently running normally.
1247    Instance runntp, currently running normally.
1248    Instance backupusers, currently running normally.
1249        Auxiliary status is: run next at Mon Jun 7 02:00:00 1999.
1250 </programlisting>
1251
1252       <para>If you include the <emphasis role="bold">-long</emphasis> flag to the <emphasis role="bold">bos status</emphasis>
1253       command, a process's entry in the output includes the following additional information from the <emphasis
1254       role="bold">BosConfig</emphasis> file: <itemizedlist>
1255           <listitem>
1256             <para>The process's type (<computeroutput>simple</computeroutput>, <computeroutput>fs</computeroutput>, or
1257             <computeroutput>cron</computeroutput>).</para>
1258           </listitem>
1259
1260           <listitem>
1261             <para>The day and time the process last started or restarted.</para>
1262           </listitem>
1263
1264           <listitem>
1265             <para>The number of <computeroutput>proc starts</computeroutput>, which is how many times the BOS Server has started or
1266             restarted the process since it started itself.</para>
1267           </listitem>
1268
1269           <listitem>
1270             <para>The <computeroutput>Last exit</computeroutput> time when the process (or one of the component processes in the
1271             <emphasis role="bold">fs</emphasis> process) last terminated. This line does not appear if the process has not
1272             terminated since the BOS Server started.</para>
1273           </listitem>
1274
1275           <listitem>
1276             <para>The <computeroutput>Last error exit</computeroutput> time when the process (or one of the component processes in
1277             the <emphasis role="bold">fs</emphasis> process) last failed due to an error. A further explanation such as
1278             <computeroutput>due to shutdown request</computeroutput> sometimes appears. This line does not appear if the process has
1279             not failed since the BOS Server started.</para>
1280           </listitem>
1281
1282           <listitem>
1283             <para>Each command that the BOS Server invokes to start the process, as specified by the <emphasis
1284             role="bold">-cmd</emphasis> argument to the <emphasis role="bold">bos create</emphasis> command.</para>
1285           </listitem>
1286
1287           <listitem>
1288             <para>The pathname of the notifier program that the BOS Server invokes when the process terminates (if any), as
1289             specified by the <emphasis role="bold">-notifier</emphasis> argument to the <emphasis role="bold">bos create</emphasis>
1290             command.</para>
1291           </listitem>
1292         </itemizedlist></para>
1293
1294       <para>In addition, if the BOS Server has found that the mode bits on certain files and directories under <emphasis
1295       role="bold">/usr/afs</emphasis> deviate from what it expects, it prints the following warning message:</para>
1296
1297       <programlisting>
1298    Bosserver process reports inappropriate access on server directories
1299 </programlisting>
1300
1301       <para>The expected protections for the directories and files in the <emphasis role="bold">/usr/afs</emphasis> directory are as
1302       follows. A question mark indicates that the BOS Server does not check the mode bit. See the <emphasis>OpenAFS Quick
1303       Beginnings</emphasis> for more information about setting the protections on these files and directories.</para>
1304
1305       <informaltable frame="none">
1306         <tgroup cols="2">
1307           <tbody>
1308             <row>
1309               <entry><emphasis role="bold">/usr/afs</emphasis></entry>
1310
1311               <entry><computeroutput>drwxr?xr-x</computeroutput></entry>
1312             </row>
1313
1314             <row>
1315               <entry><emphasis role="bold">/usr/afs/backup</emphasis></entry>
1316
1317               <entry><computeroutput>drwx???---</computeroutput></entry>
1318             </row>
1319
1320             <row>
1321               <entry><emphasis role="bold">/usr/afs/bin</emphasis></entry>
1322
1323               <entry><computeroutput>drwxr?xr-x</computeroutput></entry>
1324             </row>
1325
1326             <row>
1327               <entry><emphasis role="bold">/usr/afs/db</emphasis></entry>
1328
1329               <entry><computeroutput>drwx???---</computeroutput></entry>
1330             </row>
1331
1332             <row>
1333               <entry><emphasis role="bold">/usr/afs/etc</emphasis></entry>
1334
1335               <entry><computeroutput>drwxr?xr-x</computeroutput></entry>
1336             </row>
1337
1338             <row>
1339               <entry><emphasis role="bold">/usr/afs/etc/KeyFile</emphasis></entry>
1340
1341               <entry><computeroutput>-rw????---</computeroutput></entry>
1342             </row>
1343
1344             <row>
1345               <entry><emphasis role="bold">/usr/afs/etc/UserList</emphasis></entry>
1346
1347               <entry><computeroutput>-rw?????--</computeroutput></entry>
1348             </row>
1349
1350             <row>
1351               <entry><emphasis role="bold">/usr/afs/local</emphasis></entry>
1352
1353               <entry><computeroutput>drwx???---</computeroutput></entry>
1354             </row>
1355
1356             <row>
1357               <entry><emphasis role="bold">/usr/afs/logs</emphasis></entry>
1358
1359               <entry><computeroutput>drwxr?xr-x</computeroutput></entry>
1360             </row>
1361           </tbody>
1362         </tgroup>
1363       </informaltable>
1364
1365       <para>The following illustrates the extended output for the <emphasis role="bold">fs</emphasis> process running on the machine
1366       <emphasis role="bold">fs3.abc.com</emphasis>:</para>
1367
1368       <programlisting>
1369    % <emphasis role="bold">bos status fs3.abc.com fs -long</emphasis>
1370    Instance fs, (type is fs), currently running normally.
1371        Auxiliary status is file server running
1372    Process last started at Mon May 3 8:29:19 1999 (3 proc starts)
1373    Last exit at Mon May 3 8:29:19 1999
1374    Last error exit at Mon May 3 8:29:19 1999, due to shutdown request
1375    Command 1 is '/usr/afs/bin/fileserver'
1376    Command 2 is '/usr/afs/bin/volserver'
1377    Command 3 is '/usr/afs/bin/salvager'
1378 </programlisting>
1379     </sect2>
1380   </sect1>
1381
1382   <sect1 id="HDRWQ161">
1383     <title>Creating and Removing Processes</title>
1384
1385     <indexterm>
1386       <primary>initializing</primary>
1387
1388       <secondary>server process</secondary>
1389     </indexterm>
1390
1391     <indexterm>
1392       <primary>creating</primary>
1393
1394       <secondary>server process</secondary>
1395     </indexterm>
1396
1397     <indexterm>
1398       <primary>defining</primary>
1399
1400       <secondary>server process in BosConfig file</secondary>
1401     </indexterm>
1402
1403     <indexterm>
1404       <primary>starting</primary>
1405
1406       <secondary>server process</secondary>
1407     </indexterm>
1408
1409     <indexterm>
1410       <primary>server process</primary>
1411
1412       <secondary>creating</secondary>
1413     </indexterm>
1414
1415     <indexterm>
1416       <primary>server process</primary>
1417
1418       <secondary>starting</secondary>
1419     </indexterm>
1420
1421     <indexterm>
1422       <primary>server process</primary>
1423
1424       <secondary>stopping permanently</secondary>
1425     </indexterm>
1426
1427     <indexterm>
1428       <primary>server process</primary>
1429
1430       <secondary>removing from BosConfig file</secondary>
1431     </indexterm>
1432
1433     <para>To start a new AFS server process on a server machine, issue the <emphasis role="bold">bos create</emphasis> command,
1434     which creates an entry in the <emphasis role="bold">/usr/afs/local/BosConfig</emphasis> file, sets the process's status flag to
1435     <computeroutput>Run</computeroutput> both in the file and in the BOS Server's memory, and starts it running immediately. The
1436     binary file for the new process must already be installed, by convention in the <emphasis role="bold">/usr/afs/bin</emphasis>
1437     directory (see <link linkend="HDRWQ111">Installing New Binaries</link>).</para>
1438
1439     <para>To stop a process permanently, first issue the <emphasis role="bold">bos stop</emphasis> command, which changes the
1440     process's status flag to <computeroutput>NotRun</computeroutput> in both the <emphasis role="bold">BosConfig</emphasis> file and
1441     the BOS Server's memory; it is marked as <computeroutput>disabled</computeroutput> in the output from the <emphasis
1442     role="bold">bos status</emphasis> command. If desired, issue the <emphasis role="bold">bos delete</emphasis> command to remove
1443     the process's entry from the <emphasis role="bold">BosConfig</emphasis> file; the process no longer appears in the <emphasis
1444     role="bold">bos status</emphasis> command's output.</para>
1445
1446     <note>
1447       <para>If you are starting or stopping a database server process in the manner described in this section, follow the complete
1448       instructions in the <emphasis>OpenAFS Quick Beginnings</emphasis> for creating or removing a database server machine. If you
1449       run one database server process on a given machine, you must run them all; for more information, see <link
1450       linkend="HDRWQ156">About Starting and Stopping the Database Server Processes</link>. Similarly, if you are stopping the
1451       <emphasis role="bold">upserver</emphasis> process on the system control machine or a binary distribution machine, you must
1452       complete the additional tasks described in <link linkend="HDRWQ157">About Starting and Stopping the Update
1453       Server</link>.</para>
1454     </note>
1455
1456     <sect2 id="HDRWQ162">
1457       <title>To create and start a new process</title>
1458
1459       <indexterm>
1460         <primary>server process</primary>
1461
1462         <secondary>creating and starting</secondary>
1463       </indexterm>
1464
1465       <indexterm>
1466         <primary>server process</primary>
1467
1468         <secondary>defining in BosConfig file</secondary>
1469       </indexterm>
1470
1471       <indexterm>
1472         <primary>simple server process</primary>
1473
1474         <secondary>defining in BosConfig file</secondary>
1475       </indexterm>
1476
1477       <indexterm>
1478         <primary>cron server process</primary>
1479
1480         <secondary>defining in BosConfig file</secondary>
1481       </indexterm>
1482
1483       <indexterm>
1484         <primary>fs server process</primary>
1485
1486         <secondary>defining in BosConfig file</secondary>
1487       </indexterm>
1488
1489       <indexterm>
1490         <primary>BosConfig file</primary>
1491
1492         <secondary>creating server process entry</secondary>
1493       </indexterm>
1494
1495       <indexterm>
1496         <primary>bos commands</primary>
1497
1498         <secondary>create</secondary>
1499       </indexterm>
1500
1501       <indexterm>
1502         <primary>commands</primary>
1503
1504         <secondary>bos create</secondary>
1505       </indexterm>
1506
1507       <orderedlist>
1508         <listitem>
1509           <para>Verify that you are authenticated as a user listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis>
1510           file. If necessary, issue the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link
1511           linkend="HDRWQ593">To display the users in the UserList file</link>. <programlisting>
1512    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
1513 </programlisting></para>
1514         </listitem>
1515
1516         <listitem>
1517           <para><emphasis role="bold">(Optional)</emphasis> Verify that the process's binaries are installed in the <emphasis
1518           role="bold">/usr/afs/bin</emphasis> directory on this machine. If necessary, login at the console or telnet to the machine
1519           and list the contents of the <emphasis role="bold">/usr/afs/bin</emphasis> directory.</para>
1520
1521           <para>If the binaries are not present, install them on the binary distribution machine of the appropriate system type, and
1522           wait for the Update Server to copy them to this machine. For instructions, see <link linkend="HDRWQ111">Installing New
1523           Binaries</link>.</para>
1524
1525           <programlisting>
1526    % <emphasis role="bold">ls /usr/afs/bin</emphasis>
1527 </programlisting>
1528         </listitem>
1529
1530         <listitem>
1531           <para>Issue the <emphasis role="bold">bos create</emphasis> command to create an entry in the
1532           <emphasis role="bold">BosConfig</emphasis> file and start the process. <programlisting>
1533    % <emphasis role="bold">bos create</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>server process name</replaceable>&gt;   \
1534              &lt;<replaceable>server type</replaceable>&gt; &lt;<replaceable>command lines</replaceable>&gt;+ [ <emphasis
1535                 role="bold">-notifier</emphasis> &lt;<replaceable>Notifier program</replaceable>&gt;]
1536 </programlisting></para>
1537
1538           <para>where <variablelist>
1539               <varlistentry>
1540                 <term><emphasis role="bold">cr</emphasis></term>
1541
1542                 <listitem>
1543                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">create</emphasis>.</para>
1544                 </listitem>
1545               </varlistentry>
1546
1547               <varlistentry>
1548                 <term><emphasis role="bold">machine name</emphasis></term>
1549
1550                 <listitem>
1551                   <para>Specifies the file server machine on which to create the process.</para>
1552                 </listitem>
1553               </varlistentry>
1554
1555               <varlistentry>
1556                 <term><emphasis role="bold">server process name</emphasis></term>
1557
1558                 <listitem>
1559                   <para>Names the process to create and start. For simple processes, the conventional value is the name of the
1560                   process's binary file. It is best to use the same name on every server machine that runs the process. The
1561                   following is a list of the conventional names for simple and fs-type processes (there are no standard cron
1562                   processes). <itemizedlist>
1563                       <listitem>
1564                         <para><emphasis role="bold">buserver</emphasis> for the Backup Server</para>
1565                       </listitem>
1566
1567                       <listitem>
1568                         <para><emphasis role="bold">fs</emphasis> for the process that combines the File Server, Volume Server, and
1569                         Salvager</para>
1570                       </listitem>
1571
1572                       <listitem>
1573                         <para><emphasis role="bold">kaserver</emphasis> for the Authentication Server</para>
1574                       </listitem>
1575
1576                       <listitem>
1577                         <para><emphasis role="bold">ptserver</emphasis> for the Protection Server</para>
1578                       </listitem>
1579
1580                       <listitem>
1581                         <para><emphasis role="bold">runntp</emphasis> for the controller process for the Network Time Protocol
1582                         Daemon</para>
1583                       </listitem>
1584
1585                       <listitem>
1586                         <para><emphasis role="bold">upclientbin</emphasis> for the client portion of the Update Server that
1587                         references the binary distribution machine of this machine's system type</para>
1588                       </listitem>
1589
1590                       <listitem>
1591                         <para><emphasis role="bold">upclientetc</emphasis> for the client portion of the Update Server that
1592                         references the system control machine</para>
1593                       </listitem>
1594
1595                       <listitem>
1596                         <para><emphasis role="bold">vlserver</emphasis> for the Volume Location (VL) Server</para>
1597                       </listitem>
1598                     </itemizedlist></para>
1599                 </listitem>
1600               </varlistentry>
1601
1602               <varlistentry>
1603                 <term><emphasis role="bold">server type</emphasis></term>
1604
1605                 <listitem>
1606                   <para>Defines the process's type. Choose one of the following values: <itemizedlist>
1607                       <listitem>
1608                         <para><emphasis role="bold">cron</emphasis> for a cron process</para>
1609                       </listitem>
1610
1611                       <listitem>
1612                         <para><emphasis role="bold">fs</emphasis> for the process named <emphasis role="bold">fs</emphasis></para>
1613                       </listitem>
1614
1615                       <listitem>
1616                         <para><emphasis role="bold">simple</emphasis> for all other processes listed as acceptable values for the
1617                         server process name argument</para>
1618                       </listitem>
1619                     </itemizedlist></para>
1620                 </listitem>
1621               </varlistentry>
1622
1623               <varlistentry>
1624                 <term><emphasis role="bold">command lines</emphasis></term>
1625
1626                 <listitem>
1627                   <para>Specifies each command the BOS Server runs to start the process. Specify no more than six commands (which
1628                   can include the command's options, in which case the entire string is surrounded by double quotes); any additional
1629                   commands are ignored.</para>
1630
1631                   <para>For a simple process, provide the complete pathname of the process's binary file on the local disk (for
1632                   example, <emphasis role="bold">/usr/afs/bin/ptserver</emphasis> for the Protection Server). If including any of
1633                   the initialization command's options, surround the entire command in double quotes (<emphasis role="bold">"
1634                   "</emphasis>). The <emphasis role="bold">upclient</emphasis> process has a required argument, and the commands for
1635                   all other processes take optional arguments.</para>
1636
1637                   <indexterm>
1638                     <primary>simple process</primary>
1639
1640                     <secondary>creating with bos create command</secondary>
1641                   </indexterm>
1642
1643                   <para>For the <emphasis role="bold">fs</emphasis> process, provide the complete pathname of the local disk binary
1644                   file for each of the component processes: <emphasis role="bold">fileserver</emphasis>, <emphasis
1645                   role="bold">volserver</emphasis>, and <emphasis role="bold">salvager</emphasis>, in that order. The standard
1646                   binary directory is <emphasis role="bold">/usr/afs/bin</emphasis>. If including any of an initialization command's
1647                   options, surround the entire command in double quotes (<emphasis role="bold">" "</emphasis>).</para>
1648
1649                   <indexterm>
1650                     <primary>fs process</primary>
1651
1652                     <secondary>creating</secondary>
1653                   </indexterm>
1654
1655                   <indexterm>
1656                     <primary>cron process</primary>
1657
1658                     <secondary>creating with bos create command</secondary>
1659                   </indexterm>
1660
1661                   <para>For a <emphasis role="bold">cron</emphasis> process, provide two parameters: <itemizedlist>
1662                       <listitem>
1663                         <para>The complete local disk pathname of either an executable file or a command from one of the AFS suites
1664                         (complete with all of the necessary arguments). Surround this parameter with double quotes (<emphasis
1665                         role="bold">" "</emphasis>) if it contains spaces.</para>
1666                       </listitem>
1667
1668                       <listitem>
1669                         <para>A specification of when the BOS Server executes the file or command indicated by the first parameter.
1670                         There are three acceptable values: <itemizedlist>
1671                             <listitem>
1672                               <para>The string <emphasis role="bold">now</emphasis>, which directs the BOS Server to execute the
1673                               file or command immediately and only once. It is usually simpler to issue the command directly or
1674                               issue the <emphasis role="bold">bos exec</emphasis> command.</para>
1675                             </listitem>
1676
1677                             <listitem>
1678                               <para>A time of day. The BOS Server executes the file or command daily at the indicated time. Separate
1679                               the hours and minutes with a colon (<emphasis>hh</emphasis>:<emphasis>MM</emphasis>), and use either
1680                               24-hour format, or a value in the range from <emphasis role="bold">1:00</emphasis> through <emphasis
1681                               role="bold">12:59</emphasis> with the addition of <emphasis role="bold">am</emphasis> or <emphasis
1682                               role="bold">pm</emphasis>. For example, both <emphasis role="bold">14:30</emphasis> and <emphasis
1683                               role="bold">"2:30 pm"</emphasis> indicate 2:30 in the afternoon. Surround this parameter with double
1684                               quotes (<emphasis role="bold">" "</emphasis>) if it contains a space.</para>
1685                             </listitem>
1686
1687                             <listitem>
1688                               <para>A day of the week and time of day, separated by a space and surrounded with double quotes
1689                               (<emphasis role="bold">" "</emphasis>). The BOS Server executes the file or command weekly at the
1690                               indicated day and time. For the day, provide either the whole name or the first three letters, all in
1691                               lowercase letters (<emphasis role="bold">sunday</emphasis> or <emphasis role="bold">sun</emphasis>,
1692                               <emphasis role="bold">thursday</emphasis> or <emphasis role="bold">thu</emphasis>, and so on). For the
1693                               time, use the same format as when specifying the time alone.</para>
1694                             </listitem>
1695                           </itemizedlist></para>
1696                       </listitem>
1697                     </itemizedlist></para>
1698                 </listitem>
1699               </varlistentry>
1700
1701               <varlistentry>
1702                 <term><emphasis role="bold">-notifier</emphasis></term>
1703
1704                 <listitem>
1705                   <para>Specifies the pathname of a program that the BOS Server runs when the process terminates. For more
1706                   information on notifier programs, see the <emphasis role="bold">bos create</emphasis> command reference page in
1707                   the <emphasis>OpenAFS Administration Reference</emphasis>.</para>
1708                 </listitem>
1709               </varlistentry>
1710             </variablelist></para>
1711         </listitem>
1712       </orderedlist>
1713
1714       <para>The following example defines and starts the Protection Server on the machine <emphasis
1715       role="bold">db2.abc.com</emphasis>:</para>
1716
1717       <programlisting>
1718    % <emphasis role="bold">bos create db2.abc.com ptserver simple /usr/afs/bin/ptserver</emphasis>
1719 </programlisting>
1720
1721       <para>The following example defines and starts the <emphasis role="bold">fs</emphasis> process on the machine <emphasis
1722       role="bold">fs6.abc.com</emphasis>.</para>
1723
1724       <programlisting>
1725    % <emphasis role="bold">bos create fs6.abc.com fs fs /usr/afs/bin/fileserver</emphasis>   \
1726         <emphasis role="bold">/usr/afs/bin/volserver /usr/afs/bin/salvager</emphasis>
1727 </programlisting>
1728
1729       <para>The following example defines and starts a cron process called <emphasis role="bold">backupuser</emphasis> process on
1730       the machine <emphasis role="bold">fs3.abc.com</emphasis>, scheduling it to run each day at 3:00 a.m.</para>
1731
1732       <programlisting>
1733    % <emphasis role="bold">bos create fs3.abc.com backupuser cron  "/usr/afs/bin/vos backupsys -prefix user -local" 3:00</emphasis>
1734 </programlisting>
1735     </sect2>
1736
1737     <sect2 id="Header_184">
1738       <title>To stop a process and remove it from the BosConfig file</title>
1739
1740       <indexterm>
1741         <primary>removing</primary>
1742
1743         <secondary>server process from BosConfig file</secondary>
1744       </indexterm>
1745
1746       <indexterm>
1747         <primary>BosConfig file</primary>
1748
1749         <secondary>removing server process entry</secondary>
1750       </indexterm>
1751
1752       <indexterm>
1753         <primary>stopping</primary>
1754
1755         <secondary>server process</secondary>
1756
1757         <tertiary>permanently</tertiary>
1758       </indexterm>
1759
1760       <indexterm>
1761         <primary>server process</primary>
1762
1763         <secondary>removing from BosConfig file</secondary>
1764       </indexterm>
1765
1766       <indexterm>
1767         <primary>server process</primary>
1768
1769         <secondary>stopping permanently</secondary>
1770       </indexterm>
1771
1772       <indexterm>
1773         <primary>bos commands</primary>
1774
1775         <secondary>delete</secondary>
1776       </indexterm>
1777
1778       <indexterm>
1779         <primary>commands</primary>
1780
1781         <secondary>bos delete</secondary>
1782       </indexterm>
1783
1784       <orderedlist>
1785         <listitem>
1786           <para>Verify that you are authenticated as a user listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis>
1787           file. If necessary, issue the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link
1788           linkend="HDRWQ593">To display the users in the UserList file</link>. <programlisting>
1789    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
1790 </programlisting></para>
1791         </listitem>
1792
1793         <listitem id="LIPROC-STOP">
1794           <para>Issue the <emphasis role="bold">bos stop</emphasis> command to change each process's
1795           status flag in the <emphasis role="bold">BosConfig</emphasis> file to <computeroutput>NotRun</computeroutput> and to stop
1796           it. You must issue this command even for cron processes that you wish to remove from the <emphasis
1797           role="bold">BosConfig</emphasis> file, even though they do not run continuously. For a detailed description of this
1798           command, see <link linkend="HDRWQ165">To stop a process by changing its status to
1799           <computeroutput>NotRun</computeroutput></link>. <programlisting>
1800    % <emphasis role="bold">bos stop</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>server process name</replaceable>&gt;+ [<emphasis
1801                 role="bold">-wait</emphasis>]
1802 </programlisting></para>
1803         </listitem>
1804
1805         <listitem>
1806           <para>Issue the <emphasis role="bold">bos delete</emphasis> command to remove each process from
1807           the <emphasis role="bold">BosConfig</emphasis> file. <programlisting>
1808    % <emphasis role="bold">bos delete</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>server process name</replaceable>&gt;+
1809 </programlisting></para>
1810
1811           <para>where <variablelist>
1812               <varlistentry>
1813                 <term><emphasis role="bold">d</emphasis></term>
1814
1815                 <listitem>
1816                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">delete</emphasis>.</para>
1817                 </listitem>
1818               </varlistentry>
1819
1820               <varlistentry>
1821                 <term><emphasis role="bold">machine name</emphasis></term>
1822
1823                 <listitem>
1824                   <para>Specifies the server machine on which to remove processes from the <emphasis
1825                   role="bold">BosConfig</emphasis> file.</para>
1826                 </listitem>
1827               </varlistentry>
1828
1829               <varlistentry>
1830                 <term><emphasis role="bold">server process name</emphasis></term>
1831
1832                 <listitem>
1833                   <para>Names each process entry to remove from the <emphasis role="bold">BosConfig</emphasis> file. Provide the
1834                   same names as in Step <link linkend="LIPROC-STOP">2</link>.</para>
1835                 </listitem>
1836               </varlistentry>
1837             </variablelist></para>
1838         </listitem>
1839       </orderedlist>
1840     </sect2>
1841   </sect1>
1842
1843   <sect1 id="HDRWQ164">
1844     <title>Stopping and Starting Processes Permanently</title>
1845
1846     <indexterm>
1847       <primary>starting</primary>
1848
1849       <secondary>server process</secondary>
1850     </indexterm>
1851
1852     <indexterm>
1853       <primary>server process</primary>
1854
1855       <secondary>starting up</secondary>
1856     </indexterm>
1857
1858     <indexterm>
1859       <primary>server process</primary>
1860
1861       <secondary>stopping permanently</secondary>
1862     </indexterm>
1863
1864     <indexterm>
1865       <primary>stopping</primary>
1866
1867       <secondary>server process</secondary>
1868
1869       <tertiary>permanently</tertiary>
1870     </indexterm>
1871
1872     <para>To stop a process so that the BOS Server no longer attempts to monitor it, issue the <emphasis role="bold">bos
1873     stop</emphasis> command. The process's status flag is set to <computeroutput>NotRun</computeroutput> in both the BOS Server's
1874     memory and in the <emphasis role="bold">BosConfig</emphasis> file. The process does not run again until you issue the <emphasis
1875     role="bold">bos start</emphasis> command, which sets its status flag back to <computeroutput>Run</computeroutput> in both the
1876     BOS Server's memory and in the <emphasis role="bold">BosConfig</emphasis> file. (You can also use the <emphasis role="bold">bos
1877     startup</emphasis> command to start the process again without changing its status flag in the <emphasis
1878     role="bold">BosConfig</emphasis> file; see <link linkend="HDRWQ167">Stopping and Starting Processes Temporarily</link>.)</para>
1879
1880     <para>There is no entry for the BOS Server in the <emphasis role="bold">BosConfig</emphasis> file, so the <emphasis
1881     role="bold">bos stop</emphasis> and <emphasis role="bold">bos start</emphasis> commands do not control it. To stop and
1882     immediately restart the BOS Server along with all other processes, use the <emphasis role="bold">-bosserver</emphasis> flag to
1883     the <emphasis role="bold">bos restart</emphasis> command as described in <link linkend="HDRWQ170">Stopping and Immediately
1884     Restarting Processes</link>.</para>
1885
1886     <note>
1887       <para>If you are starting or stopping a database server process in the manner described in this section, follow the complete
1888       instructions in the <emphasis>OpenAFS Quick Beginnings</emphasis> for creating or removing a database server machine. If you
1889       run one database server process on a given machine, you must run them all; for more information, see <link
1890       linkend="HDRWQ156">About Starting and Stopping the Database Server Processes</link>. Similarly, if you are stopping the
1891       <emphasis role="bold">upserver</emphasis> process on the system control machine or a binary distribution machine, you must
1892       complete the additional tasks described in <link linkend="HDRWQ157">About Starting and Stopping the Update
1893       Server</link>.</para>
1894     </note>
1895
1896     <sect2 id="HDRWQ165">
1897       <title>To stop a process by changing its status to NotRun</title>
1898
1899       <indexterm>
1900         <primary>Run status flag in BosConfig file</primary>
1901
1902         <secondary>changing to NotRun</secondary>
1903       </indexterm>
1904
1905       <indexterm>
1906         <primary>status flag in BosConfig file</primary>
1907
1908         <secondary>changing Run to NotRun</secondary>
1909       </indexterm>
1910
1911       <indexterm>
1912         <primary>BosConfig file</primary>
1913
1914         <secondary>changing status flag from Run to NotRun</secondary>
1915       </indexterm>
1916
1917       <indexterm>
1918         <primary>server process</primary>
1919
1920         <secondary>stopping permanently</secondary>
1921       </indexterm>
1922
1923       <indexterm>
1924         <primary>bos commands</primary>
1925
1926         <secondary>stop</secondary>
1927       </indexterm>
1928
1929       <indexterm>
1930         <primary>commands</primary>
1931
1932         <secondary>bos stop</secondary>
1933       </indexterm>
1934
1935       <orderedlist>
1936         <listitem>
1937           <para>Verify that you are authenticated as a user listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis>
1938           file. If necessary, issue the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link
1939           linkend="HDRWQ593">To display the users in the UserList file</link>. <programlisting>
1940    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
1941 </programlisting></para>
1942         </listitem>
1943
1944         <listitem>
1945           <para>Issue the <emphasis role="bold">bos stop</emphasis> command to stop each process and set its status flag to
1946           <computeroutput>NotRun</computeroutput> in the <emphasis role="bold">BosConfig</emphasis> file and the BOS Server's
1947           memory. <programlisting>
1948    % <emphasis role="bold">bos stop</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>server process name</replaceable>&gt;+ [<emphasis
1949                 role="bold">-wait</emphasis>]
1950 </programlisting></para>
1951
1952           <para>where <variablelist>
1953               <varlistentry>
1954                 <term><emphasis role="bold">sto</emphasis></term>
1955
1956                 <listitem>
1957                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">stop</emphasis>.</para>
1958                 </listitem>
1959               </varlistentry>
1960
1961               <varlistentry>
1962                 <term><emphasis role="bold">machine name</emphasis></term>
1963
1964                 <listitem>
1965                   <para>Specifies the server machine on which to stop the process.</para>
1966                 </listitem>
1967               </varlistentry>
1968
1969               <varlistentry>
1970                 <term><emphasis role="bold">server process name</emphasis></term>
1971
1972                 <listitem>
1973                   <para>Names each process to stop, using the name assigned when its entry was defined with the <emphasis
1974                   role="bold">bos create</emphasis> command.</para>
1975                 </listitem>
1976               </varlistentry>
1977
1978               <varlistentry>
1979                 <term><emphasis role="bold">-wait</emphasis></term>
1980
1981                 <listitem>
1982                   <para>Delays the return of the command shell prompt until all specified processes have stopped. If you omit the
1983                   flag, the prompt returns almost immediately, even if all processes are not yet stopped.</para>
1984                 </listitem>
1985               </varlistentry>
1986             </variablelist></para>
1987         </listitem>
1988       </orderedlist>
1989     </sect2>
1990
1991     <sect2 id="HDRWQ166">
1992       <title>To start processes by changing their status flags to Run</title>
1993
1994       <indexterm>
1995         <primary>NotRun status flag in BosConfig file</primary>
1996
1997         <secondary>changing to Run</secondary>
1998       </indexterm>
1999
2000       <indexterm>
2001         <primary>status flag in BosConfig file</primary>
2002
2003         <secondary>changing NotRun to Run</secondary>
2004       </indexterm>
2005
2006       <indexterm>
2007         <primary>BosConfig file</primary>
2008
2009         <secondary>changing status flag from NotRun to Run</secondary>
2010       </indexterm>
2011
2012       <indexterm>
2013         <primary>commands</primary>
2014
2015         <secondary>bos start</secondary>
2016       </indexterm>
2017
2018       <indexterm>
2019         <primary>bos commands</primary>
2020
2021         <secondary>start</secondary>
2022       </indexterm>
2023
2024       <orderedlist>
2025         <listitem>
2026           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2027           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2028           display the users in the UserList file</link>. <programlisting>
2029    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2030 </programlisting></para>
2031         </listitem>
2032
2033         <listitem>
2034           <para>Issue the <emphasis role="bold">bos start</emphasis> command to change each process's
2035           status flag to <computeroutput>Run</computeroutput> in both the <emphasis role="bold">BosConfig</emphasis> file and the
2036           BOS Server's memory and to start it. <programlisting>
2037    %  <emphasis role="bold">bos start</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>server process name</replaceable>&gt;+
2038 </programlisting></para>
2039
2040           <para>where <variablelist>
2041               <varlistentry>
2042                 <term><emphasis role="bold">start</emphasis></term>
2043
2044                 <listitem>
2045                   <para>Must be typed in full.</para>
2046                 </listitem>
2047               </varlistentry>
2048
2049               <varlistentry>
2050                 <term><emphasis role="bold">machine name</emphasis></term>
2051
2052                 <listitem>
2053                   <para>Specifies the server machine on which to start running each process.</para>
2054                 </listitem>
2055               </varlistentry>
2056
2057               <varlistentry>
2058                 <term><emphasis role="bold">server process name</emphasis></term>
2059
2060                 <listitem>
2061                   <para>Specifies each process to start on machine name. Use the name assigned to the process at creation.</para>
2062                 </listitem>
2063               </varlistentry>
2064             </variablelist></para>
2065         </listitem>
2066       </orderedlist>
2067     </sect2>
2068   </sect1>
2069
2070   <sect1 id="HDRWQ167">
2071     <title>Stopping and Starting Processes Temporarily</title>
2072
2073     <para>It is sometimes necessary to halt a process temporarily (for example, to make slight configuration changes or to perform
2074     maintenance). The commands described in this section change a process's status in the BOS Server's memory only; the effect is
2075     immediate and lasts until you change the memory state again (or until the BOS Server restarts, at which time it starts the
2076     process according to its entry in the <emphasis role="bold">BosConfig</emphasis> file).</para>
2077
2078     <para>To stop a process temporarily by changing its status flag in BOS Server memory to <computeroutput>NotRun</computeroutput>,
2079     use the <emphasis role="bold">bos shutdown</emphasis> command. To restart a stopped process by changing its status flag in the
2080     BOS Server's memory to <computeroutput>Run</computeroutput>, use the <emphasis role="bold">bos startup</emphasis> command. The
2081     process starts regardless of its status flag in the <emphasis role="bold">BosConfig</emphasis> file. You can also use the
2082     <emphasis role="bold">bos startup</emphasis> command to start all processes marked with status flag
2083     <computeroutput>Run</computeroutput> in the <emphasis role="bold">BosConfig</emphasis> file, as described in the following
2084     instructions.</para>
2085
2086     <para>Because the <emphasis role="bold">bos startup</emphasis> command starts a process without changing it status flag in the
2087     <emphasis role="bold">BosConfig</emphasis> file, it is useful for testing a server process without enabling it permanently. To
2088     stop and start processes by changing their status flags in the <emphasis role="bold">BosConfig</emphasis> file, see <link
2089     linkend="HDRWQ164">Stopping and Starting Processes Permanently</link>; to stop and immediately restart a process, see <link
2090     linkend="HDRWQ170">Stopping and Immediately Restarting Processes</link>.</para>
2091
2092     <note>
2093       <para>Do not temporarily stop a database server process on all machines at once. Doing so makes the database completely
2094       unavailable.</para>
2095     </note>
2096
2097     <indexterm>
2098       <primary>commands</primary>
2099
2100       <secondary>bos shutdown</secondary>
2101     </indexterm>
2102
2103     <indexterm>
2104       <primary>bos commands</primary>
2105
2106       <secondary>shutdown</secondary>
2107     </indexterm>
2108
2109     <sect2 id="HDRWQ168">
2110       <title>To stop processes temporarily</title>
2111
2112       <orderedlist>
2113         <listitem>
2114           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2115           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2116           display the users in the UserList file</link>. <programlisting>
2117    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2118 </programlisting></para>
2119         </listitem>
2120
2121         <listitem>
2122           <para>Issue the <emphasis role="bold">bos shutdown</emphasis> command to stop each process by
2123           changing its status flag in the BOS Server's memory to <computeroutput>NotRun</computeroutput>. <programlisting>
2124    % <emphasis role="bold">bos shutdown</emphasis> &lt;<replaceable>machine name</replaceable>&gt; [&lt;<replaceable>instances</replaceable>&gt;+] [<emphasis
2125                 role="bold">-wait</emphasis>]
2126 </programlisting></para>
2127
2128           <para>where <variablelist>
2129               <varlistentry>
2130                 <term><emphasis role="bold">sh</emphasis></term>
2131
2132                 <listitem>
2133                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">shutdown</emphasis>.</para>
2134                 </listitem>
2135               </varlistentry>
2136
2137               <varlistentry>
2138                 <term><emphasis role="bold">machine name</emphasis></term>
2139
2140                 <listitem>
2141                   <para>Specifies the server machine on which to stop processes temporarily.</para>
2142                 </listitem>
2143               </varlistentry>
2144
2145               <varlistentry>
2146                 <term><emphasis role="bold">instances</emphasis></term>
2147
2148                 <listitem>
2149                   <para>Specifies each process to stop temporarily. Use the name assigned to the process at creation.</para>
2150                 </listitem>
2151               </varlistentry>
2152
2153               <varlistentry>
2154                 <term><emphasis role="bold">-wait</emphasis></term>
2155
2156                 <listitem>
2157                   <para>Delays the return of the command shell prompt until all specified processes have actually stopped. If you
2158                   omit the flag, the prompt returns almost immediately, even if all processes are not yet stopped.</para>
2159                 </listitem>
2160               </varlistentry>
2161             </variablelist></para>
2162         </listitem>
2163       </orderedlist>
2164
2165       <indexterm>
2166         <primary>commands</primary>
2167
2168         <secondary>bos startup</secondary>
2169       </indexterm>
2170
2171       <indexterm>
2172         <primary>bos commands</primary>
2173
2174         <secondary>startup</secondary>
2175       </indexterm>
2176     </sect2>
2177
2178     <sect2 id="Header_190">
2179       <title>To start all stopped processes that have status flag Run in the BosConfig file</title>
2180
2181       <orderedlist>
2182         <listitem>
2183           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2184           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2185           display the users in the UserList file</link>. <programlisting>
2186    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2187 </programlisting></para>
2188         </listitem>
2189
2190         <listitem>
2191           <para>Issue the <emphasis role="bold">bos startup</emphasis> command to start each process on a machine that has status
2192           flag <computeroutput>Run</computeroutput> in the <emphasis role="bold">BosConfig</emphasis> file by changing its status
2193           flag in the BOS Server's memory from <computeroutput>NotRun</computeroutput> to <computeroutput>Run</computeroutput>.
2194           <programlisting>
2195    % <emphasis role="bold">bos startup</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2196 </programlisting></para>
2197
2198           <para>where <variablelist>
2199               <varlistentry>
2200                 <term><emphasis role="bold">startup</emphasis></term>
2201
2202                 <listitem>
2203                   <para>Must be typed in full.</para>
2204                 </listitem>
2205               </varlistentry>
2206
2207               <varlistentry>
2208                 <term><emphasis role="bold">machine name</emphasis></term>
2209
2210                 <listitem>
2211                   <para>Specifies the server machine on which you wish to start all processes that have status flag
2212                   <computeroutput>Run</computeroutput> in the <emphasis role="bold">BosConfig</emphasis> file.</para>
2213                 </listitem>
2214               </varlistentry>
2215             </variablelist></para>
2216         </listitem>
2217       </orderedlist>
2218     </sect2>
2219
2220     <sect2 id="Header_191">
2221       <title>To start specific processes</title>
2222
2223       <orderedlist>
2224         <listitem>
2225           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2226           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2227           display the users in the UserList file</link>. <programlisting>
2228    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2229 </programlisting></para>
2230         </listitem>
2231
2232         <listitem>
2233           <para>Issue the <emphasis role="bold">bos startup</emphasis> command to start specific processes by changing their status
2234           flags in the BOS Server's memory to <computeroutput>Run</computeroutput> without changing their status flags in the
2235           <emphasis role="bold">BosConfig</emphasis> file. <programlisting>
2236    % <emphasis role="bold">bos startup</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>instances</replaceable>&gt;+
2237 </programlisting></para>
2238
2239           <para>where <variablelist>
2240               <varlistentry>
2241                 <term><emphasis role="bold">startup</emphasis></term>
2242
2243                 <listitem>
2244                   <para>Must be typed in full.</para>
2245                 </listitem>
2246               </varlistentry>
2247
2248               <varlistentry>
2249                 <term><emphasis role="bold">machine name</emphasis></term>
2250
2251                 <listitem>
2252                   <para>Names the server machine on which to start processes.</para>
2253                 </listitem>
2254               </varlistentry>
2255
2256               <varlistentry>
2257                 <term><emphasis role="bold">instances</emphasis></term>
2258
2259                 <listitem>
2260                   <para>Specifies each process to start. Use the name assigned to the process at creation.</para>
2261                 </listitem>
2262               </varlistentry>
2263             </variablelist></para>
2264         </listitem>
2265       </orderedlist>
2266     </sect2>
2267   </sect1>
2268
2269   <sect1 id="HDRWQ170">
2270     <title>Stopping and Immediately Restarting Processes</title>
2271
2272     <indexterm>
2273       <primary>server process</primary>
2274
2275       <secondary>restarting immediately after stopping</secondary>
2276     </indexterm>
2277
2278     <indexterm>
2279       <primary>stopping</primary>
2280
2281       <secondary>server process and immediately restarting</secondary>
2282     </indexterm>
2283
2284     <para>Although by default the BOS Server checks each day for new installed binary files and restarts the associated processes,
2285     it is sometimes desirable to stop and restart processes immediately. The <emphasis role="bold">bos restart</emphasis> command
2286     provides this functionality, starting a completely new instance of each affected process: <itemizedlist>
2287         <listitem>
2288           <para>To stop and restart the BOS Server, which then restarts all processes marked with the
2289           <computeroutput>Run</computeroutput> status flag in the <emphasis role="bold">BosConfig</emphasis> file, include the
2290           <emphasis role="bold">-bosserver</emphasis> flag.</para>
2291         </listitem>
2292
2293         <listitem>
2294           <para>To stop and restart all processes marked with the <computeroutput>Run</computeroutput> status flag in the <emphasis
2295           role="bold">BosConfig</emphasis> file, include the <emphasis role="bold">-all</emphasis> flag. The BOS Server does not
2296           restart</para>
2297         </listitem>
2298
2299         <listitem>
2300           <para>To stop and restart specific processes regardless of the setting of their status flags in the <emphasis
2301           role="bold">BosConfig</emphasis> file, specify the name of each process to restart.</para>
2302         </listitem>
2303       </itemizedlist></para>
2304
2305     <para>Restarting processes causes a service outage. It is usually best to schedule restarts for periods of low usage. The BOS
2306     Server automatically restarts all processes once a week, to reduce the potential for the <emphasis>core leaks</emphasis> that
2307     can develop as any process runs for an extended time; see <link linkend="HDRWQ171">Setting the BOS Server's Restart
2308     Times</link>.</para>
2309
2310     <indexterm>
2311       <primary>outages</primary>
2312
2313       <secondary>due to server process restart</secondary>
2314     </indexterm>
2315
2316     <indexterm>
2317       <primary>system outages</primary>
2318
2319       <secondary>due to server process restart</secondary>
2320     </indexterm>
2321
2322     <para><indexterm>
2323         <primary>server process</primary>
2324
2325         <secondary>restarting by restarting BOS Server</secondary>
2326       </indexterm> <indexterm>
2327         <primary>restarting</primary>
2328
2329         <secondary>server process</secondary>
2330
2331         <tertiary>including BOS Server</tertiary>
2332       </indexterm> <indexterm>
2333         <primary>bos commands</primary>
2334
2335         <secondary>restart</secondary>
2336
2337         <tertiary>with -bosserver flag</tertiary>
2338       </indexterm> <indexterm>
2339         <primary>bos commands</primary>
2340
2341         <secondary>restart</secondary>
2342
2343         <tertiary>including BOS Server</tertiary>
2344       </indexterm> <indexterm>
2345         <primary>commands</primary>
2346
2347         <secondary>bos restart</secondary>
2348
2349         <tertiary>including BOS Server</tertiary>
2350       </indexterm></para>
2351
2352     <sect2 id="Header_193">
2353       <title>To stop and restart all processes including the BOS Server</title>
2354
2355       <orderedlist>
2356         <listitem>
2357           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2358           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2359           display the users in the UserList file</link>. <programlisting>
2360    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2361 </programlisting></para>
2362         </listitem>
2363
2364         <listitem>
2365           <para>Issue the <emphasis role="bold">bos restart</emphasis> command with the <emphasis role="bold">-bosserver</emphasis>
2366           flag to stop and restart the BOS Server, which restarts every process marked with status flag
2367           <computeroutput>Run</computeroutput> in the <emphasis role="bold">BosConfig</emphasis> file. <programlisting>
2368    % <emphasis role="bold">bos restart</emphasis> &lt;<replaceable>machine name</replaceable>&gt;  <emphasis role="bold">-bosserver</emphasis>
2369 </programlisting></para>
2370
2371           <para>where <variablelist>
2372               <varlistentry>
2373                 <term><emphasis role="bold">res</emphasis></term>
2374
2375                 <listitem>
2376                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">restart</emphasis>.</para>
2377                 </listitem>
2378               </varlistentry>
2379
2380               <varlistentry>
2381                 <term><emphasis role="bold">machine name</emphasis></term>
2382
2383                 <listitem>
2384                   <para>Specifies the server machine on which to restart all processes.</para>
2385                 </listitem>
2386               </varlistentry>
2387
2388               <varlistentry>
2389                 <term><emphasis role="bold">-bosserver</emphasis></term>
2390
2391                 <listitem>
2392                   <para>Stops the BOS Server and all processes running on the machine. A new BOS Server instance starts; it then
2393                   starts new instances of all processes marked with status flag <computeroutput>Run</computeroutput> in the
2394                   <emphasis role="bold">BosConfig</emphasis> file.</para>
2395                 </listitem>
2396               </varlistentry>
2397             </variablelist></para>
2398         </listitem>
2399       </orderedlist>
2400
2401       <indexterm>
2402         <primary>bos commands</primary>
2403
2404         <secondary>restart</secondary>
2405
2406         <tertiary>excluding BOS Server</tertiary>
2407       </indexterm>
2408
2409       <indexterm>
2410         <primary>commands</primary>
2411
2412         <secondary>bos restart</secondary>
2413
2414         <tertiary>excluding BOS Server</tertiary>
2415       </indexterm>
2416
2417       <indexterm>
2418         <primary>server process</primary>
2419
2420         <secondary>restarting</secondary>
2421
2422         <tertiary>except BOS Server</tertiary>
2423       </indexterm>
2424
2425       <indexterm>
2426         <primary>restarting</primary>
2427
2428         <secondary>server process</secondary>
2429
2430         <tertiary>except BOS Server</tertiary>
2431       </indexterm>
2432     </sect2>
2433
2434     <sect2 id="Header_194">
2435       <title>To stop and immediately restart all processes except the BOS Server</title>
2436
2437       <orderedlist>
2438         <listitem>
2439           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2440           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2441           display the users in the UserList file</link>. <programlisting>
2442    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2443 </programlisting></para>
2444         </listitem>
2445
2446         <listitem>
2447           <para>Issue the <emphasis role="bold">bos restart</emphasis> command with the <emphasis role="bold">-all</emphasis> flag
2448           to stop and immediately restart every process marked with status flag <computeroutput>Run</computeroutput> in the
2449           <emphasis role="bold">BosConfig</emphasis> file. The BOS Server does not restart. <programlisting>
2450    % <emphasis role="bold">bos restart</emphasis> &lt;<replaceable>machine name</replaceable>&gt; <emphasis role="bold">-all</emphasis>
2451 </programlisting></para>
2452
2453           <para>where <variablelist>
2454               <varlistentry>
2455                 <term><emphasis role="bold">res</emphasis></term>
2456
2457                 <listitem>
2458                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">restart</emphasis>.</para>
2459                 </listitem>
2460               </varlistentry>
2461
2462               <varlistentry>
2463                 <term><emphasis role="bold">machine name</emphasis></term>
2464
2465                 <listitem>
2466                   <para>Specifies the server machine on which to stop and restart processes.</para>
2467                 </listitem>
2468               </varlistentry>
2469
2470               <varlistentry>
2471                 <term><emphasis role="bold">-all</emphasis></term>
2472
2473                 <listitem>
2474                   <para>Stops and immediately restarts all processes marked with status flag <computeroutput>Run</computeroutput> in
2475                   the <emphasis role="bold">BosConfig</emphasis> file.</para>
2476                 </listitem>
2477               </varlistentry>
2478             </variablelist></para>
2479         </listitem>
2480       </orderedlist>
2481
2482       <indexterm>
2483         <primary>bos commands</primary>
2484
2485         <secondary>restart</secondary>
2486
2487         <tertiary>selected processes</tertiary>
2488       </indexterm>
2489
2490       <indexterm>
2491         <primary>commands</primary>
2492
2493         <secondary>bos restart</secondary>
2494
2495         <tertiary>selected processes</tertiary>
2496       </indexterm>
2497
2498       <indexterm>
2499         <primary>restarting</primary>
2500
2501         <secondary>server processes</secondary>
2502       </indexterm>
2503
2504       <indexterm>
2505         <primary>server process</primary>
2506
2507         <secondary>restarting specific processes</secondary>
2508       </indexterm>
2509     </sect2>
2510
2511     <sect2 id="Header_195">
2512       <title>To stop and immediately restart specific processes</title>
2513
2514       <orderedlist>
2515         <listitem>
2516           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2517           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2518           display the users in the UserList file</link>. <programlisting>
2519    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2520 </programlisting></para>
2521         </listitem>
2522
2523         <listitem>
2524           <para>Issue the <emphasis role="bold">bos restart</emphasis> command to stop and immediately restart one or more specified
2525           processes, regardless of their status flag setting in the <emphasis role="bold">BosConfig</emphasis> file.
2526           <programlisting>
2527    % <emphasis role="bold">bos restart</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>instances</replaceable>&gt;+
2528 </programlisting></para>
2529
2530           <para>where <variablelist>
2531               <varlistentry>
2532                 <term><emphasis role="bold">res</emphasis></term>
2533
2534                 <listitem>
2535                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">restart</emphasis>.</para>
2536                 </listitem>
2537               </varlistentry>
2538
2539               <varlistentry>
2540                 <term><emphasis role="bold">machine name</emphasis></term>
2541
2542                 <listitem>
2543                   <para>Names the server machine on which to restart the specified processes.</para>
2544                 </listitem>
2545               </varlistentry>
2546
2547               <varlistentry>
2548                 <term><emphasis role="bold">instances</emphasis></term>
2549
2550                 <listitem>
2551                   <para>Specifies each process to stop and immediately restart. Use the name assigned to the process at
2552                   creation.</para>
2553                 </listitem>
2554               </varlistentry>
2555             </variablelist></para>
2556         </listitem>
2557       </orderedlist>
2558     </sect2>
2559   </sect1>
2560
2561   <sect1 id="HDRWQ171">
2562     <title>Setting the BOS Server's Restart Times</title>
2563
2564     <indexterm>
2565       <primary>core leak</primary>
2566
2567       <secondary>preventing with scheduled restarts</secondary>
2568     </indexterm>
2569
2570     <indexterm>
2571       <primary>preventing</primary>
2572
2573       <secondary>core leaks, with scheduled BOS Server restarts</secondary>
2574     </indexterm>
2575
2576     <indexterm>
2577       <primary>BOS Server</primary>
2578
2579       <secondary>restart times, displaying and setting</secondary>
2580     </indexterm>
2581
2582     <indexterm>
2583       <primary>automatic</primary>
2584
2585       <secondary>process restarts by BOS Server</secondary>
2586     </indexterm>
2587
2588     <indexterm>
2589       <primary>weekly restart of BOS Server (automatic)</primary>
2590
2591       <secondary>displaying and setting time</secondary>
2592     </indexterm>
2593
2594     <indexterm>
2595       <primary>restart time for BOS Server (automatic)</primary>
2596
2597       <secondary>displaying and setting time</secondary>
2598     </indexterm>
2599
2600     <indexterm>
2601       <primary>restart times for BOS Server</primary>
2602
2603       <secondary>displaying and setting</secondary>
2604     </indexterm>
2605
2606     <indexterm>
2607       <primary>daily restart for new binaries</primary>
2608
2609       <secondary>displaying and setting time</secondary>
2610     </indexterm>
2611
2612     <indexterm>
2613       <primary>restart times for BOS Server</primary>
2614
2615       <secondary>setting</secondary>
2616     </indexterm>
2617
2618     <para>The BOS Server by default has general restarts disabled. If you wish, it may be configured so that it
2619     restarts once a week, and the new instance restarts all processes marked with status flag
2620     <computeroutput>Run</computeroutput> in the local <emphasis role="bold">/usr/afs/local/BosConfig</emphasis> file (this is
2621     equivalent to issuing the <emphasis role="bold">bos restart</emphasis> command with the <emphasis
2622     role="bold">-bosserver</emphasis> flag). Historically, the default restart time was Sunday at 4:00 a.m - sites which have
2623     been upgraded from earlier versions of OpenAFS may find that this value is still present. The weekly restart was designed to
2624     minimize core leaks, which can develop as a process continues to allocate virtual memory but does not free it again. It is
2625     believed that these leaks have been fixed in OpenAFS.</para>
2626
2627     <para>The BOS Server also by default checks once a day for any newly installed binary files. If it finds that the modification
2628     time stamp on a process's binary file in the <emphasis role="bold">/usr/afs/bin</emphasis> directory is more recent than the
2629     time at which the process last started, it restarts the process so that a new instance starts using the new binary file. The
2630     default binary-checking time is 5:00 a.m.</para>
2631
2632     <para>Because restarts can cause outages during which the file system is inaccessible, the default times for restarts are in the
2633     early morning when usage is likely to be lowest. Restarting a database server process on any database server machine usually
2634     makes the entire system unavailable to everyone for a brief time, whereas restarting other types of processes inconveniences
2635     only users interacting with that process on that machine. The longest outages typically result from restarting the <emphasis
2636     role="bold">fs</emphasis> process, because the File Server must reattach all volumes.</para>
2637
2638     <indexterm>
2639       <primary>outages</primary>
2640
2641       <secondary>due to automatic server restart</secondary>
2642     </indexterm>
2643
2644     <indexterm>
2645       <primary>system outages</primary>
2646
2647       <secondary>due to automatic server restart</secondary>
2648     </indexterm>
2649
2650     <indexterm>
2651       <primary>BosConfig file</primary>
2652
2653       <secondary>restart times defined</secondary>
2654     </indexterm>
2655
2656     <para>The <emphasis role="bold">BosConfig</emphasis> file on each file server machine records the two restart times. To display
2657     the current setting, issue the <emphasis role="bold">bos getrestart</emphasis> command. To reset a time, use the <emphasis
2658     role="bold">bos setrestart</emphasis> command.</para>
2659
2660     <indexterm>
2661       <primary>bos commands</primary>
2662
2663       <secondary>getrestart</secondary>
2664     </indexterm>
2665
2666     <indexterm>
2667       <primary>commands</primary>
2668
2669       <secondary>bos getrestart</secondary>
2670     </indexterm>
2671
2672     <indexterm>
2673       <primary>displaying</primary>
2674
2675       <secondary>BOS Server's automatic restart times</secondary>
2676     </indexterm>
2677
2678     <sect2 id="Header_197">
2679       <title>To display the BOS Server restart times</title>
2680
2681       <orderedlist>
2682         <listitem>
2683           <para>Issue the <emphasis role="bold">bos getrestart</emphasis> command to display the automatic restart times.
2684           <programlisting>
2685    % <emphasis role="bold">bos getrestart</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2686 </programlisting></para>
2687
2688           <para>where <variablelist>
2689               <varlistentry>
2690                 <term><emphasis role="bold">getr</emphasis></term>
2691
2692                 <listitem>
2693                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">getrestart</emphasis>.</para>
2694                 </listitem>
2695               </varlistentry>
2696
2697               <varlistentry>
2698                 <term><emphasis role="bold">machine name</emphasis></term>
2699
2700                 <listitem>
2701                   <para>Specifies the server machine for which to display the restart times.</para>
2702                 </listitem>
2703               </varlistentry>
2704             </variablelist></para>
2705         </listitem>
2706       </orderedlist>
2707
2708       <indexterm>
2709         <primary>bos commands</primary>
2710
2711         <secondary>setrestart</secondary>
2712       </indexterm>
2713
2714       <indexterm>
2715         <primary>commands</primary>
2716
2717         <secondary>bos setrestart</secondary>
2718       </indexterm>
2719
2720       <indexterm>
2721         <primary>setting</primary>
2722
2723         <secondary>BOS Server's automatic restart times</secondary>
2724       </indexterm>
2725     </sect2>
2726
2727     <sect2 id="HDRWQ172">
2728       <title>To set the general or binary restart time</title>
2729
2730       <orderedlist>
2731         <listitem>
2732           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2733           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2734           display the users in the UserList file</link>. <programlisting>
2735    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2736 </programlisting></para>
2737         </listitem>
2738
2739         <listitem>
2740           <para>Issue the <emphasis role="bold">bos setrestart</emphasis> command with the <emphasis role="bold">-general</emphasis>
2741           flag to set the general restart time or the <emphasis role="bold">-newbinary</emphasis> flag to set the binary restart
2742           time. The command accepts only one of the flags at a time. <programlisting>
2743    % <emphasis role="bold">bos setrestart</emphasis> &lt;<replaceable>machine name</replaceable>&gt; "&lt;<replaceable>time to restart server</replaceable>&gt;" [<emphasis
2744                 role="bold">-general</emphasis>]  [<emphasis role="bold">-newbinary</emphasis>]
2745 </programlisting></para>
2746
2747           <para>where <variablelist>
2748               <varlistentry>
2749                 <term><emphasis role="bold">setr</emphasis></term>
2750
2751                 <listitem>
2752                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">setrestart</emphasis>.</para>
2753                 </listitem>
2754               </varlistentry>
2755
2756               <varlistentry>
2757                 <term><emphasis role="bold">machine name</emphasis></term>
2758
2759                 <listitem>
2760                   <para>Specifies the server machine.</para>
2761                 </listitem>
2762               </varlistentry>
2763
2764               <varlistentry>
2765                 <term><emphasis role="bold">time to restart server</emphasis></term>
2766
2767                 <listitem>
2768                   <para>Sets when the BOS Server restarts itself (if combined with the <emphasis role="bold">-general</emphasis>
2769                   flag) or any process with a new binary file (if combined with the <emphasis role="bold">-newbinary</emphasis>
2770                   flag). Provide one of the following types of values: <itemizedlist>
2771                       <listitem>
2772                         <para>The string <emphasis role="bold">never</emphasis>, which directs the BOS Server never to perform the
2773                         indicated type of restart.</para>
2774                       </listitem>
2775
2776                       <listitem>
2777                         <para>A time of day (the conventional type of value for the binary restart time). Separate the hours and
2778                         minutes with a colon (<emphasis>hh</emphasis>:<emphasis>MM</emphasis>), and use either 24-hour format, or a
2779                         value in the range from <emphasis role="bold">1:00</emphasis> through <emphasis role="bold">12:59</emphasis>
2780                         with the addition of <emphasis role="bold">am</emphasis> or <emphasis role="bold">pm</emphasis>. For
2781                         example, both <emphasis role="bold">14:30</emphasis> and <emphasis role="bold">"2:30 pm"</emphasis> indicate
2782                         2:30 in the afternoon. Surround this parameter with double quotes (<emphasis role="bold">" "</emphasis>) if
2783                         it contains a space.</para>
2784                       </listitem>
2785
2786                       <listitem>
2787                         <para>A day of the week and time of day, separated by a space and surrounded with double quotes (<emphasis
2788                         role="bold">" "</emphasis>). This is the conventional type of value for the general restart. For the day,
2789                         provide either the whole name or the first three letters, all in lowercase letters (<emphasis
2790                         role="bold">sunday</emphasis> or <emphasis role="bold">sun</emphasis>, <emphasis
2791                         role="bold">thursday</emphasis> or <emphasis role="bold">thu</emphasis>, and so on). For the time, use the
2792                         same format as when specifying the time alone.</para>
2793                       </listitem>
2794                     </itemizedlist></para>
2795
2796                   <para>If desired, precede a time or day and time definition with the string <emphasis role="bold">every</emphasis>
2797                   or <emphasis role="bold">at</emphasis>. These words do not change the meaning, but possibly make the output of the
2798                   <emphasis role="bold">bos getrestart</emphasis> command easier to understand.</para>
2799
2800                   <note>
2801                     <para>If the specified time is within one hour of the current time, the BOS Server does not perform the restart
2802                     until the next eligible time (the next day for a time or next week for a day and time).</para>
2803                   </note>
2804                 </listitem>
2805               </varlistentry>
2806
2807               <varlistentry>
2808                 <term><emphasis role="bold">-general</emphasis></term>
2809
2810                 <listitem>
2811                   <para>Sets the general restart time when the BOS Server restarts itself.</para>
2812                 </listitem>
2813               </varlistentry>
2814
2815               <varlistentry>
2816                 <term><emphasis role="bold">-newbinary</emphasis></term>
2817
2818                 <listitem>
2819                   <para>Sets the restart time for processes with new binary files.</para>
2820                 </listitem>
2821               </varlistentry>
2822             </variablelist></para>
2823         </listitem>
2824       </orderedlist>
2825     </sect2>
2826   </sect1>
2827
2828   <sect1 id="HDRWQ173">
2829     <title>Displaying Server Process Log Files</title>
2830
2831     <indexterm>
2832       <primary>file server machine</primary>
2833
2834       <secondary>displaying log files</secondary>
2835     </indexterm>
2836
2837     <indexterm>
2838       <primary>server process</primary>
2839
2840       <secondary>displaying log files</secondary>
2841     </indexterm>
2842
2843     <indexterm>
2844       <primary>log files</primary>
2845
2846       <secondary>displaying</secondary>
2847     </indexterm>
2848
2849     <indexterm>
2850       <primary>displaying</primary>
2851
2852       <secondary>log files for server processes</secondary>
2853     </indexterm>
2854
2855     <indexterm>
2856       <primary>files</primary>
2857
2858       <secondary>displaying log files</secondary>
2859     </indexterm>
2860
2861     <indexterm>
2862       <primary>FileLog file</primary>
2863
2864       <secondary>displaying</secondary>
2865     </indexterm>
2866
2867     <indexterm>
2868       <primary>SalvageLog file</primary>
2869
2870       <secondary>displaying</secondary>
2871     </indexterm>
2872
2873     <indexterm>
2874       <primary>VLLog file</primary>
2875
2876       <secondary>displaying</secondary>
2877     </indexterm>
2878
2879     <indexterm>
2880       <primary>VolserLog file</primary>
2881
2882       <secondary>displaying</secondary>
2883     </indexterm>
2884
2885     <indexterm>
2886       <primary>BackupLog file</primary>
2887
2888       <secondary>displaying</secondary>
2889     </indexterm>
2890
2891     <indexterm>
2892       <primary>BosLog file</primary>
2893
2894       <secondary>displaying</secondary>
2895     </indexterm>
2896
2897     <indexterm>
2898       <primary>AuthLog file</primary>
2899
2900       <secondary>displaying</secondary>
2901     </indexterm>
2902
2903     <indexterm>
2904       <primary>Authentication Server</primary>
2905
2906       <secondary>displaying log file</secondary>
2907     </indexterm>
2908
2909     <indexterm>
2910       <primary>Backup Server</primary>
2911
2912       <secondary>displaying log file</secondary>
2913     </indexterm>
2914
2915     <indexterm>
2916       <primary>BOS Server</primary>
2917
2918       <secondary>displaying log file</secondary>
2919     </indexterm>
2920
2921     <indexterm>
2922       <primary>File Server</primary>
2923
2924       <secondary>displaying log file</secondary>
2925     </indexterm>
2926
2927     <indexterm>
2928       <primary>Salvager</primary>
2929
2930       <secondary>displaying log file</secondary>
2931     </indexterm>
2932
2933     <indexterm>
2934       <primary>Volume Server</primary>
2935
2936       <secondary>displaying log file</secondary>
2937     </indexterm>
2938
2939     <para>The <emphasis role="bold">/usr/afs/logs</emphasis> directory on each file server machine contains log files that detail
2940     interesting events that occur during normal operation of some AFS server processes. The self-explanatory information in the log
2941     files can help you evaluate process failures and other problems. To display a log file remotely, issue the <emphasis
2942     role="bold">bos getlog</emphasis> command. You can also establish a connection to the server machine and use a text editor or
2943     other file display program (such as the <emphasis role="bold">cat</emphasis> command).</para>
2944
2945     <note>
2946       <para>Log files can grow unmanageably large if you do not periodically shutdown and restart the database server processes (for
2947       example, if you disable the general restart time). In this case it is a good policy periodically to issue the UNIX <emphasis
2948       role="bold">rm</emphasis> command to delete the current log file. The server process automatically creates a new one as
2949       needed.</para>
2950     </note>
2951
2952     <indexterm>
2953       <primary>bos commands</primary>
2954
2955       <secondary>getlog</secondary>
2956     </indexterm>
2957
2958     <indexterm>
2959       <primary>commands</primary>
2960
2961       <secondary>bos getlog</secondary>
2962     </indexterm>
2963
2964     <sect2 id="Header_200">
2965       <title>To examine a server process log file</title>
2966
2967       <orderedlist>
2968         <listitem>
2969           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2970           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2971           display the users in the UserList file</link>. <programlisting>
2972    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2973 </programlisting></para>
2974         </listitem>
2975
2976         <listitem>
2977           <para>Issue the <emphasis role="bold">bos getlog</emphasis> command to display a log file. <programlisting>
2978    % <emphasis role="bold">bos getlog</emphasis>  &lt;<replaceable>machine name</replaceable>&gt;  &lt;<replaceable>log file to examine</replaceable>&gt;
2979 </programlisting></para>
2980
2981           <para>where <variablelist>
2982               <varlistentry>
2983                 <term><emphasis role="bold">getl</emphasis></term>
2984
2985                 <listitem>
2986                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">getlog</emphasis>.</para>
2987                 </listitem>
2988               </varlistentry>
2989
2990               <varlistentry>
2991                 <term><emphasis role="bold">machine name</emphasis></term>
2992
2993                 <listitem>
2994                   <para>Specifies the server machine from which to display the log file.</para>
2995                 </listitem>
2996               </varlistentry>
2997
2998               <varlistentry>
2999                 <term><emphasis role="bold">log file to examine</emphasis></term>
3000
3001                 <listitem>
3002                   <para>Names the log file to be displayed. Provide one of the following file names to display the indicated log
3003                   file from the <emphasis role="bold">/usr/afs/logs</emphasis> directory. <itemizedlist>
3004                       <listitem>
3005                         <para><emphasis role="bold">AuthLog</emphasis> for the Authentication Server log file</para>
3006                       </listitem>
3007
3008                       <listitem>
3009                         <para><emphasis role="bold">BackupLog</emphasis> for the Backup Server log file</para>
3010                       </listitem>
3011
3012                       <listitem>
3013                         <para><emphasis role="bold">BosLog</emphasis> for the BOS Server log file</para>
3014                       </listitem>
3015
3016                       <listitem>
3017                         <para><emphasis role="bold">FileLog</emphasis> for the File Server log file</para>
3018                       </listitem>
3019
3020                       <listitem>
3021                         <para><emphasis role="bold">SalvageLog</emphasis> for the Salvager log file</para>
3022                       </listitem>
3023
3024                       <listitem>
3025                         <para><emphasis role="bold">VLLog</emphasis> for the Volume Location (VL) Server log file</para>
3026                       </listitem>
3027
3028                       <listitem>
3029                         <para><emphasis role="bold">VolserLog</emphasis> for the Volume Server log file</para>
3030                       </listitem>
3031                     </itemizedlist></para>
3032
3033                   <para>You can provide a full or relative pathname to display a file from another directory. Relative pathnames are
3034                   interpreted relative to the <emphasis role="bold">/usr/afs/logs</emphasis> directory.</para>
3035                 </listitem>
3036               </varlistentry>
3037             </variablelist></para>
3038         </listitem>
3039       </orderedlist>
3040     </sect2>
3041   </sect1>
3042 </chapter>