xml-docbook-documentation-first-pass-20060915
[openafs.git] / doc / xml / AdminGuide / c3025.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Administering Server Machines</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
9 REL="HOME"
10 TITLE="AFS Administration Guide"
11 HREF="book1.html"><LINK
12 REL="UP"
13 TITLE="Managing File Server Machines"
14 HREF="p3023.html"><LINK
15 REL="PREVIOUS"
16 TITLE="Managing File Server Machines"
17 HREF="p3023.html"><LINK
18 REL="NEXT"
19 TITLE="Monitoring and Controlling Server Processes"
20 HREF="c6449.html"></HEAD
21 ><BODY
22 CLASS="chapter"
23 BGCOLOR="#FFFFFF"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >AFS Administration Guide: Version 3.6</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="p3023.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 ></TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="c6449.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="chapter"
73 ><H1
74 ><A
75 NAME="HDRWQ80"
76 ></A
77 >Chapter 3. Administering Server Machines</H1
78 ><P
79 >This chapter describes how to administer an AFS server machine. It describes the following configuration information and
80   administrative tasks: <UL
81 ><LI
82 ><P
83 >The binary and configuration files that must reside in the subdirectories of the <SPAN
84 CLASS="bold"
85 ><B
86 CLASS="emphasis"
87 >/usr/afs</B
88 ></SPAN
89 > directory on every server machine's local disk; see <A
90 HREF="c3025.html#HDRWQ83"
91 >Local Disk Files
92         on a Server Machine</A
93 >.</P
94 ></LI
95 ><LI
96 ><P
97 >The various <SPAN
98 CLASS="emphasis"
99 ><I
100 CLASS="emphasis"
101 >roles</I
102 ></SPAN
103 > or functions that an AFS server machine can perform, and how to determine which
104         machines are taking a role; see <A
105 HREF="c3025.html#HDRWQ90"
106 >The Four Roles for File Server Machines</A
107 >.</P
108 ></LI
109 ><LI
110 ><P
111 >How to maintain database server machines; see <A
112 HREF="c3025.html#HDRWQ101"
113 >Administering Database Server
114         Machines</A
115 >.</P
116 ></LI
117 ><LI
118 ><P
119 >How to maintain the list of database server machines in the <SPAN
120 CLASS="bold"
121 ><B
122 CLASS="emphasis"
123 >/usr/afs/etc/CellServDB</B
124 ></SPAN
125 >
126         file; see <A
127 HREF="c3025.html#HDRWQ118"
128 >Maintaining the Server CellServDB File</A
129 >.</P
130 ></LI
131 ><LI
132 ><P
133 >How to control authorization checking on a server machine; see <A
134 HREF="c3025.html#HDRWQ123"
135 >Managing Authentication and
136         Authorization Requirements</A
137 >.</P
138 ></LI
139 ><LI
140 ><P
141 >How to install new disks or partitions on a file server machine; see <A
142 HREF="c3025.html#HDRWQ130"
143 >Adding or Removing Disks
144         and Partitions</A
145 >.</P
146 ></LI
147 ><LI
148 ><P
149 >How to change a server machine's IP addresses and manager VLDB server entries; see <A
150 HREF="c3025.html#HDRWQ138"
151 >Managing
152         Server IP Addresses and VLDB Server Entries</A
153 >.</P
154 ></LI
155 ><LI
156 ><P
157 >How to reboot a file server machine; see <A
158 HREF="c3025.html#HDRWQ139"
159 >Rebooting a Server Machine</A
160 >.</P
161 ></LI
162 ></UL
163 ></P
164 ><P
165 >To learn how to install and configure a new server machine, see the <SPAN
166 CLASS="emphasis"
167 ><I
168 CLASS="emphasis"
169 >IBM AFS Quick Beginnings</I
170 ></SPAN
171 >.</P
172 ><P
173 >To learn how to administer the server processes themselves, see <A
174 HREF="c6449.html"
175 >Monitoring and Controlling Server
176   Processes</A
177 >.</P
178 ><P
179 >To learn how to administer volumes, see <A
180 HREF="c8420.html"
181 >Managing Volumes</A
182 >.</P
183 ><DIV
184 CLASS="sect1"
185 ><H1
186 CLASS="sect1"
187 ><A
188 NAME="HDRWQ81"
189 >Summary of Instructions</A
190 ></H1
191 ><P
192 >This chapter explains how to perform the following tasks by using the indicated commands:</P
193 ><DIV
194 CLASS="informaltable"
195 ><A
196 NAME="AEN3071"
197 ></A
198 ><TABLE
199 BORDER="0"
200 FRAME="void"
201 CLASS="CALSTABLE"
202 ><COL
203 WIDTH="70*"><COL
204 WIDTH="30*"><TBODY
205 ><TR
206 ><TD
207 >Install new binaries</TD
208 ><TD
209 ><SPAN
210 CLASS="bold"
211 ><B
212 CLASS="emphasis"
213 >bos install</B
214 ></SPAN
215 ></TD
216 ></TR
217 ><TR
218 ><TD
219 >Examine binary check-and-restart time</TD
220 ><TD
221 ><SPAN
222 CLASS="bold"
223 ><B
224 CLASS="emphasis"
225 >bos getrestart</B
226 ></SPAN
227 ></TD
228 ></TR
229 ><TR
230 ><TD
231 >Set binary check-and-restart time</TD
232 ><TD
233 ><SPAN
234 CLASS="bold"
235 ><B
236 CLASS="emphasis"
237 >bos setrestart</B
238 ></SPAN
239 ></TD
240 ></TR
241 ><TR
242 ><TD
243 >Examine compilation dates on binary files</TD
244 ><TD
245 ><SPAN
246 CLASS="bold"
247 ><B
248 CLASS="emphasis"
249 >bos getdate</B
250 ></SPAN
251 ></TD
252 ></TR
253 ><TR
254 ><TD
255 >Restart a process to use new binaries</TD
256 ><TD
257 ><SPAN
258 CLASS="bold"
259 ><B
260 CLASS="emphasis"
261 >bos restart</B
262 ></SPAN
263 ></TD
264 ></TR
265 ><TR
266 ><TD
267 >Revert to old version of binaries</TD
268 ><TD
269 ><SPAN
270 CLASS="bold"
271 ><B
272 CLASS="emphasis"
273 >bos uninstall</B
274 ></SPAN
275 ></TD
276 ></TR
277 ><TR
278 ><TD
279 >Remove obsolete <SPAN
280 CLASS="bold"
281 ><B
282 CLASS="emphasis"
283 >.BAK</B
284 ></SPAN
285 > and <SPAN
286 CLASS="bold"
287 ><B
288 CLASS="emphasis"
289 >.OLD</B
290 ></SPAN
291 > versions</TD
292 ><TD
293 ><SPAN
294 CLASS="bold"
295 ><B
296 CLASS="emphasis"
297 >bos prune</B
298 ></SPAN
299 ></TD
300 ></TR
301 ><TR
302 ><TD
303 >List partitions on a file server machine</TD
304 ><TD
305 ><SPAN
306 CLASS="bold"
307 ><B
308 CLASS="emphasis"
309 >vos listpart</B
310 ></SPAN
311 ></TD
312 ></TR
313 ><TR
314 ><TD
315 >Shutdown AFS server processes</TD
316 ><TD
317 ><SPAN
318 CLASS="bold"
319 ><B
320 CLASS="emphasis"
321 >bos shutdown</B
322 ></SPAN
323 ></TD
324 ></TR
325 ><TR
326 ><TD
327 >List volumes on a partition</TD
328 ><TD
329 ><SPAN
330 CLASS="bold"
331 ><B
332 CLASS="emphasis"
333 >vos listvldb</B
334 ></SPAN
335 ></TD
336 ></TR
337 ><TR
338 ><TD
339 >Move read/write volumes</TD
340 ><TD
341 ><SPAN
342 CLASS="bold"
343 ><B
344 CLASS="emphasis"
345 >vos move</B
346 ></SPAN
347 ></TD
348 ></TR
349 ><TR
350 ><TD
351 >List a cell's database server machines</TD
352 ><TD
353 ><SPAN
354 CLASS="bold"
355 ><B
356 CLASS="emphasis"
357 >bos listhosts</B
358 ></SPAN
359 ></TD
360 ></TR
361 ><TR
362 ><TD
363 >Add a database server machine to server <SPAN
364 CLASS="bold"
365 ><B
366 CLASS="emphasis"
367 >CellServDB</B
368 ></SPAN
369 > file</TD
370 ><TD
371 ><SPAN
372 CLASS="bold"
373 ><B
374 CLASS="emphasis"
375 >bos addhost</B
376 ></SPAN
377 ></TD
378 ></TR
379 ><TR
380 ><TD
381 >Remove a database server machine from server <SPAN
382 CLASS="bold"
383 ><B
384 CLASS="emphasis"
385 >CellServDB</B
386 ></SPAN
387 > file</TD
388 ><TD
389 ><SPAN
390 CLASS="bold"
391 ><B
392 CLASS="emphasis"
393 >bos removehost</B
394 ></SPAN
395 ></TD
396 ></TR
397 ><TR
398 ><TD
399 >Set authorization checking requirements</TD
400 ><TD
401 ><SPAN
402 CLASS="bold"
403 ><B
404 CLASS="emphasis"
405 >bos setauth</B
406 ></SPAN
407 ></TD
408 ></TR
409 ><TR
410 ><TD
411 >Prevent authentication for <SPAN
412 CLASS="bold"
413 ><B
414 CLASS="emphasis"
415 >bos</B
416 ></SPAN
417 >, <SPAN
418 CLASS="bold"
419 ><B
420 CLASS="emphasis"
421 >pts</B
422 ></SPAN
423 >, and
424             <SPAN
425 CLASS="bold"
426 ><B
427 CLASS="emphasis"
428 >vos</B
429 ></SPAN
430 > commands</TD
431 ><TD
432 >Include <SPAN
433 CLASS="bold"
434 ><B
435 CLASS="emphasis"
436 >-noauth</B
437 ></SPAN
438 > flag</TD
439 ></TR
440 ><TR
441 ><TD
442 >Prevent authentication for kas commands</TD
443 ><TD
444 >Include <SPAN
445 CLASS="bold"
446 ><B
447 CLASS="emphasis"
448 >-noauth</B
449 ></SPAN
450 > flag on some commands or issue <SPAN
451 CLASS="bold"
452 ><B
453 CLASS="emphasis"
454 >noauthentication</B
455 ></SPAN
456 > while in interactive mode</TD
457 ></TR
458 ><TR
459 ><TD
460 >Display all VLDB server entries</TD
461 ><TD
462 ><SPAN
463 CLASS="bold"
464 ><B
465 CLASS="emphasis"
466 >vos listaddrs</B
467 ></SPAN
468 ></TD
469 ></TR
470 ><TR
471 ><TD
472 >Remove a VLDB server entry</TD
473 ><TD
474 ><SPAN
475 CLASS="bold"
476 ><B
477 CLASS="emphasis"
478 >vos changeaddr</B
479 ></SPAN
480 ></TD
481 ></TR
482 ><TR
483 ><TD
484 >Reboot a server machine remotely</TD
485 ><TD
486 ><SPAN
487 CLASS="bold"
488 ><B
489 CLASS="emphasis"
490 >bos exec</B
491 ></SPAN
492 > <SPAN
493 CLASS="emphasis"
494 ><I
495 CLASS="emphasis"
496 >reboot_command</I
497 ></SPAN
498 ></TD
499 ></TR
500 ></TBODY
501 ></TABLE
502 ></DIV
503 ></DIV
504 ><DIV
505 CLASS="sect1"
506 ><H1
507 CLASS="sect1"
508 ><A
509 NAME="HDRWQ83"
510 >Local Disk Files on a Server Machine</A
511 ></H1
512 ><P
513 >Several types of files must reside in the subdirectories of the <SPAN
514 CLASS="bold"
515 ><B
516 CLASS="emphasis"
517 >/usr/afs</B
518 ></SPAN
519 > directory on an
520     AFS server machine's local disk. They include binaries, configuration files, the administrative database files (on database
521     server machines), log files, and volume header files.</P
522 ><P
523 ><SPAN
524 CLASS="bold"
525 ><B
526 CLASS="emphasis"
527 >Note for Windows users:</B
528 ></SPAN
529 > Some files described in this document possibly do not exist on
530     machines that run a Windows operating system. Also, Windows uses a backslash (<SPAN
531 CLASS="bold"
532 ><B
533 CLASS="emphasis"
534 >\</B
535 ></SPAN
536 >) rather than a
537     forward slash (<SPAN
538 CLASS="bold"
539 ><B
540 CLASS="emphasis"
541 >/</B
542 ></SPAN
543 >) to separate the elements in a pathname.</P
544 ><DIV
545 CLASS="sect2"
546 ><H2
547 CLASS="sect2"
548 ><A
549 NAME="HDRWQ84"
550 >Binaries in the /usr/afs/bin Directory</A
551 ></H2
552 ><P
553 >The <SPAN
554 CLASS="bold"
555 ><B
556 CLASS="emphasis"
557 >/usr/afs/bin</B
558 ></SPAN
559 > directory stores the AFS server process and command suite binaries
560       appropriate for the machine's system (CPU and operating system) type. If a process has both a server portion and a client
561       portion (as with the Update Server) or if it has separate components (as with the <SPAN
562 CLASS="bold"
563 ><B
564 CLASS="emphasis"
565 >fs</B
566 ></SPAN
567 >
568       process), each component resides in a separate file.</P
569 ><P
570 >To ensure predictable system performance, all file server machines must run the same AFS build version of a given
571       process. To maintain consistency easily, use the Update Server process to distribute binaries from a binary distribution
572       machine of each system type, as described further in <A
573 HREF="c3025.html#HDRWQ93"
574 >Binary Distribution Machines</A
575 >.</P
576 ><P
577 >It is best to keep the binaries for all processes in the <SPAN
578 CLASS="bold"
579 ><B
580 CLASS="emphasis"
581 >/usr/afs/bin</B
582 ></SPAN
583 > directory, even
584       if you do not run the process actively on the machine. It simplifies the process of reconfiguring machines (for example,
585       adding database server functionality to an existing file server machine). Similarly, it is best to keep the command suite
586       binaries in the directory, even if you do not often issue commands while working on the server machine. It enables you to
587       issue commands during recovery from server and machine outages.</P
588 ><P
589 >The following lists the binary files in the <SPAN
590 CLASS="bold"
591 ><B
592 CLASS="emphasis"
593 >/usr/afs/bin</B
594 ></SPAN
595 > directory that are directly
596       related to the AFS server processes or command suites. Other binaries (for example, for the <SPAN
597 CLASS="bold"
598 ><B
599 CLASS="emphasis"
600 >klog</B
601 ></SPAN
602 > command) sometimes appear in this directory on a particular file server machine's disk or in an
603       AFS distribution. <DIV
604 CLASS="variablelist"
605 ><DL
606 ><DT
607 ><SPAN
608 CLASS="bold"
609 ><B
610 CLASS="emphasis"
611 >backup</B
612 ></SPAN
613 ></DT
614 ><DD
615 ><P
616 >The command suite for the AFS Backup System (the binary for the Backup Server is <SPAN
617 CLASS="bold"
618 ><B
619 CLASS="emphasis"
620 >buserver</B
621 ></SPAN
622 >).</P
623 ></DD
624 ><DT
625 ><SPAN
626 CLASS="bold"
627 ><B
628 CLASS="emphasis"
629 >bos</B
630 ></SPAN
631 ></DT
632 ><DD
633 ><P
634 >The command suite for communicating with the Basic OverSeer (BOS) Server (the binary for the BOS Server is
635               <SPAN
636 CLASS="bold"
637 ><B
638 CLASS="emphasis"
639 >bosserver</B
640 ></SPAN
641 >).</P
642 ></DD
643 ><DT
644 ><SPAN
645 CLASS="bold"
646 ><B
647 CLASS="emphasis"
648 >bosserver</B
649 ></SPAN
650 ></DT
651 ><DD
652 ><P
653 >The binary for the Basic OverSeer (BOS) Server process.</P
654 ></DD
655 ><DT
656 ><SPAN
657 CLASS="bold"
658 ><B
659 CLASS="emphasis"
660 >buserver</B
661 ></SPAN
662 ></DT
663 ><DD
664 ><P
665 >The binary for the Backup Server process.</P
666 ></DD
667 ><DT
668 ><SPAN
669 CLASS="bold"
670 ><B
671 CLASS="emphasis"
672 >fileserver</B
673 ></SPAN
674 ></DT
675 ><DD
676 ><P
677 >The binary for the File Server component of the <SPAN
678 CLASS="bold"
679 ><B
680 CLASS="emphasis"
681 >fs</B
682 ></SPAN
683 > process.</P
684 ></DD
685 ><DT
686 ><SPAN
687 CLASS="bold"
688 ><B
689 CLASS="emphasis"
690 >kas</B
691 ></SPAN
692 ></DT
693 ><DD
694 ><P
695 >The command suite for communicating with the Authentication Server (the binary for the Authentication Server is
696               <SPAN
697 CLASS="bold"
698 ><B
699 CLASS="emphasis"
700 >kaserver</B
701 ></SPAN
702 >).</P
703 ></DD
704 ><DT
705 ><SPAN
706 CLASS="bold"
707 ><B
708 CLASS="emphasis"
709 >kaserver</B
710 ></SPAN
711 ></DT
712 ><DD
713 ><P
714 >The binary for the Authentication Server process.</P
715 ></DD
716 ><DT
717 ><SPAN
718 CLASS="bold"
719 ><B
720 CLASS="emphasis"
721 >ntpd</B
722 ></SPAN
723 ></DT
724 ><DD
725 ><P
726 >The binary for the Network Time Protocol Daemon (NTPD). AFS redistributes this binary and uses the <SPAN
727 CLASS="bold"
728 ><B
729 CLASS="emphasis"
730 >runntp</B
731 ></SPAN
732 > program to configure and initialize the NTPD process.</P
733 ></DD
734 ><DT
735 ><SPAN
736 CLASS="bold"
737 ><B
738 CLASS="emphasis"
739 >ntpdc</B
740 ></SPAN
741 ></DT
742 ><DD
743 ><P
744 >A debugging utility furnished with the <SPAN
745 CLASS="bold"
746 ><B
747 CLASS="emphasis"
748 >ntpd</B
749 ></SPAN
750 > program.</P
751 ></DD
752 ><DT
753 ><SPAN
754 CLASS="bold"
755 ><B
756 CLASS="emphasis"
757 >pts</B
758 ></SPAN
759 ></DT
760 ><DD
761 ><P
762 >The command suite for communicating with the Protection Server process (the binary for the Protection Server is
763               <SPAN
764 CLASS="bold"
765 ><B
766 CLASS="emphasis"
767 >ptserver</B
768 ></SPAN
769 >).</P
770 ></DD
771 ><DT
772 ><SPAN
773 CLASS="bold"
774 ><B
775 CLASS="emphasis"
776 >ptserver</B
777 ></SPAN
778 ></DT
779 ><DD
780 ><P
781 >The binary for the Protection Server process.</P
782 ></DD
783 ><DT
784 ><SPAN
785 CLASS="bold"
786 ><B
787 CLASS="emphasis"
788 >runntp</B
789 ></SPAN
790 ></DT
791 ><DD
792 ><P
793 >The binary for the program used to configure NTPD most appropriately for use with AFS.</P
794 ></DD
795 ><DT
796 ><SPAN
797 CLASS="bold"
798 ><B
799 CLASS="emphasis"
800 >salvager</B
801 ></SPAN
802 ></DT
803 ><DD
804 ><P
805 >The binary for the Salvager component of the <SPAN
806 CLASS="bold"
807 ><B
808 CLASS="emphasis"
809 >fs</B
810 ></SPAN
811 > process.</P
812 ></DD
813 ><DT
814 ><SPAN
815 CLASS="bold"
816 ><B
817 CLASS="emphasis"
818 >udebug</B
819 ></SPAN
820 ></DT
821 ><DD
822 ><P
823 >The binary for a program that reports the status of AFS's distributed database technology, Ubik.</P
824 ></DD
825 ><DT
826 ><SPAN
827 CLASS="bold"
828 ><B
829 CLASS="emphasis"
830 >upclient</B
831 ></SPAN
832 ></DT
833 ><DD
834 ><P
835 >The binary for the client portion of the Update Server process.</P
836 ></DD
837 ><DT
838 ><SPAN
839 CLASS="bold"
840 ><B
841 CLASS="emphasis"
842 >upserver</B
843 ></SPAN
844 ></DT
845 ><DD
846 ><P
847 >The binary for the server portion of the Update Server process.</P
848 ></DD
849 ><DT
850 ><SPAN
851 CLASS="bold"
852 ><B
853 CLASS="emphasis"
854 >vlserver</B
855 ></SPAN
856 ></DT
857 ><DD
858 ><P
859 >The binary for the Volume Location (VL) Server process.</P
860 ></DD
861 ><DT
862 ><SPAN
863 CLASS="bold"
864 ><B
865 CLASS="emphasis"
866 >volserver</B
867 ></SPAN
868 ></DT
869 ><DD
870 ><P
871 >The binary for the Volume Server component of the <SPAN
872 CLASS="bold"
873 ><B
874 CLASS="emphasis"
875 >fs</B
876 ></SPAN
877 > process.</P
878 ></DD
879 ><DT
880 ><SPAN
881 CLASS="bold"
882 ><B
883 CLASS="emphasis"
884 >vos</B
885 ></SPAN
886 ></DT
887 ><DD
888 ><P
889 >The command suite for communicating with the Volume and VL Server processes (the binaries for the servers are
890               <SPAN
891 CLASS="bold"
892 ><B
893 CLASS="emphasis"
894 >volserver</B
895 ></SPAN
896 > and <SPAN
897 CLASS="bold"
898 ><B
899 CLASS="emphasis"
900 >vlserver</B
901 ></SPAN
902 >, respectively).</P
903 ></DD
904 ></DL
905 ></DIV
906 ></P
907 ></DIV
908 ><DIV
909 CLASS="sect2"
910 ><H2
911 CLASS="sect2"
912 ><A
913 NAME="HDRWQ85"
914 >Common Configuration Files in the /usr/afs/etc Directory</A
915 ></H2
916 ><P
917 >The directory <SPAN
918 CLASS="bold"
919 ><B
920 CLASS="emphasis"
921 >/usr/afs/etc</B
922 ></SPAN
923 > on every file server machine's local disk contains
924       configuration files in ASCII and machine-independent binary format. For predictable AFS performance throughout a cell, all
925       server machines must have the same version of each configuration file: <UL
926 ><LI
927 ><P
928 >Cells that run the United States edition of AFS conventionally use the Update Server to distribute a common
929             version of each file from the cell's system control machine to other server machines (for more on the system control
930             machine, see <A
931 HREF="c3025.html#HDRWQ94"
932 >The System Control Machine</A
933 >). Run the Update Server's server portion on the
934             system control machine, and the client portion on all other server machines. Update the files on the system control
935             machine only, except as directed by instructions for dealing with emergencies.</P
936 ></LI
937 ><LI
938 ><P
939 >Cells that run the international edition of AFS must not use the Update Server to distribute the contents of the
940             <SPAN
941 CLASS="bold"
942 ><B
943 CLASS="emphasis"
944 >/usr/afs/etc</B
945 ></SPAN
946 > directory. Due to United States government regulations, the data
947             encryption routines that AFS uses to protect the files in this directory as they cross the network are not available to
948             the Update Server in the international edition of AFS. You must instead update the files on each server machine
949             individually, taking extra care to issue exactly the same <SPAN
950 CLASS="bold"
951 ><B
952 CLASS="emphasis"
953 >bos</B
954 ></SPAN
955 > command for each machine.
956             The necessary data encryption routines are available to the <SPAN
957 CLASS="bold"
958 ><B
959 CLASS="emphasis"
960 >bos</B
961 ></SPAN
962 > commands, so
963             information is safe as it crosses the network from the machine where the <SPAN
964 CLASS="bold"
965 ><B
966 CLASS="emphasis"
967 >bos</B
968 ></SPAN
969 > command is
970             issued to the server machines.</P
971 ></LI
972 ></UL
973 ></P
974 ><P
975 >Never directly edit any of the files in the <SPAN
976 CLASS="bold"
977 ><B
978 CLASS="emphasis"
979 >/usr/afs/etc</B
980 ></SPAN
981 > directory, except as directed
982       by instructions for dealing with emergencies. In normal circumstances, use the appropriate <SPAN
983 CLASS="bold"
984 ><B
985 CLASS="emphasis"
986 >bos</B
987 ></SPAN
988 > commands to change the files. The following list includes pointers to instructions.</P
989 ><P
990 >The files in this directory include: <DIV
991 CLASS="variablelist"
992 ><DL
993 ><DT
994 ><SPAN
995 CLASS="bold"
996 ><B
997 CLASS="emphasis"
998 >CellServDB</B
999 ></SPAN
1000 ></DT
1001 ><DD
1002 ><P
1003 >An ASCII file that names the cell's database server machines, which run the Authentication, Backup, Protection,
1004               and VL Server processes. You create the initial version of this file by issuing the <SPAN
1005 CLASS="bold"
1006 ><B
1007 CLASS="emphasis"
1008 >bos
1009               setcellname</B
1010 ></SPAN
1011 > command while installing your cell's first server machine. It is very important to update this
1012               file when you change the identity of your cell's database server machines.</P
1013 ><P
1014 >The server <SPAN
1015 CLASS="bold"
1016 ><B
1017 CLASS="emphasis"
1018 >CellServDB</B
1019 ></SPAN
1020 > file is not the same as the <SPAN
1021 CLASS="bold"
1022 ><B
1023 CLASS="emphasis"
1024 >CellServDB</B
1025 ></SPAN
1026 > file stored in the <SPAN
1027 CLASS="bold"
1028 ><B
1029 CLASS="emphasis"
1030 >/usr/vice/etc</B
1031 ></SPAN
1032 > directory on
1033               client machines. The client version lists the database server machines for every AFS cell that you choose to make
1034               accessible from the client machine. The server <SPAN
1035 CLASS="bold"
1036 ><B
1037 CLASS="emphasis"
1038 >CellServDB</B
1039 ></SPAN
1040 > file lists only the local
1041               cell's database server machines, because server processes never contact processes in other cells.</P
1042 ><P
1043 >For instructions on maintaining this file, see <A
1044 HREF="c3025.html#HDRWQ118"
1045 >Maintaining the Server CellServDB
1046               File</A
1047 >.</P
1048 ></DD
1049 ><DT
1050 ><SPAN
1051 CLASS="bold"
1052 ><B
1053 CLASS="emphasis"
1054 >KeyFile</B
1055 ></SPAN
1056 ></DT
1057 ><DD
1058 ><P
1059 >A machine-independent, binary-format file that lists the server encryption keys the AFS server processes use to
1060               encrypt and decrypt tickets. The information in this file is the basis for secure communication in the cell, and so is
1061               extremely sensitive. The file is specially protected so that only privileged users can read or change it.</P
1062 ><P
1063 >For instructions on maintaining this file, see <A
1064 HREF="c20494.html"
1065 >Managing Server Encryption
1066               Keys</A
1067 >.</P
1068 ></DD
1069 ><DT
1070 ><SPAN
1071 CLASS="bold"
1072 ><B
1073 CLASS="emphasis"
1074 >ThisCell</B
1075 ></SPAN
1076 ></DT
1077 ><DD
1078 ><P
1079 >An ASCII file that consists of a single line defining the complete Internet domain-style name of the cell (such
1080               as <SAMP
1081 CLASS="computeroutput"
1082 >abc.com</SAMP
1083 >). You create this file with the <SPAN
1084 CLASS="bold"
1085 ><B
1086 CLASS="emphasis"
1087 >bos
1088               setcellname</B
1089 ></SPAN
1090 > command during the installation of your cell's first file server machine, as instructed in the
1091               <SPAN
1092 CLASS="emphasis"
1093 ><I
1094 CLASS="emphasis"
1095 >IBM AFS Quick Beginnings</I
1096 ></SPAN
1097 >.</P
1098 ><P
1099 >Note that changing this file is only one step in changing your cell's name. For discussion, see <A
1100 HREF="c667.html#HDRWQ34"
1101 >Choosing a Cell Name</A
1102 >.</P
1103 ></DD
1104 ><DT
1105 ><SPAN
1106 CLASS="bold"
1107 ><B
1108 CLASS="emphasis"
1109 >UserList</B
1110 ></SPAN
1111 ></DT
1112 ><DD
1113 ><P
1114 >An ASCII file that lists the usernames of the system administrators authorized to issue privileged <SPAN
1115 CLASS="bold"
1116 ><B
1117 CLASS="emphasis"
1118 >bos</B
1119 ></SPAN
1120 >, <SPAN
1121 CLASS="bold"
1122 ><B
1123 CLASS="emphasis"
1124 >vos</B
1125 ></SPAN
1126 >, and <SPAN
1127 CLASS="bold"
1128 ><B
1129 CLASS="emphasis"
1130 >backup</B
1131 ></SPAN
1132 >
1133               commands. For instructions on maintaining the file, see <A
1134 HREF="c32432.html#HDRWQ592"
1135 >Administering the UserList
1136               File</A
1137 >.</P
1138 ></DD
1139 ></DL
1140 ></DIV
1141 ></P
1142 ></DIV
1143 ><DIV
1144 CLASS="sect2"
1145 ><H2
1146 CLASS="sect2"
1147 ><A
1148 NAME="HDRWQ86"
1149 >Local Configuration Files in the /usr/afs/local Directory</A
1150 ></H2
1151 ><P
1152 >The directory <SPAN
1153 CLASS="bold"
1154 ><B
1155 CLASS="emphasis"
1156 >/usr/afs/local</B
1157 ></SPAN
1158 > contains configuration files that are different for each
1159       file server machine in a cell. Thus, they are not updated automatically from a central source like the files in <SPAN
1160 CLASS="bold"
1161 ><B
1162 CLASS="emphasis"
1163 >/usr/afs/bin</B
1164 ></SPAN
1165 > and <SPAN
1166 CLASS="bold"
1167 ><B
1168 CLASS="emphasis"
1169 >/usr/afs/etc</B
1170 ></SPAN
1171 > directories. The most important file is
1172       the <SPAN
1173 CLASS="bold"
1174 ><B
1175 CLASS="emphasis"
1176 >BosConfig</B
1177 ></SPAN
1178 > file; it defines which server processes are to run on that machine.</P
1179 ><P
1180 >As with the common configuration files in <SPAN
1181 CLASS="bold"
1182 ><B
1183 CLASS="emphasis"
1184 >/usr/afs/etc</B
1185 ></SPAN
1186 >, you must not edit these files
1187       directly. Use commands from the <SPAN
1188 CLASS="bold"
1189 ><B
1190 CLASS="emphasis"
1191 >bos</B
1192 ></SPAN
1193 > command suite where appropriate; some files never need to
1194       be altered.</P
1195 ><P
1196 >The files in this directory include the following: <DIV
1197 CLASS="variablelist"
1198 ><DL
1199 ><DT
1200 ><SPAN
1201 CLASS="bold"
1202 ><B
1203 CLASS="emphasis"
1204 >BosConfig</B
1205 ></SPAN
1206 ></DT
1207 ><DD
1208 ><P
1209 >This file lists the server processes to run on the server machine, by defining which processes the BOS Server
1210               monitors and what it does if the process fails. It also defines the times at which the BOS Server automatically
1211               restarts processes for maintenance purposes.</P
1212 ><P
1213 >As you create server processes during a file server machine's installation, their entries are defined in this
1214               file automatically. The <SPAN
1215 CLASS="emphasis"
1216 ><I
1217 CLASS="emphasis"
1218 >IBM AFS Quick Beginnings</I
1219 ></SPAN
1220 > outlines the <SPAN
1221 CLASS="bold"
1222 ><B
1223 CLASS="emphasis"
1224 >bos</B
1225 ></SPAN
1226 > commands to use. For a more complete description of the file, and instructions for
1227               controlling process status by editing the file with commands from the <SPAN
1228 CLASS="bold"
1229 ><B
1230 CLASS="emphasis"
1231 >bos</B
1232 ></SPAN
1233 > suite, see
1234               <A
1235 HREF="c6449.html"
1236 >Monitoring and Controlling Server Processes</A
1237 >.</P
1238 ></DD
1239 ><DT
1240 ><SPAN
1241 CLASS="bold"
1242 ><B
1243 CLASS="emphasis"
1244 >NetInfo</B
1245 ></SPAN
1246 ></DT
1247 ><DD
1248 ><P
1249 >This optional ASCII file lists one or more of the network interface addresses on the server machine. If it
1250               exists when the File Server initializes, the File Server uses it as the basis for the list of interfaces that it
1251               registers in its Volume Location Database (VLDB) server entry. See <A
1252 HREF="c3025.html#HDRWQ138"
1253 >Managing Server IP
1254               Addresses and VLDB Server Entries</A
1255 >.</P
1256 ></DD
1257 ><DT
1258 ><SPAN
1259 CLASS="bold"
1260 ><B
1261 CLASS="emphasis"
1262 >NetRestrict</B
1263 ></SPAN
1264 ></DT
1265 ><DD
1266 ><P
1267 >This optional ASCII file lists one or more network interface addresses. If it exists when the File Server
1268               initializes, the File Server removes the specified addresses from the list of interfaces that it registers in its VLDB
1269               server entry. See <A
1270 HREF="c3025.html#HDRWQ138"
1271 >Managing Server IP Addresses and VLDB Server Entries</A
1272 >.</P
1273 ></DD
1274 ><DT
1275 ><SPAN
1276 CLASS="bold"
1277 ><B
1278 CLASS="emphasis"
1279 >NoAuth</B
1280 ></SPAN
1281 ></DT
1282 ><DD
1283 ><P
1284 >This zero-length file instructs all AFS server processes running on the machine not to perform authorization
1285               checking. Thus, they perform any action for any user, even <SPAN
1286 CLASS="bold"
1287 ><B
1288 CLASS="emphasis"
1289 >anonymous</B
1290 ></SPAN
1291 >. This very
1292               insecure state is useful only in rare instances, mainly during the installation of the machine.</P
1293 ><P
1294 >The file is created automatically when you start the initial <SPAN
1295 CLASS="bold"
1296 ><B
1297 CLASS="emphasis"
1298 >bosserver</B
1299 ></SPAN
1300 > process
1301               with the <SPAN
1302 CLASS="bold"
1303 ><B
1304 CLASS="emphasis"
1305 >-noauth</B
1306 ></SPAN
1307 > flag, or issue the <SPAN
1308 CLASS="bold"
1309 ><B
1310 CLASS="emphasis"
1311 >bos setauth</B
1312 ></SPAN
1313 >
1314               command to turn off authentication requirements. When you use the <SPAN
1315 CLASS="bold"
1316 ><B
1317 CLASS="emphasis"
1318 >bos setauth</B
1319 ></SPAN
1320 > command
1321               to turn on authentication, the BOS Server removes this file. For more information, see <A
1322 HREF="c3025.html#HDRWQ123"
1323 >Managing Authentication and Authorization Requirements</A
1324 >.</P
1325 ></DD
1326 ><DT
1327 ><SPAN
1328 CLASS="bold"
1329 ><B
1330 CLASS="emphasis"
1331 >SALVAGE.fs</B
1332 ></SPAN
1333 ></DT
1334 ><DD
1335 ><P
1336 >This zero-length file controls how the BOS Server handles a crash of the File Server component of the <SPAN
1337 CLASS="bold"
1338 ><B
1339 CLASS="emphasis"
1340 >fs</B
1341 ></SPAN
1342 > process. The BOS Server creates this file each time it starts or restarts the <SPAN
1343 CLASS="bold"
1344 ><B
1345 CLASS="emphasis"
1346 >fs</B
1347 ></SPAN
1348 > process. If the file is present when the File Server crashes, then the BOS Server runs the
1349               Salvager before restarting the File Server and Volume Server again. When the File Server exits normally, the BOS
1350               Server removes the file so that the Salvager does not run.</P
1351 ><P
1352 >Do not create or remove this file yourself; the BOS Server does so automatically. If necessary, you can salvage
1353               a volume or partition by using the <SPAN
1354 CLASS="bold"
1355 ><B
1356 CLASS="emphasis"
1357 >bos salvage</B
1358 ></SPAN
1359 > command; see <A
1360 HREF="c8420.html#HDRWQ232"
1361 >Salvaging Volumes</A
1362 >.</P
1363 ></DD
1364 ><DT
1365 ><SPAN
1366 CLASS="bold"
1367 ><B
1368 CLASS="emphasis"
1369 >salvage.lock</B
1370 ></SPAN
1371 ></DT
1372 ><DD
1373 ><P
1374 >This file guarantees that only one Salvager process runs on a file server machine at a time (the single process
1375               can fork multiple subprocesses to salvage multiple partitions in parallel). As the Salvager initiates (when invoked by
1376               the BOS Server or by issue of the <SPAN
1377 CLASS="bold"
1378 ><B
1379 CLASS="emphasis"
1380 >bos salvage</B
1381 ></SPAN
1382 > command), it creates this zero-length
1383               file and issues the <SPAN
1384 CLASS="bold"
1385 ><B
1386 CLASS="emphasis"
1387 >flock</B
1388 ></SPAN
1389 > system call on it. It removes the file when it completes
1390               the salvage operation. Because the Salvager must lock the file in order to run, only one Salvager can run at a
1391               time.</P
1392 ></DD
1393 ><DT
1394 ><SPAN
1395 CLASS="bold"
1396 ><B
1397 CLASS="emphasis"
1398 >sysid</B
1399 ></SPAN
1400 ></DT
1401 ><DD
1402 ><P
1403 >This file records the network interface addresses that the File Server (<SPAN
1404 CLASS="bold"
1405 ><B
1406 CLASS="emphasis"
1407 >fileserver</B
1408 ></SPAN
1409 > process) registers in its VLDB server entry. When the Cache Manager requests volume
1410               location information, the Volume Location (VL) Server provides all of the interfaces registered for each server
1411               machine that houses the volume. This enables the Cache Manager to make use of multiple addresses when accessing AFS
1412               data stored on a multihomed file server machine. For further information, see <A
1413 HREF="c3025.html#HDRWQ138"
1414 >Managing Server
1415               IP Addresses and VLDB Server Entries</A
1416 >.</P
1417 ></DD
1418 ></DL
1419 ></DIV
1420 ></P
1421 ></DIV
1422 ><DIV
1423 CLASS="sect2"
1424 ><H2
1425 CLASS="sect2"
1426 ><A
1427 NAME="HDRWQ87"
1428 >Replicated Database Files in the /usr/afs/db Directory</A
1429 ></H2
1430 ><P
1431 >The directory <SPAN
1432 CLASS="bold"
1433 ><B
1434 CLASS="emphasis"
1435 >/usr/afs/db</B
1436 ></SPAN
1437 > contains two types of files pertaining to the four replicated
1438       databases in the cell--the Authentication Database, Backup Database, Protection Database, and Volume Location Database (VLDB):
1439       <UL
1440 ><LI
1441 ><P
1442 >A file that contains each database, with a <SPAN
1443 CLASS="bold"
1444 ><B
1445 CLASS="emphasis"
1446 >.DB0</B
1447 ></SPAN
1448 > extension.</P
1449 ></LI
1450 ><LI
1451 ><P
1452 >A log file for each database, with a <SPAN
1453 CLASS="bold"
1454 ><B
1455 CLASS="emphasis"
1456 >.DBSYS1</B
1457 ></SPAN
1458 > extension. The database server
1459             process logs each database operation in this file before performing it. If the operation is interrupted, the process
1460             consults this file to learn how to finish it.</P
1461 ></LI
1462 ></UL
1463 ></P
1464 ><P
1465 >Each database server process (Authentication, Backup, Protection, or VL Server) maintains its own database and log
1466       files. The database files are in binary format, so you must always access or alter them using commands from the <SPAN
1467 CLASS="bold"
1468 ><B
1469 CLASS="emphasis"
1470 >kas</B
1471 ></SPAN
1472 > suite (for the Authentication Database), <SPAN
1473 CLASS="bold"
1474 ><B
1475 CLASS="emphasis"
1476 >backup</B
1477 ></SPAN
1478 > suite (for the
1479       Backup Database), <SPAN
1480 CLASS="bold"
1481 ><B
1482 CLASS="emphasis"
1483 >pts</B
1484 ></SPAN
1485 > suite (for the Protection Database), or <SPAN
1486 CLASS="bold"
1487 ><B
1488 CLASS="emphasis"
1489 >vos</B
1490 ></SPAN
1491 > suite (for the VLDB).</P
1492 ><P
1493 >If a cell runs more than one database server machine, each database server process keeps its own copy of its database on
1494       its machine's hard disk. However, it is important that all the copies of a given database are the same. To synchronize them,
1495       the database server processes call on AFS's distributed database technology, Ubik, as described in <A
1496 HREF="c3025.html#HDRWQ102"
1497 >Replicating the AFS Administrative Databases</A
1498 >.</P
1499 ><P
1500 >The files listed here appear in this directory only on database server machines. On non-database server machines, this
1501       directory is empty. <DIV
1502 CLASS="variablelist"
1503 ><DL
1504 ><DT
1505 ><SPAN
1506 CLASS="bold"
1507 ><B
1508 CLASS="emphasis"
1509 >bdb.DB0</B
1510 ></SPAN
1511 ></DT
1512 ><DD
1513 ><P
1514 >The Backup Database file.</P
1515 ></DD
1516 ><DT
1517 ><SPAN
1518 CLASS="bold"
1519 ><B
1520 CLASS="emphasis"
1521 >bdb.DBSYS1</B
1522 ></SPAN
1523 ></DT
1524 ><DD
1525 ><P
1526 >The Backup Database log file.</P
1527 ></DD
1528 ><DT
1529 ><SPAN
1530 CLASS="bold"
1531 ><B
1532 CLASS="emphasis"
1533 >kaserver.DB0</B
1534 ></SPAN
1535 ></DT
1536 ><DD
1537 ><P
1538 >The Authentication Database file.</P
1539 ></DD
1540 ><DT
1541 ><SPAN
1542 CLASS="bold"
1543 ><B
1544 CLASS="emphasis"
1545 >kaserver.DBSYS1</B
1546 ></SPAN
1547 ></DT
1548 ><DD
1549 ><P
1550 >The Authentication Database log file.</P
1551 ></DD
1552 ><DT
1553 ><SPAN
1554 CLASS="bold"
1555 ><B
1556 CLASS="emphasis"
1557 >prdb.DB0</B
1558 ></SPAN
1559 ></DT
1560 ><DD
1561 ><P
1562 >The Protection Database file.</P
1563 ></DD
1564 ><DT
1565 ><SPAN
1566 CLASS="bold"
1567 ><B
1568 CLASS="emphasis"
1569 >prdb.DBSYS1</B
1570 ></SPAN
1571 ></DT
1572 ><DD
1573 ><P
1574 >The Protection Database log file.</P
1575 ></DD
1576 ><DT
1577 ><SPAN
1578 CLASS="bold"
1579 ><B
1580 CLASS="emphasis"
1581 >vldb.DB0</B
1582 ></SPAN
1583 ></DT
1584 ><DD
1585 ><P
1586 >The Volume Location Database file.</P
1587 ></DD
1588 ><DT
1589 ><SPAN
1590 CLASS="bold"
1591 ><B
1592 CLASS="emphasis"
1593 >vldb.DBSYS1</B
1594 ></SPAN
1595 ></DT
1596 ><DD
1597 ><P
1598 >The Volume Location Database log file.</P
1599 ></DD
1600 ></DL
1601 ></DIV
1602 ></P
1603 ></DIV
1604 ><DIV
1605 CLASS="sect2"
1606 ><H2
1607 CLASS="sect2"
1608 ><A
1609 NAME="HDRWQ88"
1610 >Log Files in the /usr/afs/logs Directory</A
1611 ></H2
1612 ><P
1613 >The <SPAN
1614 CLASS="bold"
1615 ><B
1616 CLASS="emphasis"
1617 >/usr/afs/logs</B
1618 ></SPAN
1619 > directory contains log files from various server processes. The files
1620       detail interesting events that occur during normal operations. For instance, the Volume Server can record volume moves in the
1621       <SPAN
1622 CLASS="bold"
1623 ><B
1624 CLASS="emphasis"
1625 >VolserLog</B
1626 ></SPAN
1627 > file. Events are recorded at completion, so the server processes do not use these
1628       files to reconstruct failed operations unlike the ones in the <SPAN
1629 CLASS="bold"
1630 ><B
1631 CLASS="emphasis"
1632 >/usr/afs/db</B
1633 ></SPAN
1634 > directory.</P
1635 ><P
1636 >The information in log files can be very useful as you evaluate process failures and other problems. For instance, if
1637       you receive a timeout message when you try to access a volume, checking the <SPAN
1638 CLASS="bold"
1639 ><B
1640 CLASS="emphasis"
1641 >FileLog</B
1642 ></SPAN
1643 > file
1644       possibly provides an explanation, showing that the File Server was unable to attach the volume. To examine a log file
1645       remotely, use the <SPAN
1646 CLASS="bold"
1647 ><B
1648 CLASS="emphasis"
1649 >bos getlog</B
1650 ></SPAN
1651 > command as described in <A
1652 HREF="c6449.html#HDRWQ173"
1653 >Displaying
1654       Server Process Log Files</A
1655 >.</P
1656 ><P
1657 >This directory also contains the core image files generated if a process being monitored by the BOS Server crashes. The
1658       BOS Server attempts to add an extension to the standard <SPAN
1659 CLASS="bold"
1660 ><B
1661 CLASS="emphasis"
1662 >core</B
1663 ></SPAN
1664 > name to indicate which process
1665       generated the core file (for example, naming a core file generated by the Protection Server <SPAN
1666 CLASS="bold"
1667 ><B
1668 CLASS="emphasis"
1669 >core.ptserver</B
1670 ></SPAN
1671 >). The BOS Server cannot always assign the correct extension if two processes fail at
1672       about the same time, so it is not guaranteed to be correct.</P
1673 ><P
1674 >The directory contains the following files: <DIV
1675 CLASS="variablelist"
1676 ><DL
1677 ><DT
1678 ><SPAN
1679 CLASS="bold"
1680 ><B
1681 CLASS="emphasis"
1682 >AuthLog</B
1683 ></SPAN
1684 ></DT
1685 ><DD
1686 ><P
1687 >The Authentication Server's log file.</P
1688 ></DD
1689 ><DT
1690 ><SPAN
1691 CLASS="bold"
1692 ><B
1693 CLASS="emphasis"
1694 >BackupLog</B
1695 ></SPAN
1696 ></DT
1697 ><DD
1698 ><P
1699 >The Backup Server's log file.</P
1700 ></DD
1701 ><DT
1702 ><SPAN
1703 CLASS="bold"
1704 ><B
1705 CLASS="emphasis"
1706 >BosLog</B
1707 ></SPAN
1708 ></DT
1709 ><DD
1710 ><P
1711 >The BOS Server's log file.</P
1712 ></DD
1713 ><DT
1714 ><SPAN
1715 CLASS="bold"
1716 ><B
1717 CLASS="emphasis"
1718 >FileLog</B
1719 ></SPAN
1720 ></DT
1721 ><DD
1722 ><P
1723 >The File Server's log file.</P
1724 ></DD
1725 ><DT
1726 ><SPAN
1727 CLASS="bold"
1728 ><B
1729 CLASS="emphasis"
1730 >SalvageLog</B
1731 ></SPAN
1732 ></DT
1733 ><DD
1734 ><P
1735 >The Salvager's log file.</P
1736 ></DD
1737 ><DT
1738 ><SPAN
1739 CLASS="bold"
1740 ><B
1741 CLASS="emphasis"
1742 >VLLog</B
1743 ></SPAN
1744 ></DT
1745 ><DD
1746 ><P
1747 >The Volume Location (VL) Server's log file.</P
1748 ></DD
1749 ><DT
1750 ><SPAN
1751 CLASS="bold"
1752 ><B
1753 CLASS="emphasis"
1754 >VolserLog</B
1755 ></SPAN
1756 ></DT
1757 ><DD
1758 ><P
1759 >The Volume Server's log file.</P
1760 ></DD
1761 ><DT
1762 ><SPAN
1763 CLASS="bold"
1764 ><B
1765 CLASS="emphasis"
1766 >core.process</B
1767 ></SPAN
1768 ></DT
1769 ><DD
1770 ><P
1771 >If present, a core image file produced as an AFS server process on the machine crashed (probably the process
1772               named by process).</P
1773 ></DD
1774 ></DL
1775 ></DIV
1776 ></P
1777 ><DIV
1778 CLASS="note"
1779 ><BLOCKQUOTE
1780 CLASS="note"
1781 ><P
1782 ><B
1783 >Note: </B
1784 >To prevent log files from growing unmanageably large, restart the server processes periodically, particularly the
1785         database server processes. To avoid restarting the processes, use the UNIX <SPAN
1786 CLASS="bold"
1787 ><B
1788 CLASS="emphasis"
1789 >rm</B
1790 ></SPAN
1791 > command to
1792         remove the file as the process runs; it re-creates it automatically.</P
1793 ></BLOCKQUOTE
1794 ></DIV
1795 ></DIV
1796 ><DIV
1797 CLASS="sect2"
1798 ><H2
1799 CLASS="sect2"
1800 ><A
1801 NAME="HDRWQ89"
1802 >Volume Headers on Server Partitions</A
1803 ></H2
1804 ><P
1805 >A partition that houses AFS volumes must be mounted at a subdirectory of the machine's root ( / ) directory (not, for
1806       instance under the <SPAN
1807 CLASS="bold"
1808 ><B
1809 CLASS="emphasis"
1810 >/usr</B
1811 ></SPAN
1812 > directory). The file server machine's file system registry file
1813       (<SPAN
1814 CLASS="bold"
1815 ><B
1816 CLASS="emphasis"
1817 >/etc/fstab</B
1818 ></SPAN
1819 > or equivalent) must correctly map the directory name and the partition's device
1820       name. The directory name is of the form <SPAN
1821 CLASS="bold"
1822 ><B
1823 CLASS="emphasis"
1824 >/vicep</B
1825 ></SPAN
1826 >index, where each index is one or two lowercase
1827       letters. By convention, the first AFS partition on a machine is mounted at <SPAN
1828 CLASS="bold"
1829 ><B
1830 CLASS="emphasis"
1831 >/vicepa</B
1832 ></SPAN
1833 >, the
1834       second at <SPAN
1835 CLASS="bold"
1836 ><B
1837 CLASS="emphasis"
1838 >/vicepb</B
1839 ></SPAN
1840 >, and so on. If there are more than 26 partitions, continue with <SPAN
1841 CLASS="bold"
1842 ><B
1843 CLASS="emphasis"
1844 >/vicepaa</B
1845 ></SPAN
1846 >, <SPAN
1847 CLASS="bold"
1848 ><B
1849 CLASS="emphasis"
1850 >/vicepab</B
1851 ></SPAN
1852 > and so on. The <SPAN
1853 CLASS="emphasis"
1854 ><I
1855 CLASS="emphasis"
1856 >IBM AFS Release
1857       Notes</I
1858 ></SPAN
1859 > specifies the number of supported partitions per server machine.</P
1860 ><P
1861 >Do not store non-AFS files on AFS partitions. The File Server and Volume Server expect to have available all of the
1862       space on the partition.</P
1863 ><P
1864 >The <SPAN
1865 CLASS="bold"
1866 ><B
1867 CLASS="emphasis"
1868 >/vicep</B
1869 ></SPAN
1870 > directories contain two types of files: <DIV
1871 CLASS="variablelist"
1872 ><DL
1873 ><DT
1874 ><SPAN
1875 CLASS="bold"
1876 ><B
1877 CLASS="emphasis"
1878 >Vvol_ID.vol</B
1879 ></SPAN
1880 ></DT
1881 ><DD
1882 ><P
1883 >Each such file is a volume header. The vol_ID corresponds to the volume ID number displayed in the output from
1884               the <SPAN
1885 CLASS="bold"
1886 ><B
1887 CLASS="emphasis"
1888 >vos examine</B
1889 ></SPAN
1890 >, <SPAN
1891 CLASS="bold"
1892 ><B
1893 CLASS="emphasis"
1894 >vos listvldb</B
1895 ></SPAN
1896 >, and <SPAN
1897 CLASS="bold"
1898 ><B
1899 CLASS="emphasis"
1900 >vos listvol</B
1901 ></SPAN
1902 > commands.</P
1903 ></DD
1904 ><DT
1905 ><SPAN
1906 CLASS="bold"
1907 ><B
1908 CLASS="emphasis"
1909 >FORCESALVAGE</B
1910 ></SPAN
1911 ></DT
1912 ><DD
1913 ><P
1914 >This zero-length file triggers the Salvager to salvage the entire partition. The AFS-modified version of the
1915               <SPAN
1916 CLASS="bold"
1917 ><B
1918 CLASS="emphasis"
1919 >fsck</B
1920 ></SPAN
1921 > program creates this file if it discovers corruption.</P
1922 ></DD
1923 ></DL
1924 ></DIV
1925 ></P
1926 ><DIV
1927 CLASS="note"
1928 ><BLOCKQUOTE
1929 CLASS="note"
1930 ><P
1931 ><B
1932 >Note: </B
1933 >For most system types, it is important never to run the standard <SPAN
1934 CLASS="bold"
1935 ><B
1936 CLASS="emphasis"
1937 >fsck</B
1938 ></SPAN
1939 > program
1940         provided with the operating system on an AFS file server machine. It removes all AFS volume data from server partitions
1941         because it does not recognize their format.</P
1942 ></BLOCKQUOTE
1943 ></DIV
1944 ></DIV
1945 ></DIV
1946 ><DIV
1947 CLASS="sect1"
1948 ><H1
1949 CLASS="sect1"
1950 ><A
1951 NAME="HDRWQ90"
1952 >The Four Roles for File Server Machines</A
1953 ></H1
1954 ><P
1955 >In cells that have more than one server machine, not all server machines have to perform exactly the same functions. The
1956     are four possible <SPAN
1957 CLASS="emphasis"
1958 ><I
1959 CLASS="emphasis"
1960 >roles</I
1961 ></SPAN
1962 > a machine can assume, determined by which server processes it is running. A machine
1963     can assume more than one role by running all of the relevant processes. The following list summarizes the four roles, which are
1964     described more completely in subsequent sections. <UL
1965 ><LI
1966 ><P
1967 >A <SPAN
1968 CLASS="emphasis"
1969 ><I
1970 CLASS="emphasis"
1971 >simple file server</I
1972 ></SPAN
1973 > machine runs only the processes that store and deliver AFS files to client
1974           machines. You can run as many simple file server machines as you need to satisfy your cell's performance and disk space
1975           requirements.</P
1976 ></LI
1977 ><LI
1978 ><P
1979 >A <SPAN
1980 CLASS="emphasis"
1981 ><I
1982 CLASS="emphasis"
1983 >database server machine</I
1984 ></SPAN
1985 > runs the four database server processes that maintain AFS's
1986           replicated administrative databases: the Authentication, Backup, Protection, and Volume Location (VL) Server
1987           processes.</P
1988 ></LI
1989 ><LI
1990 ><P
1991 >A <SPAN
1992 CLASS="emphasis"
1993 ><I
1994 CLASS="emphasis"
1995 >binary distribution machine</I
1996 ></SPAN
1997 > distributes the AFS server binaries for its system type to all
1998           other server machines of that system type.</P
1999 ></LI
2000 ><LI
2001 ><P
2002 >The single <SPAN
2003 CLASS="emphasis"
2004 ><I
2005 CLASS="emphasis"
2006 >system control machine</I
2007 ></SPAN
2008 > distributes common server configuration files to all other
2009           server machines in the cell, in a cell that runs the United States edition of AFS (cells that use the international
2010           edition of AFS must not use the system control machine for this purpose). The machine conventionally also serves as the
2011           time synchronization source for the cell, adjusting its clock according to a time source outside the cell.</P
2012 ></LI
2013 ></UL
2014 ></P
2015 ><P
2016 >If a cell has a single server machine, it assumes the simple file server and database server roles. The instructions in
2017     the <SPAN
2018 CLASS="emphasis"
2019 ><I
2020 CLASS="emphasis"
2021 >IBM AFS Quick Beginnings</I
2022 ></SPAN
2023 > also have you configure it as the system control machine and binary
2024     distribution machine for its system type, but it does not actually perform those functions until you install another server
2025     machine.</P
2026 ><P
2027 >It is best to keep the binaries for all of the AFS server processes in the <SPAN
2028 CLASS="bold"
2029 ><B
2030 CLASS="emphasis"
2031 >/usr/afs/bin</B
2032 ></SPAN
2033 >
2034     directory, even if not all processes are running. You can then change which roles a machine assumes simply by starting or
2035     stopping the processes that define the role.</P
2036 ><DIV
2037 CLASS="sect2"
2038 ><H2
2039 CLASS="sect2"
2040 ><A
2041 NAME="HDRWQ91"
2042 >Simple File Server Machines</A
2043 ></H2
2044 ><P
2045 >A <SPAN
2046 CLASS="emphasis"
2047 ><I
2048 CLASS="emphasis"
2049 >simple file server machine</I
2050 ></SPAN
2051 > runs only the server processes that store and deliver AFS files to
2052       client machines, monitor process status, and pick up binaries and configuration files from the cell's binary distribution and
2053       system control machines.</P
2054 ><P
2055 >In general, only cells with more than three server machines need to run simple file server machines. In cells with three
2056       or fewer machines, all of them are usually database server machines (to benefit from replicating the administrative
2057       databases); see <A
2058 HREF="c3025.html#HDRWQ92"
2059 >Database Server Machines</A
2060 >.</P
2061 ><P
2062 >The following processes run on a simple file server machine: <UL
2063 ><LI
2064 ><P
2065 >The BOS Server (<SPAN
2066 CLASS="bold"
2067 ><B
2068 CLASS="emphasis"
2069 >bosserver</B
2070 ></SPAN
2071 > process)</P
2072 ></LI
2073 ><LI
2074 ><P
2075 >The <SPAN
2076 CLASS="bold"
2077 ><B
2078 CLASS="emphasis"
2079 >fs</B
2080 ></SPAN
2081 > process, which combines the File Server, Volume Server, and Salvager
2082             processes so that they can coordinate their operations on the data in volumes and avoid the inconsistencies that can
2083             result from multiple simultaneous operations on the same data</P
2084 ></LI
2085 ><LI
2086 ><P
2087 >The NTP coordinator (<SPAN
2088 CLASS="bold"
2089 ><B
2090 CLASS="emphasis"
2091 >runntp</B
2092 ></SPAN
2093 > process), which helps keep the machine's clock
2094             synchronized with the clocks on the other server machines in the cell</P
2095 ></LI
2096 ><LI
2097 ><P
2098 >A client portion of the Update Server that picks up binary files from the binary distribution machine of its AFS
2099             system type (the <SPAN
2100 CLASS="bold"
2101 ><B
2102 CLASS="emphasis"
2103 >upclientbin</B
2104 ></SPAN
2105 > process)</P
2106 ></LI
2107 ><LI
2108 ><P
2109 >A client portion of the Update Server that picks up common configuration files from the system control machine, in
2110             cells running the United States edition of AFS (the <SPAN
2111 CLASS="bold"
2112 ><B
2113 CLASS="emphasis"
2114 >upclientetc</B
2115 ></SPAN
2116 > process)</P
2117 ></LI
2118 ></UL
2119 ></P
2120 ></DIV
2121 ><DIV
2122 CLASS="sect2"
2123 ><H2
2124 CLASS="sect2"
2125 ><A
2126 NAME="HDRWQ92"
2127 >Database Server Machines</A
2128 ></H2
2129 ><P
2130 >A <SPAN
2131 CLASS="emphasis"
2132 ><I
2133 CLASS="emphasis"
2134 >database server machine</I
2135 ></SPAN
2136 > runs the four processes that maintain the AFS replicated administrative
2137       databases: the Authentication Server, Backup Server, Protection Server, and Volume Location (VL) Server, which maintain the
2138       Authentication Database, Backup Database, Protection Database, and Volume Location Database (VLDB), respectively. To review
2139       the functions of these server processes and their databases, see <A
2140 HREF="c130.html#HDRWQ17"
2141 >AFS Server Processes and the Cache
2142       Manager</A
2143 >.</P
2144 ><P
2145 >If a cell has more than one server machine, it is best to run more than one database server machine, but more than three
2146       are rarely necessary. Replicating the databases in this way yields the same benefits as replicating volumes: increased
2147       availability and reliability of information. If one database server machine or process goes down, the information in the
2148       database is still available from others. The load of requests for database information is spread across multiple machines,
2149       preventing any one from becoming overloaded.</P
2150 ><P
2151 >Unlike replicated volumes, however, replicated databases do change frequently. Consistent system performance demands
2152       that all copies of the database always be identical, so it is not possible to record changes in only some of them. To
2153       synchronize the copies of a database, the database server processes use AFS's distributed database technology, Ubik. See <A
2154 HREF="c3025.html#HDRWQ102"
2155 >Replicating the AFS Administrative Databases</A
2156 >.</P
2157 ><P
2158 >It is critical that the AFS server processes on every server machine in a cell know which machines are the database
2159       server machines. The database server processes in particular must maintain constant contact with their peers in order to
2160       coordinate the copies of the database. The other server processes often need information from the databases. Every file server
2161       machine keeps a list of its cell's database server machines in its local <SPAN
2162 CLASS="bold"
2163 ><B
2164 CLASS="emphasis"
2165 >/usr/afs/etc/CellServDB</B
2166 ></SPAN
2167 > file. Cells that use the States edition of AFS can use the system control
2168       machine to distribute this file (see <A
2169 HREF="c3025.html#HDRWQ94"
2170 >The System Control Machine</A
2171 >).</P
2172 ><P
2173 >The following processes define a database server machine: <UL
2174 ><LI
2175 ><P
2176 >The Authentication Server (<SPAN
2177 CLASS="bold"
2178 ><B
2179 CLASS="emphasis"
2180 >kaserver</B
2181 ></SPAN
2182 > process)</P
2183 ></LI
2184 ><LI
2185 ><P
2186 >The Backup Server (<SPAN
2187 CLASS="bold"
2188 ><B
2189 CLASS="emphasis"
2190 >buserver</B
2191 ></SPAN
2192 > process)</P
2193 ></LI
2194 ><LI
2195 ><P
2196 >The Protection Server (<SPAN
2197 CLASS="bold"
2198 ><B
2199 CLASS="emphasis"
2200 >ptserver</B
2201 ></SPAN
2202 > process)</P
2203 ></LI
2204 ><LI
2205 ><P
2206 >The VL Server (<SPAN
2207 CLASS="bold"
2208 ><B
2209 CLASS="emphasis"
2210 >vlserver</B
2211 ></SPAN
2212 > process)</P
2213 ></LI
2214 ></UL
2215 ></P
2216 ><P
2217 >Database server machines can also run the processes that define a simple file server machine, as listed in <A
2218 HREF="c3025.html#HDRWQ91"
2219 >Simple File Server Machines</A
2220 >. One database server machine can act as the cell's system control
2221       machine, and any database server machine can serve as the binary distribution machine for its system type; see <A
2222 HREF="c3025.html#HDRWQ94"
2223 >The System Control Machine</A
2224 > and <A
2225 HREF="c3025.html#HDRWQ93"
2226 >Binary Distribution Machines</A
2227 >.</P
2228 ></DIV
2229 ><DIV
2230 CLASS="sect2"
2231 ><H2
2232 CLASS="sect2"
2233 ><A
2234 NAME="HDRWQ93"
2235 >Binary Distribution Machines</A
2236 ></H2
2237 ><P
2238 >A <SPAN
2239 CLASS="emphasis"
2240 ><I
2241 CLASS="emphasis"
2242 >binary distribution machine</I
2243 ></SPAN
2244 > stores and distributes the binary files for the AFS processes and
2245       command suites to all other server machines of its system type. Each file server machine keeps its own copy of AFS server
2246       process binaries on its local disk, by convention in the <SPAN
2247 CLASS="bold"
2248 ><B
2249 CLASS="emphasis"
2250 >/usr/afs/bin</B
2251 ></SPAN
2252 > directory. For
2253       consistent system performance, however, all server machines must run the same version (build level) of a process. For
2254       instructions for checking a binary's build level, see <A
2255 HREF="c3025.html#HDRWQ117"
2256 >Displaying A Binary File's Build Level</A
2257 >.
2258       The easiest way to keep the binaries consistent is to have a binary distribution machine of each system type distribute them
2259       to its system-type peers.</P
2260 ><P
2261 >The process that defines a binary distribution machine is the server portion of the Update Server (<SPAN
2262 CLASS="bold"
2263 ><B
2264 CLASS="emphasis"
2265 >upserver</B
2266 ></SPAN
2267 > process). The client portion of the Update Server (<SPAN
2268 CLASS="bold"
2269 ><B
2270 CLASS="emphasis"
2271 >upclientbin</B
2272 ></SPAN
2273 > process) runs on the other server machines of that system type and references the binary
2274       distribution machine.</P
2275 ><P
2276 >Binary distribution machines usually also run the processes that define a simple file server machine, as listed in <A
2277 HREF="c3025.html#HDRWQ91"
2278 >Simple File Server Machines</A
2279 >. One binary distribution machine can act as the cell's system control
2280       machine, and any binary distribution machine can serve as a database server machine; see <A
2281 HREF="c3025.html#HDRWQ94"
2282 >The System
2283       Control Machine</A
2284 > and <A
2285 HREF="c3025.html#HDRWQ92"
2286 >Database Server Machines</A
2287 >.</P
2288 ></DIV
2289 ><DIV
2290 CLASS="sect2"
2291 ><H2
2292 CLASS="sect2"
2293 ><A
2294 NAME="HDRWQ94"
2295 >The System Control Machine</A
2296 ></H2
2297 ><P
2298 >In cells that run the United States edition of AFS, the <SPAN
2299 CLASS="emphasis"
2300 ><I
2301 CLASS="emphasis"
2302 >system control machine</I
2303 ></SPAN
2304 > stores and
2305       distributes system configuration files shared by all of the server machines in the cell. Each file server machine keeps its
2306       own copy of the configuration files on its local disk, by convention in the <SPAN
2307 CLASS="bold"
2308 ><B
2309 CLASS="emphasis"
2310 >/usr/afs/etc</B
2311 ></SPAN
2312 >
2313       directory. For consistent system performance, however, all server machines must use the same files. The easiest way to keep
2314       the files consistent is to have the system control machine distribute them. You make changes only to the copy stored on the
2315       system control machine, as directed by the instructions in this document. The United States edition of AFS is available to
2316       cells in the United States and Canada and to selected institutions in other countries, as determined by United States
2317       government regulations.</P
2318 ><P
2319 >Cells that run the international version of AFS do not use the system control machine to distribute system configuration
2320       files. Some of the files contain information that is too sensitive to cross the network unencrypted, and United States
2321       government regulations forbid the export of the necessary encryption routines in the form that the Update Server uses. You
2322       must instead update the configuration files on each file server machine individually. The <SPAN
2323 CLASS="bold"
2324 ><B
2325 CLASS="emphasis"
2326 >bos</B
2327 ></SPAN
2328 >
2329       commands that you use to update the files encrypt the information using an exportable form of the encryption routines.</P
2330 ><P
2331 >For a list of the configuration files stored in the <SPAN
2332 CLASS="bold"
2333 ><B
2334 CLASS="emphasis"
2335 >/usr/afs/etc</B
2336 ></SPAN
2337 > directory, see <A
2338 HREF="c3025.html#HDRWQ85"
2339 >Common Configuration Files in the /usr/afs/etc Directory</A
2340 >.</P
2341 ><P
2342 >The <SPAN
2343 CLASS="emphasis"
2344 ><I
2345 CLASS="emphasis"
2346 >IBM AFS Quick Beginnings</I
2347 ></SPAN
2348 > configures a cell's first server machine as the system control
2349       machine. If you wish, you can reassign the role to a different machine that you install later, but you must then change the
2350       client portion of the Update Server (<SPAN
2351 CLASS="bold"
2352 ><B
2353 CLASS="emphasis"
2354 >upclientetc</B
2355 ></SPAN
2356 >) process running on all other server
2357       machines to refer to the new system control machine.</P
2358 ><P
2359 >The following processes define the system control machine: <UL
2360 ><LI
2361 ><P
2362 >The server portion of the Update Server (<SPAN
2363 CLASS="bold"
2364 ><B
2365 CLASS="emphasis"
2366 >upserver</B
2367 ></SPAN
2368 >) process, in cells using the
2369             United States edition of AFS. The client portion of the Update Server (<SPAN
2370 CLASS="bold"
2371 ><B
2372 CLASS="emphasis"
2373 >upclientetc</B
2374 ></SPAN
2375 >
2376             process) runs on the other server machines and references the system control machine.</P
2377 ></LI
2378 ><LI
2379 ><P
2380 >The NTP coordinator (<SPAN
2381 CLASS="bold"
2382 ><B
2383 CLASS="emphasis"
2384 >runntp</B
2385 ></SPAN
2386 > process) which points to a time source outside the
2387             cell, if the cell uses NTPD to synchronize its clocks. The <SPAN
2388 CLASS="bold"
2389 ><B
2390 CLASS="emphasis"
2391 >runntp</B
2392 ></SPAN
2393 > process on other
2394             machines reference the system control machine as their main time source.</P
2395 ></LI
2396 ></UL
2397 ></P
2398 ><P
2399 >The system control machine can also run the processes that define a simple file server machine, as listed in <A
2400 HREF="c3025.html#HDRWQ91"
2401 >Simple File Server Machines</A
2402 >. It can also server as a database server machine, and by convention acts
2403       as the binary distribution machine for its system type. A single <SPAN
2404 CLASS="bold"
2405 ><B
2406 CLASS="emphasis"
2407 >upserver</B
2408 ></SPAN
2409 > process can
2410       distribute both configuration files and binaries. See <A
2411 HREF="c3025.html#HDRWQ92"
2412 >Database Server Machines</A
2413 > and <A
2414 HREF="c3025.html#HDRWQ93"
2415 >Binary Distribution Machines</A
2416 >.</P
2417 ></DIV
2418 ><DIV
2419 CLASS="sect2"
2420 ><H2
2421 CLASS="sect2"
2422 ><A
2423 NAME="HDRWQ95"
2424 >To locate database server machines</A
2425 ></H2
2426 ><OL
2427 TYPE="1"
2428 ><LI
2429 ><P
2430 >Issue the <SPAN
2431 CLASS="bold"
2432 ><B
2433 CLASS="emphasis"
2434 >bos listhosts</B
2435 ></SPAN
2436 > command. <PRE
2437 CLASS="programlisting"
2438 >&#13;   % <SPAN
2439 CLASS="bold"
2440 ><B
2441 CLASS="emphasis"
2442 >bos listhosts</B
2443 ></SPAN
2444 > &#60;<VAR
2445 CLASS="replaceable"
2446 >machine name</VAR
2447 >&#62;
2448 </PRE
2449 ></P
2450 ><P
2451 >The machines listed in the output are the cell's database server machines. For complete instructions and example
2452           output, see <A
2453 HREF="c3025.html#HDRWQ120"
2454 >To display a cell's database server machines</A
2455 >.</P
2456 ></LI
2457 ><LI
2458 ><P
2459 ><SPAN
2460 CLASS="bold"
2461 ><B
2462 CLASS="emphasis"
2463 >(Optional)</B
2464 ></SPAN
2465 > Issue the <SPAN
2466 CLASS="bold"
2467 ><B
2468 CLASS="emphasis"
2469 >bos status</B
2470 ></SPAN
2471 > command to verify
2472           that a machine listed in the output of the <SPAN
2473 CLASS="bold"
2474 ><B
2475 CLASS="emphasis"
2476 >bos listhosts</B
2477 ></SPAN
2478 > command is actually running the
2479           processes that define it as a database server machine. For complete instructions, see <A
2480 HREF="c6449.html#HDRWQ158"
2481 >Displaying
2482           Process Status and Information from the BosConfig File</A
2483 >. <PRE
2484 CLASS="programlisting"
2485 >&#13;   % <SPAN
2486 CLASS="bold"
2487 ><B
2488 CLASS="emphasis"
2489 >bos status</B
2490 ></SPAN
2491 > &#60;<VAR
2492 CLASS="replaceable"
2493 >machine name</VAR
2494 >&#62; <SPAN
2495 CLASS="bold"
2496 ><B
2497 CLASS="emphasis"
2498 >buserver kaserver ptserver vlserver</B
2499 ></SPAN
2500 >
2501 </PRE
2502 ></P
2503 ><P
2504 >If the specified machine is a database server machine, the output from the <SPAN
2505 CLASS="bold"
2506 ><B
2507 CLASS="emphasis"
2508 >bos
2509           status</B
2510 ></SPAN
2511 > command includes the following lines:</P
2512 ><PRE
2513 CLASS="programlisting"
2514 >&#13;   Instance buserver, currently running normally.
2515    Instance kaserver, currently running normally.
2516    Instance ptserver, currently running normally.
2517    Instance vlserver, currently running normally.
2518 </PRE
2519 ></LI
2520 ></OL
2521 ></DIV
2522 ><DIV
2523 CLASS="sect2"
2524 ><H2
2525 CLASS="sect2"
2526 ><A
2527 NAME="HDRWQ96"
2528 >To locate the system control machine</A
2529 ></H2
2530 ><OL
2531 TYPE="1"
2532 ><LI
2533 ><P
2534 >Issue the <SPAN
2535 CLASS="bold"
2536 ><B
2537 CLASS="emphasis"
2538 >bos status</B
2539 ></SPAN
2540 > command for any server machine. Complete instructions appear
2541           in <A
2542 HREF="c6449.html#HDRWQ158"
2543 >Displaying Process Status and Information from the BosConfig File</A
2544 >. <PRE
2545 CLASS="programlisting"
2546 >&#13;   % <SPAN
2547 CLASS="bold"
2548 ><B
2549 CLASS="emphasis"
2550 >bos status</B
2551 ></SPAN
2552 > &#60;<VAR
2553 CLASS="replaceable"
2554 >machine name</VAR
2555 >&#62; <SPAN
2556 CLASS="bold"
2557 ><B
2558 CLASS="emphasis"
2559 >upserver upclientbin upclientetc</B
2560 ></SPAN
2561 > <SPAN
2562 CLASS="bold"
2563 ><B
2564 CLASS="emphasis"
2565 >-long</B
2566 ></SPAN
2567 >
2568 </PRE
2569 ></P
2570 ><P
2571 >The output you see depends on the machine you have contacted: a simple file server machine, the system control
2572           machine, or a binary distribution machine. See <A
2573 HREF="c3025.html#HDRWQ98"
2574 >Interpreting the Output from the bos status
2575           Command</A
2576 >.</P
2577 ></LI
2578 ></OL
2579 ></DIV
2580 ><DIV
2581 CLASS="sect2"
2582 ><H2
2583 CLASS="sect2"
2584 ><A
2585 NAME="HDRWQ97"
2586 >To locate the binary distribution machine for a system type</A
2587 ></H2
2588 ><OL
2589 TYPE="1"
2590 ><LI
2591 ><P
2592 >Issue the <SPAN
2593 CLASS="bold"
2594 ><B
2595 CLASS="emphasis"
2596 >bos status</B
2597 ></SPAN
2598 > command for a file server machine of the system type you are
2599           checking (to determine a machine's system type, issue the <SPAN
2600 CLASS="bold"
2601 ><B
2602 CLASS="emphasis"
2603 >fs sysname</B
2604 ></SPAN
2605 > or <SPAN
2606 CLASS="bold"
2607 ><B
2608 CLASS="emphasis"
2609 >sys</B
2610 ></SPAN
2611 > command as described in <A
2612 HREF="c21473.html#HDRWQ417"
2613 >Displaying and Setting the System Type
2614           Name</A
2615 >. Complete instructions for the <SPAN
2616 CLASS="bold"
2617 ><B
2618 CLASS="emphasis"
2619 >bos status</B
2620 ></SPAN
2621 > command appear in <A
2622 HREF="c6449.html#HDRWQ158"
2623 >Displaying Process Status and Information from the BosConfig File</A
2624 >. <PRE
2625 CLASS="programlisting"
2626 >&#13;   % <SPAN
2627 CLASS="bold"
2628 ><B
2629 CLASS="emphasis"
2630 >bos status</B
2631 ></SPAN
2632 > &#60;<VAR
2633 CLASS="replaceable"
2634 >machine name</VAR
2635 >&#62; <SPAN
2636 CLASS="bold"
2637 ><B
2638 CLASS="emphasis"
2639 >upserver upclientbin upclientetc -long</B
2640 ></SPAN
2641 >
2642 </PRE
2643 ></P
2644 ><P
2645 >The output you see depends on the machine you have contacted: a simple file server machine, the system control
2646           machine, or a binary distribution machine. See <A
2647 HREF="c3025.html#HDRWQ98"
2648 >Interpreting the Output from the bos status
2649           Command</A
2650 >.</P
2651 ></LI
2652 ></OL
2653 ></DIV
2654 ><DIV
2655 CLASS="sect2"
2656 ><H2
2657 CLASS="sect2"
2658 ><A
2659 NAME="HDRWQ98"
2660 >Interpreting the Output from the bos status Command</A
2661 ></H2
2662 ><P
2663 >Interpreting the output of the <SPAN
2664 CLASS="bold"
2665 ><B
2666 CLASS="emphasis"
2667 >bos status</B
2668 ></SPAN
2669 > command is most straightforward for a simple
2670       file server machine. There is no <SPAN
2671 CLASS="bold"
2672 ><B
2673 CLASS="emphasis"
2674 >upserver</B
2675 ></SPAN
2676 > process, so the output includes the following
2677       message:</P
2678 ><PRE
2679 CLASS="programlisting"
2680 >&#13;   bos: failed to get instance info for 'upserver' (no such entity)
2681 </PRE
2682 ><P
2683 >A simple file server machine runs the <SPAN
2684 CLASS="bold"
2685 ><B
2686 CLASS="emphasis"
2687 >upclientbin</B
2688 ></SPAN
2689 > process, so the output includes a
2690       message like the following. It indicates that <SPAN
2691 CLASS="bold"
2692 ><B
2693 CLASS="emphasis"
2694 >fs7.abc.com</B
2695 ></SPAN
2696 > is the binary distribution machine
2697       for this system type.</P
2698 ><PRE
2699 CLASS="programlisting"
2700 >&#13;   Instance upclientbin, (type is simple) currently running normally.
2701    Process last started at Wed Mar 10  23:37:09 1999 (1 proc start)
2702    Command 1 is '/usr/afs/bin/upclient fs7.abc.com -t 60 /usr/afs/bin'
2703 </PRE
2704 ><P
2705 >If you run the United States edition of AFS, a simple file server machine also runs the <SPAN
2706 CLASS="bold"
2707 ><B
2708 CLASS="emphasis"
2709 >upclientetc</B
2710 ></SPAN
2711 > process, so the output includes a message like the following. It indicates that <SPAN
2712 CLASS="bold"
2713 ><B
2714 CLASS="emphasis"
2715 >fs1.abc.com</B
2716 ></SPAN
2717 > is the system control machine.</P
2718 ><PRE
2719 CLASS="programlisting"
2720 >&#13;   Instance upclientetc, (type is simple) currently running normally.
2721    Process last started at Mon Mar 22  05:23:49 1999 (1 proc start)
2722    Command 1 is '/usr/afs/bin/upclient fs1.abc.com -t 60 /usr/afs/etc'
2723 </PRE
2724 ><DIV
2725 CLASS="sect3"
2726 ><H3
2727 CLASS="sect3"
2728 ><A
2729 NAME="HDRWQ99"
2730 >The Output on the System Control Machine</A
2731 ></H3
2732 ><P
2733 >If you run the United States edition of AFS and have issued the <SPAN
2734 CLASS="bold"
2735 ><B
2736 CLASS="emphasis"
2737 >bos status</B
2738 ></SPAN
2739 > command
2740         for the system control machine, the output includes an entry for the <SPAN
2741 CLASS="bold"
2742 ><B
2743 CLASS="emphasis"
2744 >upserver</B
2745 ></SPAN
2746 > process
2747         similar to the following:</P
2748 ><PRE
2749 CLASS="programlisting"
2750 >&#13;   Instance upserver, (type is simple) currently running normally.
2751    Process last started at Mon Mar 22 05:23:54 1999 (1 proc start)
2752    Command 1 is '/usr/afs/bin/upserver'
2753 </PRE
2754 ><P
2755 >If you are using the default configuration recommended in the <SPAN
2756 CLASS="emphasis"
2757 ><I
2758 CLASS="emphasis"
2759 >IBM AFS Quick Beginnings</I
2760 ></SPAN
2761 >, the
2762         system control machine is also the binary distribution machine for its system type, and a single <SPAN
2763 CLASS="bold"
2764 ><B
2765 CLASS="emphasis"
2766 >upserver</B
2767 ></SPAN
2768 > process distributes both kinds of updates. In that case, the output includes the following
2769         messages:</P
2770 ><PRE
2771 CLASS="programlisting"
2772 >&#13;   bos: failed to get instance info for 'upclientbin' (no such entity)
2773    bos: failed to get instance info for 'upclientetc' (no such entity)
2774 </PRE
2775 ><P
2776 >If the system control machine is not a binary distribution machine, the output includes an error message for the
2777         <SPAN
2778 CLASS="bold"
2779 ><B
2780 CLASS="emphasis"
2781 >upclientetc</B
2782 ></SPAN
2783 > process, but a complete a listing for the <SPAN
2784 CLASS="bold"
2785 ><B
2786 CLASS="emphasis"
2787 >upclientbin</B
2788 ></SPAN
2789 > process (in this case it refers to the machine <SPAN
2790 CLASS="bold"
2791 ><B
2792 CLASS="emphasis"
2793 >fs5.abc.com</B
2794 ></SPAN
2795 > as the binary distribution machine):</P
2796 ><PRE
2797 CLASS="programlisting"
2798 >&#13;   Instance upclientbin, (type is simple) currently running normally.
2799    Process last started at Mon Mar 22  05:23:49 1999 (1 proc start)
2800    Command 1 is '/usr/afs/bin/upclient fs5.abc.com -t 60 /usr/afs/bin'
2801    bos: failed to get instance info for 'upclientetc' (no such entity)
2802 </PRE
2803 ></DIV
2804 ><DIV
2805 CLASS="sect3"
2806 ><H3
2807 CLASS="sect3"
2808 ><A
2809 NAME="HDRWQ100"
2810 >The Output on a Binary Distribution Machine</A
2811 ></H3
2812 ><P
2813 >If you have issued the <SPAN
2814 CLASS="bold"
2815 ><B
2816 CLASS="emphasis"
2817 >bos status</B
2818 ></SPAN
2819 > command for a binary distribution machine, the
2820         output includes an entry for the <SPAN
2821 CLASS="bold"
2822 ><B
2823 CLASS="emphasis"
2824 >upserver</B
2825 ></SPAN
2826 > process similar to the following and error
2827         message for the <SPAN
2828 CLASS="bold"
2829 ><B
2830 CLASS="emphasis"
2831 >upclientbin</B
2832 ></SPAN
2833 > process:</P
2834 ><PRE
2835 CLASS="programlisting"
2836 >&#13;   Instance upserver, (type is simple) currently running normally.
2837    Process last started at Mon Apr 5 05:23:54 1999 (1 proc start)
2838    Command 1 is '/usr/afs/bin/upserver'
2839    bos: failed to get instance info for 'upclientbin' (no such entity)
2840 </PRE
2841 ><P
2842 >Unless this machine also happens to be the system control machine, a message like the following references the system
2843         control machine (in this case, <SPAN
2844 CLASS="bold"
2845 ><B
2846 CLASS="emphasis"
2847 >fs3.abc.com</B
2848 ></SPAN
2849 >):</P
2850 ><PRE
2851 CLASS="programlisting"
2852 >&#13;   Instance upclientetc, (type is simple) currently running normally.
2853    Process last started at Mon Apr 5 05:23:49 1999 (1 proc start)
2854    Command 1 is '/usr/afs/bin/upclient fs3.abc.com -t 60 /usr/afs/etc'
2855 </PRE
2856 ></DIV
2857 ></DIV
2858 ></DIV
2859 ><DIV
2860 CLASS="sect1"
2861 ><H1
2862 CLASS="sect1"
2863 ><A
2864 NAME="HDRWQ101"
2865 >Administering Database Server Machines</A
2866 ></H1
2867 ><P
2868 >This section explains how to administer database server machines. For installation instructions, see the <SPAN
2869 CLASS="emphasis"
2870 ><I
2871 CLASS="emphasis"
2872 >IBM AFS
2873     Quick Beginnings</I
2874 ></SPAN
2875 >.</P
2876 ><DIV
2877 CLASS="sect2"
2878 ><H2
2879 CLASS="sect2"
2880 ><A
2881 NAME="HDRWQ102"
2882 >Replicating the AFS Administrative Databases</A
2883 ></H2
2884 ><P
2885 >There are several benefits to replicating the AFS administrative databases (the Authentication, Backup, Protection, and
2886       Volume Location Databases), as discussed in <A
2887 HREF="c667.html#HDRWQ52"
2888 >Replicating the AFS Administrative Databases</A
2889 >. For
2890       correct cell functioning, the copies of each database must be identical at all times. To keep the databases synchronized, AFS
2891       uses library of utilities called <SPAN
2892 CLASS="emphasis"
2893 ><I
2894 CLASS="emphasis"
2895 >Ubik</I
2896 ></SPAN
2897 >. Each database server process runs an associated lightweight Ubik
2898       process, and client-side programs call Ubik's client-side subroutines when they submit requests to read and change the
2899       databases.</P
2900 ><P
2901 >Ubik is designed to work with minimal administrator intervention, but there are several configuration requirements, as
2902       detailed in <A
2903 HREF="c3025.html#HDRWQ103"
2904 >Configuring the Cell for Proper Ubik Operation</A
2905 >. The following brief overview of
2906       Ubik's operation is helpful for understanding the requirements. For more details, see <A
2907 HREF="c3025.html#HDRWQ104"
2908 >How Ubik
2909       Operates Automatically</A
2910 >.</P
2911 ><P
2912 >Ubik is designed to distribute changes made in an AFS administrative database to all copies as quickly as possible. Only
2913       one copy of the database, the <SPAN
2914 CLASS="emphasis"
2915 ><I
2916 CLASS="emphasis"
2917 >synchronization site</I
2918 ></SPAN
2919 >, accepts change requests from clients; the lightweight
2920       Ubik process running there is the <SPAN
2921 CLASS="emphasis"
2922 ><I
2923 CLASS="emphasis"
2924 >Ubik coordinator</I
2925 ></SPAN
2926 >. To maintain maximum availability, there is a separate
2927       Ubik coordinator for each database, and the synchronization site for each of the four databases can be on a different machine.
2928       The synchronization site for a database can also move from machine to machine in response to process, machine, or network
2929       outages.</P
2930 ><P
2931 >The other copies of a database, and the Ubik processes that maintain them, are termed <SPAN
2932 CLASS="emphasis"
2933 ><I
2934 CLASS="emphasis"
2935 >secondary</I
2936 ></SPAN
2937 >.
2938       The secondary sites do not accept database changes directly from client-side programs, but only from the synchronization
2939       site.</P
2940 ><P
2941 >After the Ubik coordinator records a change in its copy of a database, it immediately sends the change to the secondary
2942       sites. During the brief distribution period, clients cannot access any of the copies of the database, even for reading. If the
2943       coordinator cannot reach a majority of the secondary sites, it halts the distribution and informs the client that the
2944       attempted change failed.</P
2945 ><P
2946 >To avoid distribution failures, the Ubik processes maintain constant contact by exchanging time-stamped messages. As
2947       long as a majority of the secondary sites respond to the coordinator's messages, there is a <SPAN
2948 CLASS="emphasis"
2949 ><I
2950 CLASS="emphasis"
2951 >quorum</I
2952 ></SPAN
2953 > of
2954       sites that are synchronized with the coordinator. If a process, machine, or network outage breaks the quorum, the Ubik
2955       processes attempt to elect a new coordinator in order to establish a new quorum among the highest possible number of sites.
2956       See <A
2957 HREF="c3025.html#HDRWQ106"
2958 >A Flexible Coordinator Boosts Availability</A
2959 >.</P
2960 ><DIV
2961 CLASS="sect3"
2962 ><H3
2963 CLASS="sect3"
2964 ><A
2965 NAME="HDRWQ103"
2966 >Configuring the Cell for Proper Ubik Operation</A
2967 ></H3
2968 ><P
2969 >This section describes how to configure your cell to maintain proper Ubik operation. <UL
2970 ><LI
2971 ><P
2972 >Run all four database server processes--Authentication Server, Backup Server, Protection Server, and VL
2973               Server--on all database server machines.</P
2974 ><P
2975 >Both the client and server portions of Ubik expect that all the database server machines listed in the <SPAN
2976 CLASS="bold"
2977 ><B
2978 CLASS="emphasis"
2979 >CellServDB</B
2980 ></SPAN
2981 > file are running all of the database server processes. There is no mechanism for
2982               indicating that only some database server processes are running on a machine.</P
2983 ></LI
2984 ><LI
2985 ><P
2986 >Maintain correct information in the <SPAN
2987 CLASS="bold"
2988 ><B
2989 CLASS="emphasis"
2990 >/usr/afs/etc/CellServDB</B
2991 ></SPAN
2992 > file at all
2993               times.</P
2994 ><P
2995 >Ubik consults the <SPAN
2996 CLASS="bold"
2997 ><B
2998 CLASS="emphasis"
2999 >/usr/afs/etc/CellServDB</B
3000 ></SPAN
3001 > file to determine the sites with
3002               which to establish and maintain a quorum. Incorrect information can result in unsynchronized databases or election of
3003               a coordinator in each of several subgroups of machines, because the Ubik processes on various machines do not agree on
3004               which machines need to participate in the quorum.</P
3005 ><P
3006 >If you run the United States version of AFS and use the Update Server, it is simplest to maintain the <SPAN
3007 CLASS="bold"
3008 ><B
3009 CLASS="emphasis"
3010 >/usr/afs/etc/CellServDB</B
3011 ></SPAN
3012 > file on the system control machine, which distributes its copy to all
3013               other server machines. The <SPAN
3014 CLASS="emphasis"
3015 ><I
3016 CLASS="emphasis"
3017 >IBM AFS Quick Beginnings</I
3018 ></SPAN
3019 > explains how to configure the Update Server.
3020               If you run the international version of AFS, you must update the file on each machine individually.</P
3021 ><P
3022 >The only reason to alter the file is when configuring or decommissioning a database server machine. Use the
3023               appropriate <SPAN
3024 CLASS="bold"
3025 ><B
3026 CLASS="emphasis"
3027 >bos</B
3028 ></SPAN
3029 > commands rather than editing the file by hand. For instructions, see
3030               <A
3031 HREF="c3025.html#HDRWQ118"
3032 >Maintaining the Server CellServDB File</A
3033 >. The instructions in <A
3034 HREF="c6449.html"
3035 >Monitoring and Controlling Server Processes</A
3036 > for stopping and starting processes remind you
3037               to alter the <SPAN
3038 CLASS="bold"
3039 ><B
3040 CLASS="emphasis"
3041 >CellServDB</B
3042 ></SPAN
3043 > file when appropriate, as do the instructions in the
3044               <SPAN
3045 CLASS="emphasis"
3046 ><I
3047 CLASS="emphasis"
3048 >IBM AFS Quick Beginnings</I
3049 ></SPAN
3050 > for installing or decommissioning a database server machine.</P
3051 ><P
3052 >(Client processes and the server processes that do not maintain databases also rely on correct information in
3053               the <SPAN
3054 CLASS="bold"
3055 ><B
3056 CLASS="emphasis"
3057 >CellServDB</B
3058 ></SPAN
3059 > file for proper operation, but their use of the information does not
3060               affect Ubik's operation. See <A
3061 HREF="c3025.html#HDRWQ118"
3062 >Maintaining the Server CellServDB File</A
3063 > and <A
3064 HREF="c21473.html#HDRWQ406"
3065 >Maintaining Knowledge of Database Server Machines</A
3066 >.)</P
3067 ></LI
3068 ><LI
3069 ><P
3070 >Keep the clocks synchronized on all machines in the cell, especially the database server machines.</P
3071 ><P
3072 >In the conventional configuration specified in the <SPAN
3073 CLASS="emphasis"
3074 ><I
3075 CLASS="emphasis"
3076 >IBM AFS Quick Beginnings</I
3077 ></SPAN
3078 >, you run the
3079               <SPAN
3080 CLASS="bold"
3081 ><B
3082 CLASS="emphasis"
3083 >runntp</B
3084 ></SPAN
3085 > process to supervise the local Network Time Protocol Daemon (NTPD) on every
3086               AFS server machine. The NTPD on the system control machine synchronizes its clock with a reliable source outside the
3087               cell and broadcasts the time to the NTPDs on the other server machines. You can choose to run a different time
3088               synchronization protocol if you wish.</P
3089 ><P
3090 >Keeping clocks synchronized is important because the Ubik processes at a database's sites timestamp the messages
3091               which they exchange to maintain constant contact. Timestamping the messages is necessary because in a networked
3092               environment it is not safe to assume that a message reaches its destination instantly. Ubik compares the timestamp on
3093               an incoming message with the current time. If the difference is too great, it is possible that an outage is preventing
3094               reliable communication between the Ubik sites, which can possibly result in unsynchronized databases. Ubik considers
3095               the message invalid, which can prompt it to attempt election of a different coordinator.</P
3096 ><P
3097 >Electing a new coordinator is appropriate if a timestamped message is expired due to actual interruption of
3098               communication, but not if a message appears expired only because the sender and recipient do not share the same time.
3099               For detailed examples of how unsynchronized clocks can destabilize Ubik operation, see <A
3100 HREF="c3025.html#HDRWQ105"
3101 >How
3102               Ubik Uses Timestamped Messages</A
3103 >.</P
3104 ></LI
3105 ></UL
3106 ></P
3107 ></DIV
3108 ><DIV
3109 CLASS="sect3"
3110 ><H3
3111 CLASS="sect3"
3112 ><A
3113 NAME="HDRWQ104"
3114 >How Ubik Operates Automatically</A
3115 ></H3
3116 ><P
3117 >The following Ubik features help keep its maintenance requirements to a minimum: <UL
3118 ><LI
3119 ><P
3120 >Ubik's server and client portions operate automatically.</P
3121 ><P
3122 >Each database server process runs a lightweight process to call on the server portion of the Ubik library. It is
3123               common to refer to this lightweight process itself as Ubik. Because it is lightweight, the Ubik process does not
3124               appear in process listings such as those generated by the UNIX <SPAN
3125 CLASS="bold"
3126 ><B
3127 CLASS="emphasis"
3128 >ps</B
3129 ></SPAN
3130 > command.
3131               Client-side programs that need to read and change the databases directly call the subroutines in the Ubik library's
3132               client portion, rather than running a separate lightweight process. Examples of such programs are the <SPAN
3133 CLASS="bold"
3134 ><B
3135 CLASS="emphasis"
3136 >klog</B
3137 ></SPAN
3138 > command and the commands in the <SPAN
3139 CLASS="bold"
3140 ><B
3141 CLASS="emphasis"
3142 >pts</B
3143 ></SPAN
3144 > suite.</P
3145 ></LI
3146 ><LI
3147 ><P
3148 >Ubik tracks database version numbers.</P
3149 ><P
3150 >As the coordinator records a change to a database, it increments the database's version number. The version
3151               number makes it easy for the coordinator to determine if a site has the most recent version or not. The version number
3152               speeds the return to normal functioning after election of a new coordinator or when communication is restored after an
3153               outage, because it makes it easy to determine which site has the most current database and which need to be
3154               updated.</P
3155 ></LI
3156 ><LI
3157 ><P
3158 >Ubik's use of timestamped messages guarantees that database copies are always synchronized during normal
3159               operation.</P
3160 ><P
3161 >Replicating a database to increase data availability is pointless if all copies of the database are not the
3162               same. Inconsistent performance can result if clients receive different information depending on which copy of the
3163               database they access. As previously noted, Ubik sites constantly track the status of their peers by exchanging
3164               timestamped messages. For a detailed description, see <A
3165 HREF="c3025.html#HDRWQ105"
3166 >How Ubik Uses Timestamped
3167               Messages</A
3168 >.</P
3169 ></LI
3170 ><LI
3171 ><P
3172 >The ability to move the coordinator maximizes database availability.</P
3173 ><P
3174 >Suppose, for example, that in a cell with three database server machines a network partition separates the two
3175               secondary sites from the coordinator. The coordinator retires because it is no longer in contact with a majority of
3176               the sites listed in the <SPAN
3177 CLASS="bold"
3178 ><B
3179 CLASS="emphasis"
3180 >CellServDB</B
3181 ></SPAN
3182 > file. The two sites on the other side of the
3183               partition can elect a new coordinator among themselves, and it can then accept database changes from clients. If the
3184               coordinator cannot move in this way, the database has to be read-only until the network partition is repaired. For a
3185               detailed description of Ubik's election procedure, see <A
3186 HREF="c3025.html#HDRWQ106"
3187 >A Flexible Coordinator Boosts
3188               Availability</A
3189 >.</P
3190 ></LI
3191 ></UL
3192 ></P
3193 ><DIV
3194 CLASS="sect4"
3195 ><H4
3196 CLASS="sect4"
3197 ><A
3198 NAME="HDRWQ105"
3199 >How Ubik Uses Timestamped Messages</A
3200 ></H4
3201 ><P
3202 >Ubik synchronizes the copies of a database by maintaining constant contact between the synchronization site and the
3203           secondary sites. The Ubik coordinator frequently sends a time-stamped <SPAN
3204 CLASS="emphasis"
3205 ><I
3206 CLASS="emphasis"
3207 >guarantee</I
3208 ></SPAN
3209 > message to each of
3210           the secondary sites. When the secondary site receives the message, it concludes that it is in contact with the
3211           coordinator. It considers its copy of the database to be valid until time <SPAN
3212 CLASS="emphasis"
3213 ><I
3214 CLASS="emphasis"
3215 >T</I
3216 ></SPAN
3217 >, which is usually 60
3218           seconds from the time the coordinator sent the message. In response, the secondary site returns a
3219           <SPAN
3220 CLASS="emphasis"
3221 ><I
3222 CLASS="emphasis"
3223 >vote</I
3224 ></SPAN
3225 > message that acknowledges the coordinator as valid until a certain time X, which is usually 120
3226           seconds in the future.</P
3227 ><P
3228 >The coordinator sends guarantee messages more frequently than every <SPAN
3229 CLASS="emphasis"
3230 ><I
3231 CLASS="emphasis"
3232 >T</I
3233 ></SPAN
3234 > seconds, so that the
3235           expiration periods overlap. There is no danger of expiration unless a network partition or other outage actually
3236           interrupts communication. If the guarantee expires, the secondary site's copy of the database it not necessarily current.
3237           Nonetheless, the database server continues to service client requests. It is considered better for overall cell
3238           functioning that a secondary site remains accessible even if the information it is distributing is possibly out of date.
3239           Most of the AFS administrative databases do not change that frequently, in any case, and making a database inaccessible
3240           causes a timeout for clients that happen to access that copy.</P
3241 ><P
3242 >As previously mentioned, Ubik's use of timestamped messages makes it vital to synchronize the clocks on database
3243           server machines. There are two ways that skewed clocks can interrupt normal Ubik functioning, depending on which clock is
3244           ahead of the others.</P
3245 ><P
3246 >Suppose, for example, that the Ubik coordinator's clock is ahead of the secondary sites: the coordinator's clock
3247           says 9:35:30, but the secondary clocks say 9:31:30. The secondary sites send votes messages that acknowledge the
3248           coordinator as valid until 9:33:30. This is two minutes in the future according to the secondary clocks, but is already in
3249           the past from the coordinator's perspective. The coordinator concludes that it no longer has enough support to remain
3250           coordinator and forces election of a new coordinator. Election takes about three minutes, during which time no copy of the
3251           database accepts changes.</P
3252 ><P
3253 >The opposite possibility is that a secondary site's clock (14:50:00) is ahead of the coordinator's (14:46:30). When
3254           the coordinator sends a guarantee message good until 14:47:30), it has already expired according to the secondary clock.
3255           Believing that it is out of contact with the coordinator, the secondary site stops sending votes for the coordinator and
3256           tries get itself elected as coordinator. This is appropriate if the coordinator has actually failed, but is inappropriate
3257           when there is no actual outage.</P
3258 ><P
3259 >The attempt of a single secondary site to get elected as the new coordinator usually does not affect the performance
3260           of the other sites. As long as their clocks agree with the coordinator's, they ignore the other secondary site's request
3261           for votes and continue voting for the current coordinator. However, if enough of the secondary sites's clocks get ahead of
3262           the coordinator's, they can force election of a new coordinator even though the current one is actually working
3263           fine.</P
3264 ></DIV
3265 ><DIV
3266 CLASS="sect4"
3267 ><H4
3268 CLASS="sect4"
3269 ><A
3270 NAME="HDRWQ106"
3271 >A Flexible Coordinator Boosts Availability</A
3272 ></H4
3273 ><P
3274 >Ubik uses timestamped messages to determine when coordinator election is necessary, just as it does to keep the
3275           database copies synchronized. As long as the coordinator receives vote messages from a majority of the sites (it
3276           implicitly votes for itself), it is appropriate for it to continue as coordinator because it is successfully distributing
3277           database changes. A majority is defined as more than 50% of all database sites when there are an odd number of sites; with
3278           an even number of sites, the site with the lowest Internet address has an extra vote for breaking ties as necessary.If the
3279           coordinator is not receiving sufficient votes, it retires and the Ubik sites elect a new coordinator. This does not happen
3280           spontaneously, but only when the coordinator really fails or stops receiving a majority of the votes. The secondary sites
3281           have a built-in bias to continue voting for an existing coordinator, which prevents undue elections.</P
3282 ><P
3283 >The election of the new coordinator is by majority vote. The Ubik subprocesses have a bias to vote for the site with
3284           the lowest Internet address, which helps it gather the necessary majority quicker than if all the sites were competing to
3285           receive votes themselves. During the election (which normally lasts less than three minutes), clients can read information
3286           from the database, but cannot make any changes.</P
3287 ><P
3288 >Ubik's election procedure makes it possible for each database server process's coordinator to be on a different
3289           machine. For example, if the Ubik coordinators for all four processes start out on machine A and the Protection Server on
3290           machine A fails for some reason, then a different site (say machine B) must be elected as the new Protection Database Ubik
3291           coordinator. Machine B remains the coordinator for the Protection Database even after the Protection Server on machine A
3292           is working again. The failure of the Protection Server has no effect on the Authentication, Backup, or VL Servers, so
3293           their coordinators remain on machine A.</P
3294 ></DIV
3295 ></DIV
3296 ></DIV
3297 ><DIV
3298 CLASS="sect2"
3299 ><H2
3300 CLASS="sect2"
3301 ><A
3302 NAME="HDRWQ107"
3303 >Backing Up and Restoring the Administrative Databases</A
3304 ></H2
3305 ><P
3306 >The AFS administrative databases store information that is critical for AFS operation in your cell. If a database
3307       becomes corrupted due to a hardware failure or other problem on a database server machine, it likely to be difficult and
3308       time-consuming to recreate all of the information from scratch. To protect yourself against loss of data, back up the
3309       administrative databases to a permanent media, such as tape, on a regular basis. The recommended method is to use a standard
3310       local disk backup utility such as the UNIX <SPAN
3311 CLASS="bold"
3312 ><B
3313 CLASS="emphasis"
3314 >tar</B
3315 ></SPAN
3316 > command.</P
3317 ><P
3318 >When deciding how often to back up a database, consider the amount of data that you are willing to recreate by hand if
3319       it becomes necessary to restore the database from a backup copy. In most cells, the databases differ quite a bit in how often
3320       and how much they change. Changes to the Authentication Database are probably the least frequent, and consist mostly of
3321       changed user passwords. Protection Database and VLDB changes are probably more frequent, as users add or delete groups and
3322       change group memberships, and as you and other administrators create or move volumes. The number and frequency of changes is
3323       probably greatest in the Backup Database, particularly if you perform backups every day.</P
3324 ><P
3325 >The ease with which you can recapture lost changes also differs for the different databases: <UL
3326 ><LI
3327 ><P
3328 >If regular users make a large proportion of the changes to the Authentication Database and Protection Database in
3329             your cell, then recovering them possibly requires a large amount of detective work and interviewing of users, assuming
3330             that they can even remember what changes they made at what time.</P
3331 ></LI
3332 ><LI
3333 ><P
3334 >Recovering lost changes to the VLDB is more straightforward, because you can use the <SPAN
3335 CLASS="bold"
3336 ><B
3337 CLASS="emphasis"
3338 >vos
3339             syncserv</B
3340 ></SPAN
3341 > and <SPAN
3342 CLASS="bold"
3343 ><B
3344 CLASS="emphasis"
3345 >vos syncvldb</B
3346 ></SPAN
3347 > commands to correct any discrepancies between the
3348             VLDB and the actual state of volumes on server machines. Running these commands can be time-consuming, however.</P
3349 ></LI
3350 ><LI
3351 ><P
3352 >The configuration information in the Backup Database (Tape Coordinator port offsets, volume sets and entries, the
3353             dump hierarchy, and so on) probably does not change that often, in which case it is not that hard to recover a few
3354             recent changes. In contrast, there are likely to be a large number of new dump records resulting from dump operations.
3355             You can recover these records by using the <SPAN
3356 CLASS="bold"
3357 ><B
3358 CLASS="emphasis"
3359 >-dbadd</B
3360 ></SPAN
3361 > argument to the <SPAN
3362 CLASS="bold"
3363 ><B
3364 CLASS="emphasis"
3365 >backup scantape</B
3366 ></SPAN
3367 > command, reading in information from the backup tapes themselves. This can take a
3368             long time and require numerous tape changes, however, depending on how much data you back up in your cell and how you
3369             append dumps. Furthermore, the <SPAN
3370 CLASS="bold"
3371 ><B
3372 CLASS="emphasis"
3373 >backup scantape</B
3374 ></SPAN
3375 > command is subject to several
3376             restrictions. The most basic is that it halts if it finds that an existing dump record in the database has the same dump
3377             ID number as a dump on the tape it is scanning. If you want to continue with the scanning operation, you must locate and
3378             remove the existing record from the database. For further discussion, see the <SPAN
3379 CLASS="bold"
3380 ><B
3381 CLASS="emphasis"
3382 >backup
3383             scantape</B
3384 ></SPAN
3385 > command's reference page in the <SPAN
3386 CLASS="emphasis"
3387 ><I
3388 CLASS="emphasis"
3389 >IBM AFS Administration Reference</I
3390 ></SPAN
3391 >.</P
3392 ></LI
3393 ></UL
3394 ></P
3395 ><P
3396 >These differences between the databases possibly suggest backing up the database at different frequencies, ranging from
3397       every few days or weekly for the Backup Database to every few weeks for the Authentication Database. On the other hand, it is
3398       probably simpler from a logistical standpoint to back them all up at the same time (and frequently), particularly if tape
3399       consumption is not a major concern. Also, it is not generally necessary to keep backup copies of the databases for a long
3400       time, so you can recycle the tapes fairly frequently.</P
3401 ></DIV
3402 ><DIV
3403 CLASS="sect2"
3404 ><H2
3405 CLASS="sect2"
3406 ><A
3407 NAME="HDRWQ108"
3408 >To back up the administrative databases</A
3409 ></H2
3410 ><OL
3411 TYPE="1"
3412 ><LI
3413 ><P
3414 >Log in as the local superuser <SPAN
3415 CLASS="bold"
3416 ><B
3417 CLASS="emphasis"
3418 >root</B
3419 ></SPAN
3420 > on a database server machine that is not the
3421           synchronization site. The machine with the highest IP address is normally the best choice, since it is least likely to
3422           become the synchronization site in an election.</P
3423 ></LI
3424 ><LI
3425 ><P
3426 ><A
3427 NAME="LIDBBK_SHUTDOWN"
3428 ></A
3429 >Issue the <SPAN
3430 CLASS="bold"
3431 ><B
3432 CLASS="emphasis"
3433 >bos shutdown</B
3434 ></SPAN
3435 > command to shut down the
3436           relevant server process on the local machine. For a complete description of the command, see <A
3437 HREF="c6449.html#HDRWQ168"
3438 >To
3439           stop processes temporarily</A
3440 >.</P
3441 ><P
3442 >For the <SPAN
3443 CLASS="bold"
3444 ><B
3445 CLASS="emphasis"
3446 >-instance</B
3447 ></SPAN
3448 > argument, specify one or more database server process names
3449           (<SPAN
3450 CLASS="bold"
3451 ><B
3452 CLASS="emphasis"
3453 >buserver</B
3454 ></SPAN
3455 > for the Backup Server, <SPAN
3456 CLASS="bold"
3457 ><B
3458 CLASS="emphasis"
3459 >kaserver</B
3460 ></SPAN
3461 > for the
3462           Authentication Server, <SPAN
3463 CLASS="bold"
3464 ><B
3465 CLASS="emphasis"
3466 >ptserver</B
3467 ></SPAN
3468 > for the Protection Server, or <SPAN
3469 CLASS="bold"
3470 ><B
3471 CLASS="emphasis"
3472 >vlserver</B
3473 ></SPAN
3474 > for the Volume Location Server. Include the <SPAN
3475 CLASS="bold"
3476 ><B
3477 CLASS="emphasis"
3478 >-localauth</B
3479 ></SPAN
3480 >
3481           flag because you are logged in as the local superuser <SPAN
3482 CLASS="bold"
3483 ><B
3484 CLASS="emphasis"
3485 >root</B
3486 ></SPAN
3487 > but do not necessarily have
3488           administrative tokens.</P
3489 ><PRE
3490 CLASS="programlisting"
3491 >&#13;   # <SPAN
3492 CLASS="bold"
3493 ><B
3494 CLASS="emphasis"
3495 >bos shutdown</B
3496 ></SPAN
3497 > &#60;<VAR
3498 CLASS="replaceable"
3499 >machine name</VAR
3500 >&#62; <SPAN
3501 CLASS="bold"
3502 ><B
3503 CLASS="emphasis"
3504 >-instance</B
3505 ></SPAN
3506 > &#60;<VAR
3507 CLASS="replaceable"
3508 >instances</VAR
3509 >&#62;+ <SPAN
3510 CLASS="bold"
3511 ><B
3512 CLASS="emphasis"
3513 >-localauth</B
3514 ></SPAN
3515 > [<SPAN
3516 CLASS="bold"
3517 ><B
3518 CLASS="emphasis"
3519 >-wait</B
3520 ></SPAN
3521 >]
3522 </PRE
3523 ></LI
3524 ><LI
3525 ><P
3526 >Use a local disk backup utility, such as the UNIX <SPAN
3527 CLASS="bold"
3528 ><B
3529 CLASS="emphasis"
3530 >tar</B
3531 ></SPAN
3532 > command, to transfer one or
3533           more database files to tape. If the local database server machine does not have a tape device attached, use a remote copy
3534           command to transfer the file to a machine with a tape device, then use the <SPAN
3535 CLASS="bold"
3536 ><B
3537 CLASS="emphasis"
3538 >tar</B
3539 ></SPAN
3540 > command
3541           there.</P
3542 ><P
3543 >The following command sequence backs up the complete contents of the <SPAN
3544 CLASS="bold"
3545 ><B
3546 CLASS="emphasis"
3547 >/usr/afs/db</B
3548 ></SPAN
3549 >
3550           directory</P
3551 ><PRE
3552 CLASS="programlisting"
3553 >&#13;   # <SPAN
3554 CLASS="bold"
3555 ><B
3556 CLASS="emphasis"
3557 >cd /usr/afs/db</B
3558 ></SPAN
3559 >
3560    # <SPAN
3561 CLASS="bold"
3562 ><B
3563 CLASS="emphasis"
3564 >tar cvf</B
3565 ></SPAN
3566 >  tape_device <SPAN
3567 CLASS="bold"
3568 ><B
3569 CLASS="emphasis"
3570 >.</B
3571 ></SPAN
3572 >
3573 </PRE
3574 ><P
3575 >To back up individual database files, substitute their names for the period in the preceding <SPAN
3576 CLASS="bold"
3577 ><B
3578 CLASS="emphasis"
3579 >tar</B
3580 ></SPAN
3581 > command: <UL
3582 ><LI
3583 ><P
3584 ><SPAN
3585 CLASS="bold"
3586 ><B
3587 CLASS="emphasis"
3588 >bdb.DB0</B
3589 ></SPAN
3590 > for the Backup Database</P
3591 ></LI
3592 ><LI
3593 ><P
3594 ><SPAN
3595 CLASS="bold"
3596 ><B
3597 CLASS="emphasis"
3598 >kaserver.DB0</B
3599 ></SPAN
3600 > for the Authentication Database</P
3601 ></LI
3602 ><LI
3603 ><P
3604 ><SPAN
3605 CLASS="bold"
3606 ><B
3607 CLASS="emphasis"
3608 >prdb.DB0</B
3609 ></SPAN
3610 > for the Protection Database</P
3611 ></LI
3612 ><LI
3613 ><P
3614 ><SPAN
3615 CLASS="bold"
3616 ><B
3617 CLASS="emphasis"
3618 >vldb.DB0</B
3619 ></SPAN
3620 > for the VLDB</P
3621 ></LI
3622 ></UL
3623 ></P
3624 ></LI
3625 ><LI
3626 ><P
3627 >Issue the <SPAN
3628 CLASS="bold"
3629 ><B
3630 CLASS="emphasis"
3631 >bos start</B
3632 ></SPAN
3633 > command to restart the server processes on the local machine.
3634           For a complete description of the command, see <A
3635 HREF="c6449.html#HDRWQ166"
3636 >To start processes by changing their status flags
3637           to Run</A
3638 >. Provide the same values for the <SPAN
3639 CLASS="bold"
3640 ><B
3641 CLASS="emphasis"
3642 >-instance</B
3643 ></SPAN
3644 > argument as in Step <A
3645 HREF="c3025.html#LIDBBK_SHUTDOWN"
3646 >2</A
3647 >, and the <SPAN
3648 CLASS="bold"
3649 ><B
3650 CLASS="emphasis"
3651 >-localauth</B
3652 ></SPAN
3653 > flag for the same reason.
3654           <PRE
3655 CLASS="programlisting"
3656 >&#13;   # <SPAN
3657 CLASS="bold"
3658 ><B
3659 CLASS="emphasis"
3660 >bos start</B
3661 ></SPAN
3662 > &#60;<VAR
3663 CLASS="replaceable"
3664 >machine name</VAR
3665 >&#62; <SPAN
3666 CLASS="bold"
3667 ><B
3668 CLASS="emphasis"
3669 >-instance</B
3670 ></SPAN
3671 > &#60;<VAR
3672 CLASS="replaceable"
3673 >server process name</VAR
3674 >&#62;+ <SPAN
3675 CLASS="bold"
3676 ><B
3677 CLASS="emphasis"
3678 >-localauth</B
3679 ></SPAN
3680 >
3681 </PRE
3682 ></P
3683 ></LI
3684 ></OL
3685 ></DIV
3686 ><DIV
3687 CLASS="sect2"
3688 ><H2
3689 CLASS="sect2"
3690 ><A
3691 NAME="HDRWQ109"
3692 >To restore an administrative database</A
3693 ></H2
3694 ><OL
3695 TYPE="1"
3696 ><LI
3697 ><P
3698 >Log in as the local superuser <SPAN
3699 CLASS="bold"
3700 ><B
3701 CLASS="emphasis"
3702 >root</B
3703 ></SPAN
3704 > on each database server machine in the
3705           cell.</P
3706 ></LI
3707 ><LI
3708 ><P
3709 ><A
3710 NAME="LIDBREST_SHUTDOWN"
3711 ></A
3712 >Working on one of the machines, issue the <SPAN
3713 CLASS="bold"
3714 ><B
3715 CLASS="emphasis"
3716 >bos
3717           shutdown</B
3718 ></SPAN
3719 > command once for each database server machine, to shut down the relevant server process on all of
3720           them. For a complete description of the command, see <A
3721 HREF="c6449.html#HDRWQ168"
3722 >To stop processes temporarily</A
3723 >.</P
3724 ><P
3725 >For the <SPAN
3726 CLASS="bold"
3727 ><B
3728 CLASS="emphasis"
3729 >-instance</B
3730 ></SPAN
3731 > argument, specify one or more database server process names
3732           (<SPAN
3733 CLASS="bold"
3734 ><B
3735 CLASS="emphasis"
3736 >buserver</B
3737 ></SPAN
3738 > for the Backup Server, <SPAN
3739 CLASS="bold"
3740 ><B
3741 CLASS="emphasis"
3742 >kaserver</B
3743 ></SPAN
3744 > for the
3745           Authentication Server, <SPAN
3746 CLASS="bold"
3747 ><B
3748 CLASS="emphasis"
3749 >ptserver</B
3750 ></SPAN
3751 > for the Protection Server, or <SPAN
3752 CLASS="bold"
3753 ><B
3754 CLASS="emphasis"
3755 >vlserver</B
3756 ></SPAN
3757 > for the Volume Location Server. Include the <SPAN
3758 CLASS="bold"
3759 ><B
3760 CLASS="emphasis"
3761 >-localauth</B
3762 ></SPAN
3763 >
3764           flag because you are logged in as the local superuser <SPAN
3765 CLASS="bold"
3766 ><B
3767 CLASS="emphasis"
3768 >root</B
3769 ></SPAN
3770 > but do not necessarily have
3771           administrative tokens.</P
3772 ><PRE
3773 CLASS="programlisting"
3774 >&#13;   # <SPAN
3775 CLASS="bold"
3776 ><B
3777 CLASS="emphasis"
3778 >bos shutdown</B
3779 ></SPAN
3780 > &#60;<VAR
3781 CLASS="replaceable"
3782 >machine name</VAR
3783 >&#62; <SPAN
3784 CLASS="bold"
3785 ><B
3786 CLASS="emphasis"
3787 >-instance</B
3788 ></SPAN
3789 > &#60;<VAR
3790 CLASS="replaceable"
3791 >instances</VAR
3792 >&#62;+ <SPAN
3793 CLASS="bold"
3794 ><B
3795 CLASS="emphasis"
3796 >-localauth</B
3797 ></SPAN
3798 > [<SPAN
3799 CLASS="bold"
3800 ><B
3801 CLASS="emphasis"
3802 >-wait</B
3803 ></SPAN
3804 >]
3805 </PRE
3806 ></LI
3807 ><LI
3808 ><P
3809 >Remove the database from each database server machine, by issuing the following commands on each one.
3810           <PRE
3811 CLASS="programlisting"
3812 >&#13;   # <SPAN
3813 CLASS="bold"
3814 ><B
3815 CLASS="emphasis"
3816 >cd /usr/afs/db</B
3817 ></SPAN
3818 >
3819 </PRE
3820 ></P
3821 ><P
3822 >For the Backup Database:</P
3823 ><PRE
3824 CLASS="programlisting"
3825 >&#13;   # <SPAN
3826 CLASS="bold"
3827 ><B
3828 CLASS="emphasis"
3829 >rm bdb.DB0</B
3830 ></SPAN
3831 >
3832    # <SPAN
3833 CLASS="bold"
3834 ><B
3835 CLASS="emphasis"
3836 >rm bdb.DBSYS1</B
3837 ></SPAN
3838 >
3839 </PRE
3840 ><P
3841 >For the Authentication Database:</P
3842 ><PRE
3843 CLASS="programlisting"
3844 >&#13;   # <SPAN
3845 CLASS="bold"
3846 ><B
3847 CLASS="emphasis"
3848 >rm kaserver.DB0</B
3849 ></SPAN
3850 >
3851    # <SPAN
3852 CLASS="bold"
3853 ><B
3854 CLASS="emphasis"
3855 >rm kaserver.DBSYS1</B
3856 ></SPAN
3857 >
3858 </PRE
3859 ><P
3860 >For the Protection Database:</P
3861 ><PRE
3862 CLASS="programlisting"
3863 >&#13;   # <SPAN
3864 CLASS="bold"
3865 ><B
3866 CLASS="emphasis"
3867 >rm prdb.DB0</B
3868 ></SPAN
3869 >
3870    # <SPAN
3871 CLASS="bold"
3872 ><B
3873 CLASS="emphasis"
3874 >rm prdb.DBSYS1</B
3875 ></SPAN
3876 >
3877 </PRE
3878 ><P
3879 >For the VLDB:</P
3880 ><PRE
3881 CLASS="programlisting"
3882 >&#13;   # <SPAN
3883 CLASS="bold"
3884 ><B
3885 CLASS="emphasis"
3886 >rm vldb.DB0</B
3887 ></SPAN
3888 >
3889    # <SPAN
3890 CLASS="bold"
3891 ><B
3892 CLASS="emphasis"
3893 >rm vldb.DBSYS1</B
3894 ></SPAN
3895 >
3896 </PRE
3897 ></LI
3898 ><LI
3899 ><P
3900 >Using the local disk backup utility that you used to back up the database, copy the most recently backed-up version
3901           of it to the appropriate file on the database server machine with the lowest IP address. The following is an appropriate
3902           <SPAN
3903 CLASS="bold"
3904 ><B
3905 CLASS="emphasis"
3906 >tar</B
3907 ></SPAN
3908 > command if the synchronization site has a tape device attached: <PRE
3909 CLASS="programlisting"
3910 >&#13;   # <SPAN
3911 CLASS="bold"
3912 ><B
3913 CLASS="emphasis"
3914 >cd /usr/afs/db</B
3915 ></SPAN
3916 >
3917    # <SPAN
3918 CLASS="bold"
3919 ><B
3920 CLASS="emphasis"
3921 >tar xvf</B
3922 ></SPAN
3923 > tape_device  database_file
3924 </PRE
3925 ></P
3926 ><P
3927 >where <SPAN
3928 CLASS="emphasis"
3929 ><I
3930 CLASS="emphasis"
3931 >database_file</I
3932 ></SPAN
3933 > is one of the following: <UL
3934 ><LI
3935 ><P
3936 ><SPAN
3937 CLASS="bold"
3938 ><B
3939 CLASS="emphasis"
3940 >bdb.DB0</B
3941 ></SPAN
3942 > for the Backup Database</P
3943 ></LI
3944 ><LI
3945 ><P
3946 ><SPAN
3947 CLASS="bold"
3948 ><B
3949 CLASS="emphasis"
3950 >kaserver.DB0</B
3951 ></SPAN
3952 > for the Authentication Database</P
3953 ></LI
3954 ><LI
3955 ><P
3956 ><SPAN
3957 CLASS="bold"
3958 ><B
3959 CLASS="emphasis"
3960 >prdb.DB0</B
3961 ></SPAN
3962 > for the Protection Database</P
3963 ></LI
3964 ><LI
3965 ><P
3966 ><SPAN
3967 CLASS="bold"
3968 ><B
3969 CLASS="emphasis"
3970 >vldb.DB0</B
3971 ></SPAN
3972 > for the VLDB</P
3973 ></LI
3974 ></UL
3975 ></P
3976 ></LI
3977 ><LI
3978 ><P
3979 >Working on one of the machines, issue the <SPAN
3980 CLASS="bold"
3981 ><B
3982 CLASS="emphasis"
3983 >bos start</B
3984 ></SPAN
3985 > command to restart the server
3986           process on each of the database server machines in turn. Start with the machine with the lowest IP address, which becomes
3987           the synchronization site for the Backup Database. Wait for it to establish itself as the synchronization site before
3988           repeating the command to restart the process on the other database server machines. For a complete description of the
3989           command, see <A
3990 HREF="c6449.html#HDRWQ166"
3991 >To start processes by changing their status flags to Run</A
3992 >. Provide the same
3993           values for the <SPAN
3994 CLASS="bold"
3995 ><B
3996 CLASS="emphasis"
3997 >-instance</B
3998 ></SPAN
3999 > argument as in Step <A
4000 HREF="c3025.html#LIDBREST_SHUTDOWN"
4001 >2</A
4002 >,
4003           and the <SPAN
4004 CLASS="bold"
4005 ><B
4006 CLASS="emphasis"
4007 >-localauth</B
4008 ></SPAN
4009 > flag for the same reason. <PRE
4010 CLASS="programlisting"
4011 >&#13;   # <SPAN
4012 CLASS="bold"
4013 ><B
4014 CLASS="emphasis"
4015 >bos start</B
4016 ></SPAN
4017 > &#60;<VAR
4018 CLASS="replaceable"
4019 >machine name</VAR
4020 >&#62; <SPAN
4021 CLASS="bold"
4022 ><B
4023 CLASS="emphasis"
4024 >-instance</B
4025 ></SPAN
4026 >  &#60;<VAR
4027 CLASS="replaceable"
4028 >server process name</VAR
4029 >&#62;+  <SPAN
4030 CLASS="bold"
4031 ><B
4032 CLASS="emphasis"
4033 >-localauth</B
4034 ></SPAN
4035 >
4036 </PRE
4037 ></P
4038 ></LI
4039 ><LI
4040 ><P
4041 >If the database has changed since you last backed it up, issue the appropriate commands from the instructions in the
4042           indicated sections to recreate the information in the restored database. If issuing <SPAN
4043 CLASS="bold"
4044 ><B
4045 CLASS="emphasis"
4046 >pts</B
4047 ></SPAN
4048 >
4049           commands, you must first obtain administrative tokens. The <SPAN
4050 CLASS="bold"
4051 ><B
4052 CLASS="emphasis"
4053 >backup</B
4054 ></SPAN
4055 > and <SPAN
4056 CLASS="bold"
4057 ><B
4058 CLASS="emphasis"
4059 >vos</B
4060 ></SPAN
4061 > commands accept the <SPAN
4062 CLASS="bold"
4063 ><B
4064 CLASS="emphasis"
4065 >-localauth</B
4066 ></SPAN
4067 > flag if you are logged in as
4068           the local superuser <SPAN
4069 CLASS="bold"
4070 ><B
4071 CLASS="emphasis"
4072 >root</B
4073 ></SPAN
4074 >, so you do not need administrative tokens. The Authentication
4075           Server always performs a separate authentication anyway, so you only need to include the <SPAN
4076 CLASS="bold"
4077 ><B
4078 CLASS="emphasis"
4079 >-admin</B
4080 ></SPAN
4081 > argument if issuing <SPAN
4082 CLASS="bold"
4083 ><B
4084 CLASS="emphasis"
4085 >kas</B
4086 ></SPAN
4087 > commands. <UL
4088 ><LI
4089 ><P
4090 >To define or remove volume sets and volume entries in the Backup Database, see <A
4091 HREF="c12776.html#HDRWQ265"
4092 >Defining and Displaying Volume Sets and Volume Entries</A
4093 >.</P
4094 ></LI
4095 ><LI
4096 ><P
4097 >To edit the dump hierarchy in the Backup Database, see <A
4098 HREF="c12776.html#HDRWQ267"
4099 >Defining and Displaying the
4100                 Dump Hierarchy</A
4101 >.</P
4102 ></LI
4103 ><LI
4104 ><P
4105 >To define or remove Tape Coordinator port offset entries in the Backup Database, see <A
4106 HREF="c12776.html#HDRWQ261"
4107 >Configuring Tape Coordinator Machines and Tape Devices</A
4108 >.</P
4109 ></LI
4110 ><LI
4111 ><P
4112 >To restore dump records in the Backup Database, see <A
4113 HREF="c15383.html#HDRWQ305"
4114 >To scan the contents of a
4115                 tape</A
4116 >.</P
4117 ></LI
4118 ><LI
4119 ><P
4120 >To recreate Authentication Database entries or password changes for users, see the appropriate section of
4121                 <A
4122 HREF="c27596.html"
4123 >Administering User Accounts</A
4124 >.</P
4125 ></LI
4126 ><LI
4127 ><P
4128 >To recreate Protection Database entries or group membership information, see the appropriate section of <A
4129 HREF="c29323.html"
4130 >Administering the Protection Database</A
4131 >.</P
4132 ></LI
4133 ><LI
4134 ><P
4135 >To synchronize the VLDB with volume headers, see <A
4136 HREF="c8420.html#HDRWQ227"
4137 >Synchronizing the VLDB and Volume
4138                 Headers</A
4139 >.</P
4140 ></LI
4141 ></UL
4142 ></P
4143 ></LI
4144 ></OL
4145 ></DIV
4146 ></DIV
4147 ><DIV
4148 CLASS="sect1"
4149 ><H1
4150 CLASS="sect1"
4151 ><A
4152 NAME="HDRWQ110"
4153 >Installing Server Process Software</A
4154 ></H1
4155 ><P
4156 >This section explains how to install new server process binaries on file server machines, how to revert to a previous
4157     version if the current version is not working properly, and how to install new disks to house AFS volumes on a file server
4158     machine.</P
4159 ><P
4160 >The most frequent reason to replace a server process's binaries is to upgrade AFS to a new version. In general,
4161     installation instructions accompany the updated software, but this chapter provides an additional reference.</P
4162 ><P
4163 >Each AFS server machine must store the server process binaries in a local disk directory, called <SPAN
4164 CLASS="bold"
4165 ><B
4166 CLASS="emphasis"
4167 >/usr/afs/bin</B
4168 ></SPAN
4169 > by convention. For predictable system performance, it is best that all server machines run
4170     the same build level, or at least the same version, of the server software. For instructions on checking AFS build level, see
4171     <A
4172 HREF="c3025.html#HDRWQ117"
4173 >Displaying A Binary File's Build Level</A
4174 >.</P
4175 ><P
4176 >The Update Server makes it easy to distribute a consistent version of software to all server machines. You designate one
4177     server machine of each system type as the <SPAN
4178 CLASS="emphasis"
4179 ><I
4180 CLASS="emphasis"
4181 >binary distribution machine</I
4182 ></SPAN
4183 > by running the server portion of the
4184     Update Server (<SPAN
4185 CLASS="bold"
4186 ><B
4187 CLASS="emphasis"
4188 >upserver</B
4189 ></SPAN
4190 > process) on it. All other server machines of that system type run the
4191     client portion of the Update Server (<SPAN
4192 CLASS="bold"
4193 ><B
4194 CLASS="emphasis"
4195 >upclientbin</B
4196 ></SPAN
4197 > process) to retrieve updated software from the
4198     binary distribution machine. The <SPAN
4199 CLASS="emphasis"
4200 ><I
4201 CLASS="emphasis"
4202 >IBM AFS Quick Beginnings</I
4203 ></SPAN
4204 > explains how to install the appropriate
4205     processes. For more on binary distribution machines, see <A
4206 HREF="c3025.html#HDRWQ93"
4207 >Binary Distribution Machines</A
4208 >.</P
4209 ><P
4210 >When you use the Update Server, you install new binaries on binary distribution machines only. If you install binaries
4211     directly on a machine that is running the <SPAN
4212 CLASS="bold"
4213 ><B
4214 CLASS="emphasis"
4215 >upclientbin</B
4216 ></SPAN
4217 > process, they are overwritten the next
4218     time the process compares the contents of the local <SPAN
4219 CLASS="bold"
4220 ><B
4221 CLASS="emphasis"
4222 >/usr/afs/bin</B
4223 ></SPAN
4224 > directory to the contents on
4225     the system control machine, by default within five minutes.</P
4226 ><P
4227 >The following instructions explain how to use the appropriate commands from the <SPAN
4228 CLASS="bold"
4229 ><B
4230 CLASS="emphasis"
4231 >bos</B
4232 ></SPAN
4233 > suite
4234     to install and uninstall server binaries.</P
4235 ><DIV
4236 CLASS="sect2"
4237 ><H2
4238 CLASS="sect2"
4239 ><A
4240 NAME="HDRWQ111"
4241 >Installing New Binaries</A
4242 ></H2
4243 ><P
4244 >An AFS server process does not automatically switch to a new process binary file as soon as it is installed in the
4245       <SPAN
4246 CLASS="bold"
4247 ><B
4248 CLASS="emphasis"
4249 >/usr/afs/bin</B
4250 ></SPAN
4251 > directory. The process continues to use the previous version of the binary file
4252       until it (the process) next restarts. By default, the BOS Server restarts processes for which there are new binary files every
4253       day at 5:00 a.m., as specified in the <SPAN
4254 CLASS="bold"
4255 ><B
4256 CLASS="emphasis"
4257 >/usr/afs/local/BosConfig</B
4258 ></SPAN
4259 > file. To display or change
4260       this <SPAN
4261 CLASS="emphasis"
4262 ><I
4263 CLASS="emphasis"
4264 >binary restart time</I
4265 ></SPAN
4266 >, use the <SPAN
4267 CLASS="bold"
4268 ><B
4269 CLASS="emphasis"
4270 >bos getrestart</B
4271 ></SPAN
4272 > and <SPAN
4273 CLASS="bold"
4274 ><B
4275 CLASS="emphasis"
4276 >bos setrestart</B
4277 ></SPAN
4278 > commands, as described in <A
4279 HREF="c6449.html#HDRWQ171"
4280 >Setting the BOS Server's Restart
4281       Times</A
4282 >.</P
4283 ><P
4284 >You can force the server machine to start using new server process binaries immediately by issuing the <SPAN
4285 CLASS="bold"
4286 ><B
4287 CLASS="emphasis"
4288 >bos restart</B
4289 ></SPAN
4290 > command as described in the following instructions.</P
4291 ><P
4292 >You do not need to restart processes when you install new command suite binaries. The new binary is invoked
4293       automatically the next time a command from the suite is issued.</P
4294 ><P
4295 >When you use the <SPAN
4296 CLASS="bold"
4297 ><B
4298 CLASS="emphasis"
4299 >bos install</B
4300 ></SPAN
4301 > command, the BOS Server automatically saves the current
4302       version of a binary file by adding a <SPAN
4303 CLASS="bold"
4304 ><B
4305 CLASS="emphasis"
4306 >.BAK</B
4307 ></SPAN
4308 > extension to its name. It renames the current
4309       <SPAN
4310 CLASS="bold"
4311 ><B
4312 CLASS="emphasis"
4313 >.BAK</B
4314 ></SPAN
4315 > version, if any, to the <SPAN
4316 CLASS="bold"
4317 ><B
4318 CLASS="emphasis"
4319 >.OLD</B
4320 ></SPAN
4321 > version, if there is no
4322       <SPAN
4323 CLASS="bold"
4324 ><B
4325 CLASS="emphasis"
4326 >.OLD</B
4327 ></SPAN
4328 > version already. If there is a current <SPAN
4329 CLASS="bold"
4330 ><B
4331 CLASS="emphasis"
4332 >.OLD</B
4333 ></SPAN
4334 > version,
4335       the current <SPAN
4336 CLASS="bold"
4337 ><B
4338 CLASS="emphasis"
4339 >.BAK</B
4340 ></SPAN
4341 > version must be at least seven days old to replace it.</P
4342 ><P
4343 >It is best to store AFS binaries in the <SPAN
4344 CLASS="bold"
4345 ><B
4346 CLASS="emphasis"
4347 >/usr/afs/bin</B
4348 ></SPAN
4349 > directory, because that is the
4350       only directory the BOS Server automatically checks for new binaries. You can, however, use the <SPAN
4351 CLASS="bold"
4352 ><B
4353 CLASS="emphasis"
4354 >bos
4355       install</B
4356 ></SPAN
4357 > command's <SPAN
4358 CLASS="bold"
4359 ><B
4360 CLASS="emphasis"
4361 >-dir</B
4362 ></SPAN
4363 > argument to install non-AFS binaries into other directories
4364       on a server machine's local disk. See the command's reference page in the <SPAN
4365 CLASS="emphasis"
4366 ><I
4367 CLASS="emphasis"
4368 >IBM AFS Administration
4369       Reference</I
4370 ></SPAN
4371 > for further information.</P
4372 ></DIV
4373 ><DIV
4374 CLASS="sect2"
4375 ><H2
4376 CLASS="sect2"
4377 ><A
4378 NAME="Header_130"
4379 >To install new server binaries</A
4380 ></H2
4381 ><OL
4382 TYPE="1"
4383 ><LI
4384 ><P
4385 >Verify that you are listed in the <SPAN
4386 CLASS="bold"
4387 ><B
4388 CLASS="emphasis"
4389 >/usr/afs/etc/UserList</B
4390 ></SPAN
4391 > file. If necessary, issue
4392           the <SPAN
4393 CLASS="bold"
4394 ><B
4395 CLASS="emphasis"
4396 >bos listusers</B
4397 ></SPAN
4398 > command, which is fully described in <A
4399 HREF="c32432.html#HDRWQ593"
4400 >To
4401           display the users in the UserList file</A
4402 >. <PRE
4403 CLASS="programlisting"
4404 >&#13;   % <SPAN
4405 CLASS="bold"
4406 ><B
4407 CLASS="emphasis"
4408 >bos listusers</B
4409 ></SPAN
4410 > &#60;<VAR
4411 CLASS="replaceable"
4412 >machine name</VAR
4413 >&#62;
4414 </PRE
4415 ></P
4416 ></LI
4417 ><LI
4418 ><P
4419 >Verify that the binaries are available in the source directory from which you are installing them. If the machine is
4420           also an AFS client, you can retrieve the binaries from a central directory in AFS. Otherwise, you can obtain them directly
4421           from the AFS distribution media, from a local disk directory where you previously installed them, or from a remote machine
4422           using a transfer utility such as the <SPAN
4423 CLASS="bold"
4424 ><B
4425 CLASS="emphasis"
4426 >ftp</B
4427 ></SPAN
4428 > command.</P
4429 ></LI
4430 ><LI
4431 ><P
4432 ><A
4433 NAME="LIWQ112"
4434 ></A
4435 >Issue the <SPAN
4436 CLASS="bold"
4437 ><B
4438 CLASS="emphasis"
4439 >bos install</B
4440 ></SPAN
4441 > command for the binary distribution
4442           machine. (If you have forgotten which machine is performing that role, see <A
4443 HREF="c3025.html#HDRWQ97"
4444 >To locate the binary
4445           distribution machine for a system type</A
4446 >.) <PRE
4447 CLASS="programlisting"
4448 >&#13;   % <SPAN
4449 CLASS="bold"
4450 ><B
4451 CLASS="emphasis"
4452 >bos install</B
4453 ></SPAN
4454 > &#60;<VAR
4455 CLASS="replaceable"
4456 >machine name</VAR
4457 >&#62; &#60;<VAR
4458 CLASS="replaceable"
4459 >files to install</VAR
4460 >&#62;+
4461 </PRE
4462 ></P
4463 ><P
4464 >where <DIV
4465 CLASS="variablelist"
4466 ><DL
4467 ><DT
4468 ><SPAN
4469 CLASS="bold"
4470 ><B
4471 CLASS="emphasis"
4472 >i</B
4473 ></SPAN
4474 ></DT
4475 ><DD
4476 ><P
4477 >Is the shortest acceptable abbreviation of <SPAN
4478 CLASS="bold"
4479 ><B
4480 CLASS="emphasis"
4481 >install</B
4482 ></SPAN
4483 >.</P
4484 ></DD
4485 ><DT
4486 ><SPAN
4487 CLASS="bold"
4488 ><B
4489 CLASS="emphasis"
4490 >machine name</B
4491 ></SPAN
4492 ></DT
4493 ><DD
4494 ><P
4495 >Names the binary distribution machine.</P
4496 ></DD
4497 ><DT
4498 ><SPAN
4499 CLASS="bold"
4500 ><B
4501 CLASS="emphasis"
4502 >files to install</B
4503 ></SPAN
4504 ></DT
4505 ><DD
4506 ><P
4507 >Names each binary file to install into the local <SPAN
4508 CLASS="bold"
4509 ><B
4510 CLASS="emphasis"
4511 >/usr/afs/bin</B
4512 ></SPAN
4513 > directory.
4514                   Partial pathnames are interpreted relative to the current working directory. The last element in each pathname
4515                   (the filename itself) matches the name of the file it is replacing, such as <SPAN
4516 CLASS="bold"
4517 ><B
4518 CLASS="emphasis"
4519 >bosserver</B
4520 ></SPAN
4521 > or <SPAN
4522 CLASS="bold"
4523 ><B
4524 CLASS="emphasis"
4525 >volserver</B
4526 ></SPAN
4527 > for server processes, <SPAN
4528 CLASS="bold"
4529 ><B
4530 CLASS="emphasis"
4531 >bos</B
4532 ></SPAN
4533 > or <SPAN
4534 CLASS="bold"
4535 ><B
4536 CLASS="emphasis"
4537 >vos</B
4538 ></SPAN
4539 > for commands.</P
4540 ><P
4541 >Each AFS server process other than the <SPAN
4542 CLASS="bold"
4543 ><B
4544 CLASS="emphasis"
4545 >fs</B
4546 ></SPAN
4547 > process uses a single binary
4548                   file. The <SPAN
4549 CLASS="bold"
4550 ><B
4551 CLASS="emphasis"
4552 >fs</B
4553 ></SPAN
4554 > process uses three binary files: <SPAN
4555 CLASS="bold"
4556 ><B
4557 CLASS="emphasis"
4558 >fileserver</B
4559 ></SPAN
4560 >, <SPAN
4561 CLASS="bold"
4562 ><B
4563 CLASS="emphasis"
4564 >volserver</B
4565 ></SPAN
4566 >, and <SPAN
4567 CLASS="bold"
4568 ><B
4569 CLASS="emphasis"
4570 >salvager</B
4571 ></SPAN
4572 >. Installing a new version of one component does not necessarily mean that you need
4573                   to replace all three.</P
4574 ></DD
4575 ></DL
4576 ></DIV
4577 ></P
4578 ></LI
4579 ><LI
4580 ><P
4581 >Repeat Step <A
4582 HREF="c3025.html#LIWQ112"
4583 >3</A
4584 > for each binary distribution machine.</P
4585 ></LI
4586 ><LI
4587 ><P
4588 ><SPAN
4589 CLASS="bold"
4590 ><B
4591 CLASS="emphasis"
4592 >(Optional)</B
4593 ></SPAN
4594 > If you want to restart processes to use the new binaries immediately,
4595           wait until the <SPAN
4596 CLASS="bold"
4597 ><B
4598 CLASS="emphasis"
4599 >upclientbin</B
4600 ></SPAN
4601 > process retrieves them from the binary distribution machine.
4602           You can verify the timestamps on binary files by using the <SPAN
4603 CLASS="bold"
4604 ><B
4605 CLASS="emphasis"
4606 >bos getdate</B
4607 ></SPAN
4608 > command as
4609           described in <A
4610 HREF="c3025.html#HDRWQ115"
4611 >Displaying Binary Version Dates</A
4612 >. When the binary files are available on each
4613           server machine, issue the <SPAN
4614 CLASS="bold"
4615 ><B
4616 CLASS="emphasis"
4617 >bos restart</B
4618 ></SPAN
4619 > command, for which complete instructions appear in
4620           <A
4621 HREF="c6449.html#HDRWQ170"
4622 >Stopping and Immediately Restarting Processes</A
4623 >.</P
4624 ><P
4625 >If you are working on an AFS client machine, it is a wise precaution to have a copy of the <SPAN
4626 CLASS="bold"
4627 ><B
4628 CLASS="emphasis"
4629 >bos</B
4630 ></SPAN
4631 > command suite binaries on the local disk before restarting server processes. In the
4632           conventional configuration, the <SPAN
4633 CLASS="bold"
4634 ><B
4635 CLASS="emphasis"
4636 >/usr/afsws/bin</B
4637 ></SPAN
4638 > directory that houses the <SPAN
4639 CLASS="bold"
4640 ><B
4641 CLASS="emphasis"
4642 >bos</B
4643 ></SPAN
4644 > command binary on client machines is a symbolic link into AFS, which conserves local disk
4645           space. However, restarting certain processes (particularly the database server processes) can make the AFS filespace
4646           inaccessible, particularly if a problem arises during the restart. Having a local copy of the <SPAN
4647 CLASS="bold"
4648 ><B
4649 CLASS="emphasis"
4650 >bos</B
4651 ></SPAN
4652 > binary enables you to uninstall or reinstall process binaries or restart processes even in this
4653           case. Use the <SPAN
4654 CLASS="bold"
4655 ><B
4656 CLASS="emphasis"
4657 >cp</B
4658 ></SPAN
4659 > command to copy the <SPAN
4660 CLASS="bold"
4661 ><B
4662 CLASS="emphasis"
4663 >bos</B
4664 ></SPAN
4665 > command binary
4666           from the <SPAN
4667 CLASS="bold"
4668 ><B
4669 CLASS="emphasis"
4670 >/usr/afsws/bin</B
4671 ></SPAN
4672 > directory to a local directory such as <SPAN
4673 CLASS="bold"
4674 ><B
4675 CLASS="emphasis"
4676 >/tmp</B
4677 ></SPAN
4678 >.</P
4679 ><P
4680 >Restarting a process causes a service outage. It is best to perform the restart at times of low system usage if
4681           possible.</P
4682 ><PRE
4683 CLASS="programlisting"
4684 >&#13;   % <SPAN
4685 CLASS="bold"
4686 ><B
4687 CLASS="emphasis"
4688 >bos restart</B
4689 ></SPAN
4690 > &#60;<VAR
4691 CLASS="replaceable"
4692 >machine name</VAR
4693 >&#62; &#60;<VAR
4694 CLASS="replaceable"
4695 >instances</VAR
4696 >&#62;+
4697 </PRE
4698 ></LI
4699 ></OL
4700 ></DIV
4701 ><DIV
4702 CLASS="sect2"
4703 ><H2
4704 CLASS="sect2"
4705 ><A
4706 NAME="HDRWQ113"
4707 >Reverting to the Previous Version of Binaries</A
4708 ></H2
4709 ><P
4710 >In rare cases, installing a new binary can cause problems serious enough to require reverting to the previous version.
4711       Just as with installing binaries, consistent system performance requires reverting every server machine back to the same
4712       version. Issue the <SPAN
4713 CLASS="bold"
4714 ><B
4715 CLASS="emphasis"
4716 >bos uninstall</B
4717 ></SPAN
4718 > command described here on each binary distribution
4719       machine.</P
4720 ><P
4721 >When you use the <SPAN
4722 CLASS="bold"
4723 ><B
4724 CLASS="emphasis"
4725 >bos uninstall</B
4726 ></SPAN
4727 > command, the BOS Server discards the current version of
4728       a binary file and promotes the <SPAN
4729 CLASS="bold"
4730 ><B
4731 CLASS="emphasis"
4732 >.BAK</B
4733 ></SPAN
4734 > version of the file by removing the extension. It renames
4735       the current <SPAN
4736 CLASS="bold"
4737 ><B
4738 CLASS="emphasis"
4739 >.OLD</B
4740 ></SPAN
4741 > version, if any, to <SPAN
4742 CLASS="bold"
4743 ><B
4744 CLASS="emphasis"
4745 >.BAK</B
4746 ></SPAN
4747 >.</P
4748 ><P
4749 >If there is no current <SPAN
4750 CLASS="bold"
4751 ><B
4752 CLASS="emphasis"
4753 >.BAK</B
4754 ></SPAN
4755 > version, the <SPAN
4756 CLASS="bold"
4757 ><B
4758 CLASS="emphasis"
4759 >bos uninstall</B
4760 ></SPAN
4761 >
4762       command operation fails and generates an error message. If a <SPAN
4763 CLASS="bold"
4764 ><B
4765 CLASS="emphasis"
4766 >.OLD</B
4767 ></SPAN
4768 > version still exists, issue
4769       the <SPAN
4770 CLASS="bold"
4771 ><B
4772 CLASS="emphasis"
4773 >mv</B
4774 ></SPAN
4775 > command to rename it to <SPAN
4776 CLASS="bold"
4777 ><B
4778 CLASS="emphasis"
4779 >.BAK</B
4780 ></SPAN
4781 > before reissuing the
4782       <SPAN
4783 CLASS="bold"
4784 ><B
4785 CLASS="emphasis"
4786 >bos uninstall</B
4787 ></SPAN
4788 > command.</P
4789 ><P
4790 >Just as when you install new binaries, the server processes do not start using a reverted version immediately.
4791       Presumably you are reverting because the current binaries do not work, so the following instructions have you restart the
4792       relevant processes.</P
4793 ></DIV
4794 ><DIV
4795 CLASS="sect2"
4796 ><H2
4797 CLASS="sect2"
4798 ><A
4799 NAME="Header_132"
4800 >To revert to the previous version of binaries</A
4801 ></H2
4802 ><OL
4803 TYPE="1"
4804 ><LI
4805 ><P
4806 >Verify that you are listed in the <SPAN
4807 CLASS="bold"
4808 ><B
4809 CLASS="emphasis"
4810 >/usr/afs/etc/UserList</B
4811 ></SPAN
4812 > file. If necessary, issue
4813           the <SPAN
4814 CLASS="bold"
4815 ><B
4816 CLASS="emphasis"
4817 >bos listusers</B
4818 ></SPAN
4819 > command, which is fully described in <A
4820 HREF="c32432.html#HDRWQ593"
4821 >To
4822           display the users in the UserList file</A
4823 >. <PRE
4824 CLASS="programlisting"
4825 >&#13;   % <SPAN
4826 CLASS="bold"
4827 ><B
4828 CLASS="emphasis"
4829 >bos listusers</B
4830 ></SPAN
4831 > &#60;<VAR
4832 CLASS="replaceable"
4833 >machine name</VAR
4834 >&#62;
4835 </PRE
4836 ></P
4837 ></LI
4838 ><LI
4839 ><P
4840 >Verify that the <SPAN
4841 CLASS="bold"
4842 ><B
4843 CLASS="emphasis"
4844 >.BAK</B
4845 ></SPAN
4846 > version of each relevant binary is available in the <SPAN
4847 CLASS="bold"
4848 ><B
4849 CLASS="emphasis"
4850 >/usr/afs/bin</B
4851 ></SPAN
4852 > directory on each binary distribution machine. If necessary, you can use the <SPAN
4853 CLASS="bold"
4854 ><B
4855 CLASS="emphasis"
4856 >bos getdate</B
4857 ></SPAN
4858 > command as described in <A
4859 HREF="c3025.html#HDRWQ115"
4860 >Displaying Binary Version
4861           Dates</A
4862 >. If necessary, rename the <SPAN
4863 CLASS="bold"
4864 ><B
4865 CLASS="emphasis"
4866 >.OLD</B
4867 ></SPAN
4868 > version to <SPAN
4869 CLASS="bold"
4870 ><B
4871 CLASS="emphasis"
4872 >.BAK</B
4873 ></SPAN
4874 ></P
4875 ></LI
4876 ><LI
4877 ><P
4878 ><A
4879 NAME="LIWQ114"
4880 ></A
4881 >Issue the <SPAN
4882 CLASS="bold"
4883 ><B
4884 CLASS="emphasis"
4885 >bos uninstall</B
4886 ></SPAN
4887 > command for a binary distribution
4888           machine. (If you have forgotten which machine is performing that role, see <A
4889 HREF="c3025.html#HDRWQ97"
4890 >To locate the binary
4891           distribution machine for a system type</A
4892 >.) <PRE
4893 CLASS="programlisting"
4894 >&#13;   % <SPAN
4895 CLASS="bold"
4896 ><B
4897 CLASS="emphasis"
4898 >bos uninstall</B
4899 ></SPAN
4900 > &#60;<VAR
4901 CLASS="replaceable"
4902 >machine name</VAR
4903 >&#62; &#60;<VAR
4904 CLASS="replaceable"
4905 >files to uninstall</VAR
4906 >&#62;+
4907 </PRE
4908 ></P
4909 ><P
4910 >where <DIV
4911 CLASS="variablelist"
4912 ><DL
4913 ><DT
4914 ><SPAN
4915 CLASS="bold"
4916 ><B
4917 CLASS="emphasis"
4918 >u</B
4919 ></SPAN
4920 ></DT
4921 ><DD
4922 ><P
4923 >Is the shortest acceptable abbreviation of <SPAN
4924 CLASS="bold"
4925 ><B
4926 CLASS="emphasis"
4927 >uninstall</B
4928 ></SPAN
4929 >.</P
4930 ></DD
4931 ><DT
4932 ><SPAN
4933 CLASS="bold"
4934 ><B
4935 CLASS="emphasis"
4936 >machine name</B
4937 ></SPAN
4938 ></DT
4939 ><DD
4940 ><P
4941 >Names the binary distribution machine.</P
4942 ></DD
4943 ><DT
4944 ><SPAN
4945 CLASS="bold"
4946 ><B
4947 CLASS="emphasis"
4948 >files to uninstall</B
4949 ></SPAN
4950 ></DT
4951 ><DD
4952 ><P
4953 >Names each binary file in the <SPAN
4954 CLASS="bold"
4955 ><B
4956 CLASS="emphasis"
4957 >/usr/afs/bin</B
4958 ></SPAN
4959 > directory to replace with its
4960                   <SPAN
4961 CLASS="bold"
4962 ><B
4963 CLASS="emphasis"
4964 >.BAK</B
4965 ></SPAN
4966 > version. The file name alone is sufficient, because the <SPAN
4967 CLASS="bold"
4968 ><B
4969 CLASS="emphasis"
4970 >/usr/afs/bin</B
4971 ></SPAN
4972 > directory is assumed.</P
4973 ></DD
4974 ></DL
4975 ></DIV
4976 ></P
4977 ></LI
4978 ><LI
4979 ><P
4980 >Repeat Step <A
4981 HREF="c3025.html#LIWQ114"
4982 >3</A
4983 > for each binary distribution machine.</P
4984 ></LI
4985 ><LI
4986 ><P
4987 >Wait until the <SPAN
4988 CLASS="bold"
4989 ><B
4990 CLASS="emphasis"
4991 >upclientbin</B
4992 ></SPAN
4993 > process on each server machine retrieves the reverted
4994           from the binary distribution machine. You can verify the timestamps on binary files by using the <SPAN
4995 CLASS="bold"
4996 ><B
4997 CLASS="emphasis"
4998 >bos
4999           getdate</B
5000 ></SPAN
5001 > command as described in <A
5002 HREF="c3025.html#HDRWQ115"
5003 >Displaying Binary Version Dates</A
5004 >. When the
5005           binary files are available on each server machine, issue the <SPAN
5006 CLASS="bold"
5007 ><B
5008 CLASS="emphasis"
5009 >bos restart</B
5010 ></SPAN
5011 > command, for
5012           which complete instructions appear in <A
5013 HREF="c6449.html#HDRWQ170"
5014 >Stopping and Immediately Restarting
5015           Processes</A
5016 >.</P
5017 ><P
5018 >If you are working on an AFS client machine, it is a wise precaution to have a copy of the <SPAN
5019 CLASS="bold"
5020 ><B
5021 CLASS="emphasis"
5022 >bos</B
5023 ></SPAN
5024 > command suite binaries on the local disk before restarting server processes. In the
5025           conventional configuration, the <SPAN
5026 CLASS="bold"
5027 ><B
5028 CLASS="emphasis"
5029 >/usr/afsws/bin</B
5030 ></SPAN
5031 > directory that houses the <SPAN
5032 CLASS="bold"
5033 ><B
5034 CLASS="emphasis"
5035 >bos</B
5036 ></SPAN
5037 > command binary on client machines is a symbolic link into AFS, which conserves local disk
5038           space. However, restarting certain processes (particularly the database server processes) can make the AFS filespace
5039           inaccessible, particularly if a problem arises during the restart. Having a local copy of the <SPAN
5040 CLASS="bold"
5041 ><B
5042 CLASS="emphasis"
5043 >bos</B
5044 ></SPAN
5045 > binary enables you to uninstall or reinstall process binaries or restart processes even in this
5046           case. Use the <SPAN
5047 CLASS="bold"
5048 ><B
5049 CLASS="emphasis"
5050 >cp</B
5051 ></SPAN
5052 > command to copy the <SPAN
5053 CLASS="bold"
5054 ><B
5055 CLASS="emphasis"
5056 >bos</B
5057 ></SPAN
5058 > command binary
5059           from the <SPAN
5060 CLASS="bold"
5061 ><B
5062 CLASS="emphasis"
5063 >/usr/afsws/bin</B
5064 ></SPAN
5065 > directory to a local directory such as <SPAN
5066 CLASS="bold"
5067 ><B
5068 CLASS="emphasis"
5069 >/tmp</B
5070 ></SPAN
5071 >.</P
5072 ><PRE
5073 CLASS="programlisting"
5074 >&#13;   % <SPAN
5075 CLASS="bold"
5076 ><B
5077 CLASS="emphasis"
5078 >bos restart</B
5079 ></SPAN
5080 > &#60;<VAR
5081 CLASS="replaceable"
5082 >machine name</VAR
5083 >&#62; &#60;<VAR
5084 CLASS="replaceable"
5085 >instances</VAR
5086 >&#62;+
5087 </PRE
5088 ></LI
5089 ></OL
5090 ></DIV
5091 ><DIV
5092 CLASS="sect2"
5093 ><H2
5094 CLASS="sect2"
5095 ><A
5096 NAME="HDRWQ115"
5097 >Displaying Binary Version Dates</A
5098 ></H2
5099 ><P
5100 >You can check the compilation dates for all three versions of a binary file in the <SPAN
5101 CLASS="bold"
5102 ><B
5103 CLASS="emphasis"
5104 >/usr/afs/bin</B
5105 ></SPAN
5106 > directory--the current, <SPAN
5107 CLASS="bold"
5108 ><B
5109 CLASS="emphasis"
5110 >.BAK</B
5111 ></SPAN
5112 > and .<SPAN
5113 CLASS="bold"
5114 ><B
5115 CLASS="emphasis"
5116 >OLD</B
5117 ></SPAN
5118 > versions. This is useful for verifying that new binaries have been copied to a file server machine
5119       from its binary distribution machine before restarting a server process to use the new binaries.</P
5120 ><P
5121 >To check dates on binaries in a directory other than <SPAN
5122 CLASS="bold"
5123 ><B
5124 CLASS="emphasis"
5125 >/usr/afs/bin</B
5126 ></SPAN
5127 >, add the <SPAN
5128 CLASS="bold"
5129 ><B
5130 CLASS="emphasis"
5131 >-dir</B
5132 ></SPAN
5133 > argument. See the <SPAN
5134 CLASS="emphasis"
5135 ><I
5136 CLASS="emphasis"
5137 >IBM AFS Administration Reference</I
5138 ></SPAN
5139 >.</P
5140 ></DIV
5141 ><DIV
5142 CLASS="sect2"
5143 ><H2
5144 CLASS="sect2"
5145 ><A
5146 NAME="Header_134"
5147 >To display binary version dates</A
5148 ></H2
5149 ><OL
5150 TYPE="1"
5151 ><LI
5152 ><P
5153 >Issue the <SPAN
5154 CLASS="bold"
5155 ><B
5156 CLASS="emphasis"
5157 >bos getdate</B
5158 ></SPAN
5159 > command. <PRE
5160 CLASS="programlisting"
5161 >&#13;   % <SPAN
5162 CLASS="bold"
5163 ><B
5164 CLASS="emphasis"
5165 >bos getdate</B
5166 ></SPAN
5167 > &#60;<VAR
5168 CLASS="replaceable"
5169 >machine name</VAR
5170 >&#62; &#60;<VAR
5171 CLASS="replaceable"
5172 >files to check</VAR
5173 >&#62;+
5174 </PRE
5175 ></P
5176 ><P
5177 >where <DIV
5178 CLASS="variablelist"
5179 ><DL
5180 ><DT
5181 ><SPAN
5182 CLASS="bold"
5183 ><B
5184 CLASS="emphasis"
5185 >getd</B
5186 ></SPAN
5187 ></DT
5188 ><DD
5189 ><P
5190 >Is the shortest acceptable abbreviation of <SPAN
5191 CLASS="bold"
5192 ><B
5193 CLASS="emphasis"
5194 >getdate</B
5195 ></SPAN
5196 >.</P
5197 ></DD
5198 ><DT
5199 ><SPAN
5200 CLASS="bold"
5201 ><B
5202 CLASS="emphasis"
5203 >machine name</B
5204 ></SPAN
5205 ></DT
5206 ><DD
5207 ><P
5208 >Name the file server machine for which to display binary dates.</P
5209 ></DD
5210 ><DT
5211 ><SPAN
5212 CLASS="bold"
5213 ><B
5214 CLASS="emphasis"
5215 >files to check</B
5216 ></SPAN
5217 ></DT
5218 ><DD
5219 ><P
5220 >Names each binary file to display.</P
5221 ></DD
5222 ></DL
5223 ></DIV
5224 ></P
5225 ></LI
5226 ></OL
5227 ></DIV
5228 ><DIV
5229 CLASS="sect2"
5230 ><H2
5231 CLASS="sect2"
5232 ><A
5233 NAME="HDRWQ116"
5234 >Removing Obsolete Binary Files</A
5235 ></H2
5236 ><P
5237 >When processes with new binaries have been running without problems for a number of days, it is generally safe to remove
5238       the <SPAN
5239 CLASS="bold"
5240 ><B
5241 CLASS="emphasis"
5242 >.BAK</B
5243 ></SPAN
5244 > and <SPAN
5245 CLASS="bold"
5246 ><B
5247 CLASS="emphasis"
5248 >.OLD</B
5249 ></SPAN
5250 > versions from the <SPAN
5251 CLASS="bold"
5252 ><B
5253 CLASS="emphasis"
5254 >/usr/afs/bin</B
5255 ></SPAN
5256 > directory, both to reduce clutter and to free space on the file server machine's local
5257       disk.</P
5258 ><P
5259 >You can use the <SPAN
5260 CLASS="bold"
5261 ><B
5262 CLASS="emphasis"
5263 >bos prune</B
5264 ></SPAN
5265 > command's flags to remove the following types of files:
5266       <UL
5267 ><LI
5268 ><P
5269 >To remove files in the <SPAN
5270 CLASS="bold"
5271 ><B
5272 CLASS="emphasis"
5273 >/usr/afs/bin</B
5274 ></SPAN
5275 > directory with a <SPAN
5276 CLASS="bold"
5277 ><B
5278 CLASS="emphasis"
5279 >.BAK</B
5280 ></SPAN
5281 > extension, use the <SPAN
5282 CLASS="bold"
5283 ><B
5284 CLASS="emphasis"
5285 >-bak</B
5286 ></SPAN
5287 > flag.</P
5288 ></LI
5289 ><LI
5290 ><P
5291 >To remove files in the <SPAN
5292 CLASS="bold"
5293 ><B
5294 CLASS="emphasis"
5295 >/usr/afs/bin</B
5296 ></SPAN
5297 > directory with a <SPAN
5298 CLASS="bold"
5299 ><B
5300 CLASS="emphasis"
5301 >.OLD</B
5302 ></SPAN
5303 > extension, use the <SPAN
5304 CLASS="bold"
5305 ><B
5306 CLASS="emphasis"
5307 >-old</B
5308 ></SPAN
5309 > flag.</P
5310 ></LI
5311 ><LI
5312 ><P
5313 >To remove files in the <SPAN
5314 CLASS="bold"
5315 ><B
5316 CLASS="emphasis"
5317 >/usr/afs/logs</B
5318 ></SPAN
5319 > directory called <SPAN
5320 CLASS="bold"
5321 ><B
5322 CLASS="emphasis"
5323 >core</B
5324 ></SPAN
5325 >, with any extension, use the <SPAN
5326 CLASS="bold"
5327 ><B
5328 CLASS="emphasis"
5329 >-core</B
5330 ></SPAN
5331 > flag.</P
5332 ></LI
5333 ><LI
5334 ><P
5335 >To remove all three types of files, use the <SPAN
5336 CLASS="bold"
5337 ><B
5338 CLASS="emphasis"
5339 >-all</B
5340 ></SPAN
5341 > flag.</P
5342 ></LI
5343 ></UL
5344 ></P
5345 ></DIV
5346 ><DIV
5347 CLASS="sect2"
5348 ><H2
5349 CLASS="sect2"
5350 ><A
5351 NAME="Header_136"
5352 >To remove obsolete binaries</A
5353 ></H2
5354 ><OL
5355 TYPE="1"
5356 ><LI
5357 ><P
5358 >Verify that you are listed in the <SPAN
5359 CLASS="bold"
5360 ><B
5361 CLASS="emphasis"
5362 >/usr/afs/etc/UserList</B
5363 ></SPAN
5364 > file. If necessary, issue
5365           the <SPAN
5366 CLASS="bold"
5367 ><B
5368 CLASS="emphasis"
5369 >bos listusers</B
5370 ></SPAN
5371 > command, which is fully described in <A
5372 HREF="c32432.html#HDRWQ593"
5373 >To
5374           display the users in the UserList file</A
5375 >. <PRE
5376 CLASS="programlisting"
5377 >&#13;   % <SPAN
5378 CLASS="bold"
5379 ><B
5380 CLASS="emphasis"
5381 >bos listusers</B
5382 ></SPAN
5383 > &#60;<VAR
5384 CLASS="replaceable"
5385 >machine name</VAR
5386 >&#62;
5387 </PRE
5388 ></P
5389 ></LI
5390 ><LI
5391 ><P
5392 >Issue the <SPAN
5393 CLASS="bold"
5394 ><B
5395 CLASS="emphasis"
5396 >bos prune</B
5397 ></SPAN
5398 > command with one or more of its flags. <PRE
5399 CLASS="programlisting"
5400 >&#13;   % <SPAN
5401 CLASS="bold"
5402 ><B
5403 CLASS="emphasis"
5404 >bos prune</B
5405 ></SPAN
5406 > &#60;<VAR
5407 CLASS="replaceable"
5408 >machine name</VAR
5409 >&#62; [<SPAN
5410 CLASS="bold"
5411 ><B
5412 CLASS="emphasis"
5413 >-bak</B
5414 ></SPAN
5415 >] [<SPAN
5416 CLASS="bold"
5417 ><B
5418 CLASS="emphasis"
5419 >-old</B
5420 ></SPAN
5421 >] [<SPAN
5422 CLASS="bold"
5423 ><B
5424 CLASS="emphasis"
5425 >-core</B
5426 ></SPAN
5427 >] [<SPAN
5428 CLASS="bold"
5429 ><B
5430 CLASS="emphasis"
5431 >-all</B
5432 ></SPAN
5433 >]
5434 </PRE
5435 ></P
5436 ><P
5437 >where <DIV
5438 CLASS="variablelist"
5439 ><DL
5440 ><DT
5441 ><SPAN
5442 CLASS="bold"
5443 ><B
5444 CLASS="emphasis"
5445 >p</B
5446 ></SPAN
5447 ></DT
5448 ><DD
5449 ><P
5450 >Is the shortest acceptable abbreviation of <SPAN
5451 CLASS="bold"
5452 ><B
5453 CLASS="emphasis"
5454 >prune</B
5455 ></SPAN
5456 >.</P
5457 ></DD
5458 ><DT
5459 ><SPAN
5460 CLASS="bold"
5461 ><B
5462 CLASS="emphasis"
5463 >machine name</B
5464 ></SPAN
5465 ></DT
5466 ><DD
5467 ><P
5468 >Names the file server machine on which to remove obsolete files.</P
5469 ></DD
5470 ><DT
5471 ><SPAN
5472 CLASS="bold"
5473 ><B
5474 CLASS="emphasis"
5475 >-bak</B
5476 ></SPAN
5477 ></DT
5478 ><DD
5479 ><P
5480 >Removes all the files with a <SPAN
5481 CLASS="bold"
5482 ><B
5483 CLASS="emphasis"
5484 >.BAK</B
5485 ></SPAN
5486 > extension from the <SPAN
5487 CLASS="bold"
5488 ><B
5489 CLASS="emphasis"
5490 >/usr/afs/bin</B
5491 ></SPAN
5492 > directory. Do not combine this flag with the <SPAN
5493 CLASS="bold"
5494 ><B
5495 CLASS="emphasis"
5496 >-all</B
5497 ></SPAN
5498 > flag.</P
5499 ></DD
5500 ><DT
5501 ><SPAN
5502 CLASS="bold"
5503 ><B
5504 CLASS="emphasis"
5505 >-old</B
5506 ></SPAN
5507 ></DT
5508 ><DD
5509 ><P
5510 >Removes all the files a .<SPAN
5511 CLASS="bold"
5512 ><B
5513 CLASS="emphasis"
5514 >OLD</B
5515 ></SPAN
5516 > extension from the <SPAN
5517 CLASS="bold"
5518 ><B
5519 CLASS="emphasis"
5520 >/usr/afs/bin</B
5521 ></SPAN
5522 > directory. Do not combine this flag with the <SPAN
5523 CLASS="bold"
5524 ><B
5525 CLASS="emphasis"
5526 >-all</B
5527 ></SPAN
5528 > flag.</P
5529 ></DD
5530 ><DT
5531 ><SPAN
5532 CLASS="bold"
5533 ><B
5534 CLASS="emphasis"
5535 >-core</B
5536 ></SPAN
5537 ></DT
5538 ><DD
5539 ><P
5540 >Removes all core files from the <SPAN
5541 CLASS="bold"
5542 ><B
5543 CLASS="emphasis"
5544 >/usr/afs/logs</B
5545 ></SPAN
5546 > directory. Do not combine
5547                   this flag with the <SPAN
5548 CLASS="bold"
5549 ><B
5550 CLASS="emphasis"
5551 >-all</B
5552 ></SPAN
5553 > flag</P
5554 ></DD
5555 ><DT
5556 ><SPAN
5557 CLASS="bold"
5558 ><B
5559 CLASS="emphasis"
5560 >-all</B
5561 ></SPAN
5562 ></DT
5563 ><DD
5564 ><P
5565 >Combines the effect of the other three flags. Do not combine it with the other three flags.</P
5566 ></DD
5567 ></DL
5568 ></DIV
5569 ></P
5570 ></LI
5571 ></OL
5572 ></DIV
5573 ><DIV
5574 CLASS="sect2"
5575 ><H2
5576 CLASS="sect2"
5577 ><A
5578 NAME="HDRWQ117"
5579 >Displaying A Binary File's Build Level</A
5580 ></H2
5581 ><P
5582 >For the most consistent performance on a server machine, and cell-wide, it is best for all server processes to come from
5583       the same AFS distribution. Every AFS binary includes an ASCII string that specifies its version, or <SPAN
5584 CLASS="emphasis"
5585 ><I
5586 CLASS="emphasis"
5587 >build
5588       level</I
5589 ></SPAN
5590 >. To display it, use the <SPAN
5591 CLASS="bold"
5592 ><B
5593 CLASS="emphasis"
5594 >strings</B
5595 ></SPAN
5596 > and <SPAN
5597 CLASS="bold"
5598 ><B
5599 CLASS="emphasis"
5600 >grep</B
5601 ></SPAN
5602 >
5603       commands, which are included in most UNIX distributions.</P
5604 ></DIV
5605 ><DIV
5606 CLASS="sect2"
5607 ><H2
5608 CLASS="sect2"
5609 ><A
5610 NAME="Header_138"
5611 >To display an AFS binary's build level</A
5612 ></H2
5613 ><OL
5614 TYPE="1"
5615 ><LI
5616 ><P
5617 >Change to the directory that houses the binary file . If you are not sure where the binary resides, issue the
5618           <SPAN
5619 CLASS="bold"
5620 ><B
5621 CLASS="emphasis"
5622 >which</B
5623 ></SPAN
5624 > command. <PRE
5625 CLASS="programlisting"
5626 >&#13;   % <SPAN
5627 CLASS="bold"
5628 ><B
5629 CLASS="emphasis"
5630 >which</B
5631 ></SPAN
5632 > binary_file
5633    /bin_dir_path/binary_file
5634    % <SPAN
5635 CLASS="bold"
5636 ><B
5637 CLASS="emphasis"
5638 >cd</B
5639 ></SPAN
5640 > bin_dir_path
5641 </PRE
5642 ></P
5643 ></LI
5644 ><LI
5645 ><P
5646 >Issue the <SPAN
5647 CLASS="bold"
5648 ><B
5649 CLASS="emphasis"
5650 >strings</B
5651 ></SPAN
5652 > command to extract all ASCII strings from the binary file. Pipe
5653           the output to the <SPAN
5654 CLASS="bold"
5655 ><B
5656 CLASS="emphasis"
5657 >grep</B
5658 ></SPAN
5659 > command to locate the relevant line. <PRE
5660 CLASS="programlisting"
5661 >&#13;   % <SPAN
5662 CLASS="bold"
5663 ><B
5664 CLASS="emphasis"
5665 >strings ./</B
5666 ></SPAN
5667 >binary_file <SPAN
5668 CLASS="bold"
5669 ><B
5670 CLASS="emphasis"
5671 >| grep Base</B
5672 ></SPAN
5673 >
5674 </PRE
5675 ></P
5676 ><P
5677 >The output reports the AFS build level in a format like the following:</P
5678 ><PRE
5679 CLASS="programlisting"
5680 >&#13;   @(#)Base configuration afsversion  build_level
5681 </PRE
5682 ><P
5683 >For example, the following string indicates the binary is from AFS 3.6 build 3.0:</P
5684 ><PRE
5685 CLASS="programlisting"
5686 >&#13;   @(#)Base configuration afs3.6 3.0
5687 </PRE
5688 ></LI
5689 ></OL
5690 ></DIV
5691 ></DIV
5692 ><DIV
5693 CLASS="sect1"
5694 ><H1
5695 CLASS="sect1"
5696 ><A
5697 NAME="HDRWQ118"
5698 >Maintaining the Server CellServDB File</A
5699 ></H1
5700 ><P
5701 >Every file server machine maintains a list of its home cell's database server machines in the local disk file <SPAN
5702 CLASS="bold"
5703 ><B
5704 CLASS="emphasis"
5705 >/usr/afs/etc/CellServDB</B
5706 ></SPAN
5707 > on its local disk. Both database server processes and non-database server
5708     processes consult the file: <UL
5709 ><LI
5710 ><P
5711 >The database server processes (the Authentication, Backup, Protection, and Volume Location Servers) maintain
5712           constant contact with their peers in order to keep their copies of the replicated administrative databases
5713           synchronized.</P
5714 ><P
5715 >As detailed in <A
5716 HREF="c3025.html#HDRWQ102"
5717 >Replicating the AFS Administrative Databases</A
5718 >, the database server
5719           processes use the Ubik utility to synchronize the information in the databases they maintain. The Ubik coordinator at the
5720           synchronization site for each database maintains the single read/write copy of the database and distributes changes to the
5721           secondary sites as necessary. It must maintain contact with a majority of the secondary sites to remain the coordinator,
5722           and consults the <SPAN
5723 CLASS="bold"
5724 ><B
5725 CLASS="emphasis"
5726 >CellServDB</B
5727 ></SPAN
5728 > file to learn how many peers it has and on which machines
5729           they are running.</P
5730 ><P
5731 >If the coordinator loses contact with the majority of its peers, they all cooperate to elect a new coordinator by
5732           majority vote. During the election, all of the Ubik processes consult the <SPAN
5733 CLASS="bold"
5734 ><B
5735 CLASS="emphasis"
5736 >CellServDB</B
5737 ></SPAN
5738 > file
5739           to learn where to send their votes, and what number constitutes a majority.</P
5740 ></LI
5741 ><LI
5742 ><P
5743 >The non-database server processes must know which machines are running the database server processes in order to
5744           retrieve information from the databases. For example, the first time that a user accesses an AFS file, the File Server
5745           that houses it contacts the Protection Server to obtain a list of the user's group memberships (the list is called a
5746           current protection subgroup, or CPS). The File Server uses the CPS as it determines if the access control list (ACL)
5747           protecting the file grants the required permissions to the user (for more details, see <A
5748 HREF="c29323.html#HDRWQ534"
5749 >About the
5750           Protection Database</A
5751 >).</P
5752 ></LI
5753 ></UL
5754 ></P
5755 ><P
5756 >The consequences of missing or incorrect information in the <SPAN
5757 CLASS="bold"
5758 ><B
5759 CLASS="emphasis"
5760 >CellServDB</B
5761 ></SPAN
5762 > file are as
5763     follows: <UL
5764 ><LI
5765 ><P
5766 >If the file does not list a machine, then it is effectively not a database server machine even if the database
5767           server processes are running. The Ubik coordinator does not send it database updates or include it in the count that
5768           establishes a majority. It does not participate in Ubik elections, and so refuses to distribute database information to
5769           any client machines that happen to contact it (which they can do if their <SPAN
5770 CLASS="bold"
5771 ><B
5772 CLASS="emphasis"
5773 >/usr/vice/etc/CellServDB</B
5774 ></SPAN
5775 > file lists it). Users of the client machine must wait for a timeout before
5776           they can contact a correctly functioning database server machine.</P
5777 ></LI
5778 ><LI
5779 ><P
5780 >If the file lists a machine that is not running the database server processes, the consequences can be serious. The
5781           Ubik coordinator cannot send it database updates, but includes it in the count that establishes a majority. If valid
5782           secondary sites go down and stop sending their votes to the coordinator, it can wrongly appear that the coordinator no
5783           longer has the majority it needs. The resulting election of a new coordinator causes a service outage during which
5784           information from the database becomes unavailable. Furthermore, the lack of a vote from the incorrectly listed site can
5785           disturb the election, if it makes the other sites believe that a majority of sites are not voting for the new
5786           coordinator.</P
5787 ><P
5788 >A more minor consequence is that non-database server processes attempt to contact the database server processes on
5789           the machine. They experience a timeout delay because the processes are not running.</P
5790 ></LI
5791 ></UL
5792 ></P
5793 ><P
5794 >Note that the <SPAN
5795 CLASS="bold"
5796 ><B
5797 CLASS="emphasis"
5798 >/usr/afs/etc/CellServDB</B
5799 ></SPAN
5800 > file on a server machine is not the same as the
5801     <SPAN
5802 CLASS="bold"
5803 ><B
5804 CLASS="emphasis"
5805 >/usr/vice/etc/CellServDB</B
5806 ></SPAN
5807 > file on client machine. The client version includes entries for
5808     foreign cells as well as the local cell. However, it is important to update both versions of the file whenever you change your
5809     cell's database server machines. A server machine that is also a client needs to have both files, and you need to update them
5810     both. For more information on maintaining the client version of the <SPAN
5811 CLASS="bold"
5812 ><B
5813 CLASS="emphasis"
5814 >CellServDB</B
5815 ></SPAN
5816 > file, see <A
5817 HREF="c21473.html#HDRWQ406"
5818 >Maintaining Knowledge of Database Server Machines</A
5819 >.</P
5820 ><DIV
5821 CLASS="sect2"
5822 ><H2
5823 CLASS="sect2"
5824 ><A
5825 NAME="HDRWQ119"
5826 >Distributing the Server CellServDB File</A
5827 ></H2
5828 ><P
5829 >To avoid the negative consequences of incorrect information in the <SPAN
5830 CLASS="bold"
5831 ><B
5832 CLASS="emphasis"
5833 >/usr/afs/etc/CellServDB</B
5834 ></SPAN
5835 > file, you must update it on all of your cell's server machines every time you
5836       add or remove a database server machine. The <SPAN
5837 CLASS="emphasis"
5838 ><I
5839 CLASS="emphasis"
5840 >IBM AFS Quick Beginnings</I
5841 ></SPAN
5842 > provides complete instructions for
5843       installing or removing a database server machine and for updating the <SPAN
5844 CLASS="bold"
5845 ><B
5846 CLASS="emphasis"
5847 >CellServDB</B
5848 ></SPAN
5849 > file in that
5850       context. This section explains how to distribute the file to your server machines and how to make other cells aware of the
5851       changes if you participate in the AFS global name space.</P
5852 ><P
5853 >If you use the United States edition of AFS, use the Update Server to distribute the central copy of the server
5854       <SPAN
5855 CLASS="bold"
5856 ><B
5857 CLASS="emphasis"
5858 >CellServDB</B
5859 ></SPAN
5860 > file stored on the cell's system control machine. If you use the international
5861       edition of AFS, instead change the file on each server machine individually. For further discussion of the system control
5862       machine and why international cells must not use it for files in the <SPAN
5863 CLASS="bold"
5864 ><B
5865 CLASS="emphasis"
5866 >/usr/afs/etc</B
5867 ></SPAN
5868 > directory,
5869       see <A
5870 HREF="c3025.html#HDRWQ94"
5871 >The System Control Machine</A
5872 >. For instructions on configuring the Update Server when using
5873       the United States version of AFS, see the <SPAN
5874 CLASS="emphasis"
5875 ><I
5876 CLASS="emphasis"
5877 >IBM AFS Quick Beginnings</I
5878 ></SPAN
5879 >.</P
5880 ><P
5881 >To avoid formatting errors that can cause errors, always use the <SPAN
5882 CLASS="bold"
5883 ><B
5884 CLASS="emphasis"
5885 >bos addhost</B
5886 ></SPAN
5887 > and
5888       <SPAN
5889 CLASS="bold"
5890 ><B
5891 CLASS="emphasis"
5892 >bos removehost</B
5893 ></SPAN
5894 > commands, rather than editing the file directly. You must also restart the
5895       database server processes running on the machine, to initiate a coordinator election among the new set of database server
5896       machines. This step is included in the instructions that appear in <A
5897 HREF="c3025.html#HDRWQ121"
5898 >To add a database server machine
5899       to the CellServDB file</A
5900 > and <A
5901 HREF="c3025.html#HDRWQ122"
5902 >To remove a database server machine from the CellServDB
5903       file</A
5904 >. For instructions on displaying the contents of the file, see <A
5905 HREF="c3025.html#HDRWQ120"
5906 >To display a cell's
5907       database server machines</A
5908 >.</P
5909 ><P
5910 >If you make your cell accessible to foreign users as part of the AFS global name space, you also need to inform other
5911       cells when you change your cell's database server machines. The AFS Support group maintains a <SPAN
5912 CLASS="bold"
5913 ><B
5914 CLASS="emphasis"
5915 >CellServDB</B
5916 ></SPAN
5917 > file that lists all cells that participate in the AFS global name space, and can change your
5918       cell's entry at your request. For further details, see <A
5919 HREF="c667.html#HDRWQ38"
5920 >Making Your Cell Visible to
5921       Others</A
5922 >.</P
5923 ><P
5924 >Another way to advertise your cell's database server machines is to maintain a copy of the file at the conventional
5925       location in your AFS filespace, <SPAN
5926 CLASS="bold"
5927 ><B
5928 CLASS="emphasis"
5929 >/afs/</B
5930 ></SPAN
5931 ><SPAN
5932 CLASS="emphasis"
5933 ><I
5934 CLASS="emphasis"
5935 >cellname</I
5936 ></SPAN
5937 ><SPAN
5938 CLASS="bold"
5939 ><B
5940 CLASS="emphasis"
5941 >/service/etc/CellServDB.local</B
5942 ></SPAN
5943 >. For further discussion, see <A
5944 HREF="c667.html#HDRWQ43"
5945 >The Third
5946       Level</A
5947 >.</P
5948 ></DIV
5949 ><DIV
5950 CLASS="sect2"
5951 ><H2
5952 CLASS="sect2"
5953 ><A
5954 NAME="HDRWQ120"
5955 >To display a cell's database server machines</A
5956 ></H2
5957 ><OL
5958 TYPE="1"
5959 ><LI
5960 ><P
5961 >Issue the <SPAN
5962 CLASS="bold"
5963 ><B
5964 CLASS="emphasis"
5965 >bos listhosts</B
5966 ></SPAN
5967 > command. If you have maintained the file properly, the
5968           output is the same on every server machine, but the <SPAN
5969 CLASS="emphasis"
5970 ><I
5971 CLASS="emphasis"
5972 >machine name</I
5973 ></SPAN
5974 > argument enables you to check
5975           various machines if you wish. <PRE
5976 CLASS="programlisting"
5977 >&#13;   % <SPAN
5978 CLASS="bold"
5979 ><B
5980 CLASS="emphasis"
5981 >bos listhosts</B
5982 ></SPAN
5983 > &#60;<VAR
5984 CLASS="replaceable"
5985 >machine name</VAR
5986 >&#62; [&#60;<VAR
5987 CLASS="replaceable"
5988 >cell name</VAR
5989 >&#62;]
5990 </PRE
5991 ></P
5992 ><P
5993 >where <DIV
5994 CLASS="variablelist"
5995 ><DL
5996 ><DT
5997 ><SPAN
5998 CLASS="bold"
5999 ><B
6000 CLASS="emphasis"
6001 >listh</B
6002 ></SPAN
6003 ></DT
6004 ><DD
6005 ><P
6006 >Is the shortest acceptable abbreviation of <SPAN
6007 CLASS="bold"
6008 ><B
6009 CLASS="emphasis"
6010 >listhosts</B
6011 ></SPAN
6012 >.</P
6013 ></DD
6014 ><DT
6015 ><SPAN
6016 CLASS="bold"
6017 ><B
6018 CLASS="emphasis"
6019 >machine name</B
6020 ></SPAN
6021 ></DT
6022 ><DD
6023 ><P
6024 >Specifies the server machine from which to display the <SPAN
6025 CLASS="bold"
6026 ><B
6027 CLASS="emphasis"
6028 >/usr/afs/etc/CellServDB</B
6029 ></SPAN
6030 > file.</P
6031 ></DD
6032 ><DT
6033 ><SPAN
6034 CLASS="bold"
6035 ><B
6036 CLASS="emphasis"
6037 >cell name</B
6038 ></SPAN
6039 ></DT
6040 ><DD
6041 ><P
6042 >Specifies the complete Internet domain name of a foreign cell. You must already know the name of at least
6043                   one server machine in the cell, to provide as the <SPAN
6044 CLASS="bold"
6045 ><B
6046 CLASS="emphasis"
6047 >machine name</B
6048 ></SPAN
6049 > argument.</P
6050 ></DD
6051 ></DL
6052 ></DIV
6053 ></P
6054 ></LI
6055 ></OL
6056 ><P
6057 >The output lists the machines in the order they appear in the <SPAN
6058 CLASS="bold"
6059 ><B
6060 CLASS="emphasis"
6061 >CellServDB</B
6062 ></SPAN
6063 > file on the
6064       specified server machine. It assigns each one a <SAMP
6065 CLASS="computeroutput"
6066 >Host</SAMP
6067 > index number, as in the following
6068       example. There is no implied relationship between the index and a machine's IP address, name, or role as Ubik coordinator or
6069       secondary site.</P
6070 ><PRE
6071 CLASS="programlisting"
6072 >&#13;   % <SPAN
6073 CLASS="bold"
6074 ><B
6075 CLASS="emphasis"
6076 >bos listhosts fs1.abc.com</B
6077 ></SPAN
6078 >
6079    Cell name is abc.com
6080        Host 1 is fs1.abc.com
6081        Host 2 is fs7.abc.com
6082        Host 3 is fs4.abc.com
6083 </PRE
6084 ><P
6085 >The output lists machines by name rather than IP address as long as the naming service (such as the Domain Name Service
6086       or local host table) is functioning properly. To display IP addresses, login to a server machine as the local superuser
6087       <SPAN
6088 CLASS="bold"
6089 ><B
6090 CLASS="emphasis"
6091 >root</B
6092 ></SPAN
6093 > and use a text editor or display command, such as the <SPAN
6094 CLASS="bold"
6095 ><B
6096 CLASS="emphasis"
6097 >cat</B
6098 ></SPAN
6099 > command, to view the <SPAN
6100 CLASS="bold"
6101 ><B
6102 CLASS="emphasis"
6103 >/usr/afs/etc/CellServDB</B
6104 ></SPAN
6105 > file.</P
6106 ></DIV
6107 ><DIV
6108 CLASS="sect2"
6109 ><H2
6110 CLASS="sect2"
6111 ><A
6112 NAME="HDRWQ121"
6113 >To add a database server machine to the CellServDB file</A
6114 ></H2
6115 ><OL
6116 TYPE="1"
6117 ><LI
6118 ><P
6119 >Verify that you are listed in the <SPAN
6120 CLASS="bold"
6121 ><B
6122 CLASS="emphasis"
6123 >/usr/afs/etc/UserList</B
6124 ></SPAN
6125 > file. If necessary, issue
6126           the <SPAN
6127 CLASS="bold"
6128 ><B
6129 CLASS="emphasis"
6130 >bos listusers</B
6131 ></SPAN
6132 > command, which is fully described in <A
6133 HREF="c32432.html#HDRWQ593"
6134 >To
6135           display the users in the UserList file</A
6136 >. <PRE
6137 CLASS="programlisting"
6138 >&#13;   % <SPAN
6139 CLASS="bold"
6140 ><B
6141 CLASS="emphasis"
6142 >bos listusers</B
6143 ></SPAN
6144 > &#60;<VAR
6145 CLASS="replaceable"
6146 >machine name</VAR
6147 >&#62;
6148 </PRE
6149 ></P
6150 ></LI
6151 ><LI
6152 ><P
6153 >Issue the <SPAN
6154 CLASS="bold"
6155 ><B
6156 CLASS="emphasis"
6157 >bos addhost</B
6158 ></SPAN
6159 > command to add each new database server machine to the
6160           <SPAN
6161 CLASS="bold"
6162 ><B
6163 CLASS="emphasis"
6164 >CellServDB</B
6165 ></SPAN
6166 > file. If you use the United States edition of AFS, specify the system control
6167           machine as <SPAN
6168 CLASS="emphasis"
6169 ><I
6170 CLASS="emphasis"
6171 >machine name</I
6172 ></SPAN
6173 >. (If you have forgotten which machine is the system control machine, see
6174           <A
6175 HREF="c3025.html#HDRWQ99"
6176 >The Output on the System Control Machine</A
6177 >.) If you use the international edition of AFS,
6178           repeat the command on each or your cell's server machines in turn by substituting its name for <SPAN
6179 CLASS="emphasis"
6180 ><I
6181 CLASS="emphasis"
6182 >machine
6183           name</I
6184 ></SPAN
6185 >. <PRE
6186 CLASS="programlisting"
6187 >&#13;   % <SPAN
6188 CLASS="bold"
6189 ><B
6190 CLASS="emphasis"
6191 >bos addhost</B
6192 ></SPAN
6193 >  &#60;<VAR
6194 CLASS="replaceable"
6195 >machine name</VAR
6196 >&#62;  &#60;<VAR
6197 CLASS="replaceable"
6198 >host name</VAR
6199 >&#62;+
6200 </PRE
6201 ></P
6202 ><P
6203 >where <DIV
6204 CLASS="variablelist"
6205 ><DL
6206 ><DT
6207 ><SPAN
6208 CLASS="bold"
6209 ><B
6210 CLASS="emphasis"
6211 >addh</B
6212 ></SPAN
6213 ></DT
6214 ><DD
6215 ><P
6216 >Is the shortest acceptable abbreviation of <SPAN
6217 CLASS="bold"
6218 ><B
6219 CLASS="emphasis"
6220 >addhost</B
6221 ></SPAN
6222 >.</P
6223 ></DD
6224 ><DT
6225 ><SPAN
6226 CLASS="bold"
6227 ><B
6228 CLASS="emphasis"
6229 >machine name</B
6230 ></SPAN
6231 ></DT
6232 ><DD
6233 ><P
6234 >Names the system control machine, if you are using the United States edition of AFS. If you are using the
6235                   international edition of AFS, it names each of your server machines in turn.</P
6236 ></DD
6237 ><DT
6238 ><SPAN
6239 CLASS="bold"
6240 ><B
6241 CLASS="emphasis"
6242 >host name</B
6243 ></SPAN
6244 ></DT
6245 ><DD
6246 ><P
6247 >Specifies the fully qualified hostname of each database server machine to add to the <SPAN
6248 CLASS="bold"
6249 ><B
6250 CLASS="emphasis"
6251 >CellServDB</B
6252 ></SPAN
6253 > file (for example: <SPAN
6254 CLASS="bold"
6255 ><B
6256 CLASS="emphasis"
6257 >fs4.abc.com</B
6258 ></SPAN
6259 >). The BOS Server
6260                   uses the <SPAN
6261 CLASS="bold"
6262 ><B
6263 CLASS="emphasis"
6264 >gethostbyname()</B
6265 ></SPAN
6266 > routine to obtain each machine's IP address and records
6267                   both the name and address automatically.</P
6268 ></DD
6269 ></DL
6270 ></DIV
6271 ></P
6272 ></LI
6273 ><LI
6274 ><P
6275 >Restart the Authentication Server, Backup Server, Protection Server, and VL Server on every database server machine,
6276           so that the new set of machines participate in the election of a new Ubik coordinator. The instruction uses the
6277           conventional names for the processes; make the appropriate substitution if you use different process names. For complete
6278           syntax, see <A
6279 HREF="c6449.html#HDRWQ170"
6280 >Stopping and Immediately Restarting Processes</A
6281 >.</P
6282 ><P
6283 ><SPAN
6284 CLASS="bold"
6285 ><B
6286 CLASS="emphasis"
6287 >Important:</B
6288 ></SPAN
6289 > Repeat the following command in quick succession on all of the database
6290           server machines.</P
6291 ><PRE
6292 CLASS="programlisting"
6293 >&#13;   % <SPAN
6294 CLASS="bold"
6295 ><B
6296 CLASS="emphasis"
6297 >bos restart</B
6298 ></SPAN
6299 > &#60;<VAR
6300 CLASS="replaceable"
6301 >machine name</VAR
6302 >&#62; <SPAN
6303 CLASS="bold"
6304 ><B
6305 CLASS="emphasis"
6306 >buserver kaserver ptserver vlserver</B
6307 ></SPAN
6308 >
6309 </PRE
6310 ></LI
6311 ><LI
6312 ><P
6313 >Edit the <SPAN
6314 CLASS="bold"
6315 ><B
6316 CLASS="emphasis"
6317 >/usr/vice/etc/CellServDB</B
6318 ></SPAN
6319 > file on each of your cell's client machines. For
6320           instructions, see <A
6321 HREF="c21473.html#HDRWQ406"
6322 >Maintaining Knowledge of Database Server Machines</A
6323 >.</P
6324 ></LI
6325 ><LI
6326 ><P
6327 >If you participate in the AFS global name space, please have one of your cell's designated site contacts register
6328           the changes you have made with the AFS Product Support group.</P
6329 ><P
6330 >If you maintain a central copy of your cell's server <SPAN
6331 CLASS="bold"
6332 ><B
6333 CLASS="emphasis"
6334 >CellServDB</B
6335 ></SPAN
6336 > file in the
6337           conventional location (<SPAN
6338 CLASS="bold"
6339 ><B
6340 CLASS="emphasis"
6341 >/afs/</B
6342 ></SPAN
6343 ><SPAN
6344 CLASS="emphasis"
6345 ><I
6346 CLASS="emphasis"
6347 >cellname</I
6348 ></SPAN
6349 ><SPAN
6350 CLASS="bold"
6351 ><B
6352 CLASS="emphasis"
6353 >/service/etc/CellServDB.local</B
6354 ></SPAN
6355 >), edit the file to reflect the change.</P
6356 ></LI
6357 ></OL
6358 ></DIV
6359 ><DIV
6360 CLASS="sect2"
6361 ><H2
6362 CLASS="sect2"
6363 ><A
6364 NAME="HDRWQ122"
6365 >To remove a database server machine from the CellServDB file</A
6366 ></H2
6367 ><OL
6368 TYPE="1"
6369 ><LI
6370 ><P
6371 >Verify that you are listed in the <SPAN
6372 CLASS="bold"
6373 ><B
6374 CLASS="emphasis"
6375 >/usr/afs/etc/UserList</B
6376 ></SPAN
6377 > file. If necessary, issue
6378           the <SPAN
6379 CLASS="bold"
6380 ><B
6381 CLASS="emphasis"
6382 >bos listusers</B
6383 ></SPAN
6384 > command, which is fully described in <A
6385 HREF="c32432.html#HDRWQ593"
6386 >To
6387           display the users in the UserList file</A
6388 >. <PRE
6389 CLASS="programlisting"
6390 >&#13;   % <SPAN
6391 CLASS="bold"
6392 ><B
6393 CLASS="emphasis"
6394 >bos listusers</B
6395 ></SPAN
6396 > &#60;<VAR
6397 CLASS="replaceable"
6398 >machine name</VAR
6399 >&#62;
6400 </PRE
6401 ></P
6402 ></LI
6403 ><LI
6404 ><P
6405 >Issue the <SPAN
6406 CLASS="bold"
6407 ><B
6408 CLASS="emphasis"
6409 >bos removehost</B
6410 ></SPAN
6411 > command to remove each database server machine from the
6412           <SPAN
6413 CLASS="bold"
6414 ><B
6415 CLASS="emphasis"
6416 >CellServDB</B
6417 ></SPAN
6418 > file. If you use the United States edition of AFS, specify the system control
6419           machine as <SPAN
6420 CLASS="emphasis"
6421 ><I
6422 CLASS="emphasis"
6423 >machine name</I
6424 ></SPAN
6425 >. (If you have forgotten which machine is the system control machine, see
6426           <A
6427 HREF="c3025.html#HDRWQ99"
6428 >The Output on the System Control Machine</A
6429 >.) If you use the international edition of AFS,
6430           repeat the command on each or your cell's server machines in turn by substituting its name for <SPAN
6431 CLASS="emphasis"
6432 ><I
6433 CLASS="emphasis"
6434 >machine
6435           name</I
6436 ></SPAN
6437 >. <PRE
6438 CLASS="programlisting"
6439 >&#13;   % <SPAN
6440 CLASS="bold"
6441 ><B
6442 CLASS="emphasis"
6443 >bos removehost</B
6444 ></SPAN
6445 > &#60;<VAR
6446 CLASS="replaceable"
6447 >machine name</VAR
6448 >&#62;  &#60;<VAR
6449 CLASS="replaceable"
6450 >host name</VAR
6451 >&#62;+
6452 </PRE
6453 ></P
6454 ><P
6455 >where <DIV
6456 CLASS="variablelist"
6457 ><DL
6458 ><DT
6459 ><SPAN
6460 CLASS="bold"
6461 ><B
6462 CLASS="emphasis"
6463 >removeh</B
6464 ></SPAN
6465 ></DT
6466 ><DD
6467 ><P
6468 >Is the shortest acceptable abbreviation of <SPAN
6469 CLASS="bold"
6470 ><B
6471 CLASS="emphasis"
6472 >removehost</B
6473 ></SPAN
6474 >.</P
6475 ></DD
6476 ><DT
6477 ><SPAN
6478 CLASS="bold"
6479 ><B
6480 CLASS="emphasis"
6481 >machine name</B
6482 ></SPAN
6483 ></DT
6484 ><DD
6485 ><P
6486 >Names the system control machine, if you are using the United States edition of AFS. If you are using the
6487                   international edition of AFS, it names each of your server machines in turn.</P
6488 ></DD
6489 ><DT
6490 ><SPAN
6491 CLASS="bold"
6492 ><B
6493 CLASS="emphasis"
6494 >host name</B
6495 ></SPAN
6496 ></DT
6497 ><DD
6498 ><P
6499 >Specifies the fully qualified hostname of each database server machine to remove from the <SPAN
6500 CLASS="bold"
6501 ><B
6502 CLASS="emphasis"
6503 >CellServDB</B
6504 ></SPAN
6505 > file (for example: <SPAN
6506 CLASS="bold"
6507 ><B
6508 CLASS="emphasis"
6509 >fs4.abc.com</B
6510 ></SPAN
6511 >).</P
6512 ></DD
6513 ></DL
6514 ></DIV
6515 ></P
6516 ></LI
6517 ><LI
6518 ><P
6519 >Restart the Authentication Server, Backup Server, Protection Server, and VL Server on every database server machine,
6520           so that the new set of machines participate in the election of a new Ubik coordinator. The instruction uses the
6521           conventional names for the processes; make the appropriate substitution if you use different process names. For complete
6522           syntax, see <A
6523 HREF="c6449.html#HDRWQ170"
6524 >Stopping and Immediately Restarting Processes</A
6525 >.</P
6526 ><P
6527 ><SPAN
6528 CLASS="bold"
6529 ><B
6530 CLASS="emphasis"
6531 >Important:</B
6532 ></SPAN
6533 > Repeat the following command in quick succession on all of the database
6534           server machines.</P
6535 ><PRE
6536 CLASS="programlisting"
6537 >&#13;   % <SPAN
6538 CLASS="bold"
6539 ><B
6540 CLASS="emphasis"
6541 >bos restart</B
6542 ></SPAN
6543 > &#60;<VAR
6544 CLASS="replaceable"
6545 >machine name</VAR
6546 >&#62; <SPAN
6547 CLASS="bold"
6548 ><B
6549 CLASS="emphasis"
6550 >buserver kaserver ptserver vlserver</B
6551 ></SPAN
6552 >
6553 </PRE
6554 ></LI
6555 ><LI
6556 ><P
6557 >Edit the <SPAN
6558 CLASS="bold"
6559 ><B
6560 CLASS="emphasis"
6561 >/usr/vice/etc/CellServDB</B
6562 ></SPAN
6563 > file on each of your cell's client machines. For
6564           instructions, see <A
6565 HREF="c21473.html#HDRWQ406"
6566 >Maintaining Knowledge of Database Server Machines</A
6567 >.</P
6568 ></LI
6569 ><LI
6570 ><P
6571 >If you participate in the AFS global name space, please have one of your cell's designated site contacts register
6572           the changes you have made with the AFS Product Support group.</P
6573 ><P
6574 >If you maintain a central copy of your cell's server <SPAN
6575 CLASS="bold"
6576 ><B
6577 CLASS="emphasis"
6578 >CellServDB</B
6579 ></SPAN
6580 > file in the
6581           conventional location (<SPAN
6582 CLASS="bold"
6583 ><B
6584 CLASS="emphasis"
6585 >/afs/</B
6586 ></SPAN
6587 ><SPAN
6588 CLASS="emphasis"
6589 ><I
6590 CLASS="emphasis"
6591 >cellname</I
6592 ></SPAN
6593 ><SPAN
6594 CLASS="bold"
6595 ><B
6596 CLASS="emphasis"
6597 >/service/etc/CellServDB.local</B
6598 ></SPAN
6599 >), edit the file to reflect the change.</P
6600 ></LI
6601 ></OL
6602 ></DIV
6603 ></DIV
6604 ><DIV
6605 CLASS="sect1"
6606 ><H1
6607 CLASS="sect1"
6608 ><A
6609 NAME="HDRWQ123"
6610 >Managing Authentication and Authorization Requirements</A
6611 ></H1
6612 ><P
6613 >This section describes how the AFS server processes guarantee that only properly authorized users perform privileged
6614     commands, by checking authorization checking and mutually authenticating with their clients. It explains how you can control
6615     authorization checking requirements on a per-machine or per-cell basis, and how to bypass mutual authentication when issuing
6616     commands.</P
6617 ><DIV
6618 CLASS="sect2"
6619 ><H2
6620 CLASS="sect2"
6621 ><A
6622 NAME="HDRWQ124"
6623 >Authentication versus Authorization</A
6624 ></H2
6625 ><P
6626 >Many AFS commands are <SPAN
6627 CLASS="emphasis"
6628 ><I
6629 CLASS="emphasis"
6630 >privileged</I
6631 ></SPAN
6632 > in that the AFS server process invoked by the command performs it
6633       only for a properly authorized user. The server process performs the following two tests to determine if someone is properly
6634       authorized: <UL
6635 ><LI
6636 ><P
6637 >In the <SPAN
6638 CLASS="emphasis"
6639 ><I
6640 CLASS="emphasis"
6641 >authentication</I
6642 ></SPAN
6643 > test, the server process mutually authenticates with the command
6644             interpreter, Cache Manager, or other client process that is acting on behalf of a user or application. The goal of this
6645             test is to determine who is issuing the command. The server process verifies that the issuer really is who he or she
6646             claims to be, by examining the server ticket and other components of the issuer's token. (Secondarily, it allows the
6647             client process to verify that the server process is genuine.) If the issuer has no token or otherwise fails the test,
6648             the server process assigns him or her the identity <SPAN
6649 CLASS="bold"
6650 ><B
6651 CLASS="emphasis"
6652 >anonymous</B
6653 ></SPAN
6654 >, a completely unprivileged
6655             user. For a more complete description of mutual authentication, see <A
6656 HREF="c667.html#HDRWQ75"
6657 >A More Detailed Look at
6658             Mutual Authentication</A
6659 >.</P
6660 ><P
6661 >Many individual commands enable you to bypass the authentication test by assuming the <SPAN
6662 CLASS="bold"
6663 ><B
6664 CLASS="emphasis"
6665 >anonymous</B
6666 ></SPAN
6667 > identity without even attempting to mutually authenticate. Note, however, that this is
6668             futile if the command is privileged and the server process is still performing the <SPAN
6669 CLASS="emphasis"
6670 ><I
6671 CLASS="emphasis"
6672 >authorization</I
6673 ></SPAN
6674 >
6675             test, because in that case the process refuses to execute privileged commands for the <SPAN
6676 CLASS="bold"
6677 ><B
6678 CLASS="emphasis"
6679 >anonymous</B
6680 ></SPAN
6681 > user.</P
6682 ></LI
6683 ><LI
6684 ><P
6685 >In the authorization test, the server process determines if the issuer is authorized to use the command by
6686             consulting a list of privileged users. The goal of this test is to determine what the issuer is allowed to do. Different
6687             server processes consult different lists of users, as described in <A
6688 HREF="c32432.html"
6689 >Managing Administrative
6690             Privilege</A
6691 >. The server process refuses to execute any privileged command for an unauthorized issuer. If a command
6692             has no privilege requirements, the server process skips this step and executes and immediately.</P
6693 ><DIV
6694 CLASS="note"
6695 ><BLOCKQUOTE
6696 CLASS="note"
6697 ><P
6698 ><B
6699 >Note: </B
6700 >Never place the <SPAN
6701 CLASS="bold"
6702 ><B
6703 CLASS="emphasis"
6704 >anonymous</B
6705 ></SPAN
6706 > user or the <SPAN
6707 CLASS="bold"
6708 ><B
6709 CLASS="emphasis"
6710 >system:anyuser</B
6711 ></SPAN
6712 > group on a privilege list; it makes authorization checking meaningless.</P
6713 ><P
6714 >You can use the <SPAN
6715 CLASS="bold"
6716 ><B
6717 CLASS="emphasis"
6718 >bos setauth</B
6719 ></SPAN
6720 > command to control whether the server processes on
6721               a server machine check for authorization. Other server machines are not affected. Keep in mind that turning off
6722               authorization checking is a grave security risk, because the server processes on that machine perform any action for
6723               any user.</P
6724 ></BLOCKQUOTE
6725 ></DIV
6726 ></LI
6727 ></UL
6728 ></P
6729 ></DIV
6730 ><DIV
6731 CLASS="sect2"
6732 ><H2
6733 CLASS="sect2"
6734 ><A
6735 NAME="HDRWQ125"
6736 >Controlling Authorization Checking on a Server Machine</A
6737 ></H2
6738 ><P
6739 >Disabling authorization checking is a serious breach of security because it means that the AFS server processes on a
6740       file server machine performs any action for any user, even the <SPAN
6741 CLASS="bold"
6742 ><B
6743 CLASS="emphasis"
6744 >anonymous</B
6745 ></SPAN
6746 > user.</P
6747 ><P
6748 >The only time it is common to disable authorization checking is when installing a new file server machine (see the IBM
6749       AFS Quick Beginnings). It is necessary then because it is not possible to configure all of the necessary security mechanisms
6750       before performing other actions that normally make use of them. For greatest security, work at the console of the machine you
6751       are installing and enable authorization checking as soon as possible.</P
6752 ><P
6753 >During normal operation, the only reason to disable authorization checking is if an error occurs with the server
6754       encryption keys, leaving the servers unable to authenticate users properly. For instructions on handling key-related
6755       emergencies, see <A
6756 HREF="c20494.html#HDRWQ370"
6757 >Handling Server Encryption Key Emergencies</A
6758 >.</P
6759 ><P
6760 >You control authorization checking on each file server machine separately; turning it on or off on one machine does not
6761       affect the others. Because client machines generally choose a server process at random, it is hard to predict what
6762       authorization checking conditions prevail for a given command unless you make the requirement the same on all machines. To
6763       turn authorization checking on or off for the entire cell, you must repeat the appropriate command on every file server
6764       machine.</P
6765 ><P
6766 >The server processes constantly monitor the directory <SPAN
6767 CLASS="bold"
6768 ><B
6769 CLASS="emphasis"
6770 >/usr/afs/local</B
6771 ></SPAN
6772 > on their local
6773       disks to determine if they need to check for authorization. If the file called <SPAN
6774 CLASS="bold"
6775 ><B
6776 CLASS="emphasis"
6777 >NoAuth</B
6778 ></SPAN
6779 > appears
6780       in that directory, then the servers do not check for authorization. When it is not present (the usual case), they perform
6781       authorization checking.</P
6782 ><P
6783 >Control the presence of the <SPAN
6784 CLASS="bold"
6785 ><B
6786 CLASS="emphasis"
6787 >NoAuth</B
6788 ></SPAN
6789 > file through the BOS Server. When you disable
6790       authorization checking with the <SPAN
6791 CLASS="bold"
6792 ><B
6793 CLASS="emphasis"
6794 >bos setauth</B
6795 ></SPAN
6796 > command (or, during installation, by putting the
6797       <SPAN
6798 CLASS="bold"
6799 ><B
6800 CLASS="emphasis"
6801 >-noauth</B
6802 ></SPAN
6803 > flag on the command that starts up the BOS Server), the BOS Server creates the
6804       zero-length <SPAN
6805 CLASS="bold"
6806 ><B
6807 CLASS="emphasis"
6808 >NoAuth</B
6809 ></SPAN
6810 > file. When you reenable authorization checking, the BOS Server removes the
6811       file.</P
6812 ></DIV
6813 ><DIV
6814 CLASS="sect2"
6815 ><H2
6816 CLASS="sect2"
6817 ><A
6818 NAME="HDRWQ126"
6819 >To disable authorization checking on a server machine</A
6820 ></H2
6821 ><OL
6822 TYPE="1"
6823 ><LI
6824 ><P
6825 >Verify that you are listed in the <SPAN
6826 CLASS="bold"
6827 ><B
6828 CLASS="emphasis"
6829 >/usr/afs/etc/UserList</B
6830 ></SPAN
6831 > file. If necessary, issue
6832           the <SPAN
6833 CLASS="bold"
6834 ><B
6835 CLASS="emphasis"
6836 >bos listusers</B
6837 ></SPAN
6838 > command, which is fully described in <A
6839 HREF="c32432.html#HDRWQ593"
6840 >To
6841           display the users in the UserList file</A
6842 >. <PRE
6843 CLASS="programlisting"
6844 >&#13;   % <SPAN
6845 CLASS="bold"
6846 ><B
6847 CLASS="emphasis"
6848 >bos listusers</B
6849 ></SPAN
6850 > &#60;<VAR
6851 CLASS="replaceable"
6852 >machine name</VAR
6853 >&#62;
6854 </PRE
6855 ></P
6856 ></LI
6857 ><LI
6858 ><P
6859 >Issue the <SPAN
6860 CLASS="bold"
6861 ><B
6862 CLASS="emphasis"
6863 >bos setauth</B
6864 ></SPAN
6865 > command to disable authorization checking. <PRE
6866 CLASS="programlisting"
6867 >&#13;   % <SPAN
6868 CLASS="bold"
6869 ><B
6870 CLASS="emphasis"
6871 >bos setauth</B
6872 ></SPAN
6873 > &#60;<VAR
6874 CLASS="replaceable"
6875 >machine name</VAR
6876 >&#62; <SPAN
6877 CLASS="bold"
6878 ><B
6879 CLASS="emphasis"
6880 >off</B
6881 ></SPAN
6882 >
6883 </PRE
6884 ></P
6885 ><P
6886 >where <DIV
6887 CLASS="variablelist"
6888 ><DL
6889 ><DT
6890 ><SPAN
6891 CLASS="bold"
6892 ><B
6893 CLASS="emphasis"
6894 >seta</B
6895 ></SPAN
6896 ></DT
6897 ><DD
6898 ><P
6899 >Is the shortest acceptable abbreviation of <SPAN
6900 CLASS="bold"
6901 ><B
6902 CLASS="emphasis"
6903 >setauth</B
6904 ></SPAN
6905 >.</P
6906 ></DD
6907 ><DT
6908 ><SPAN
6909 CLASS="bold"
6910 ><B
6911 CLASS="emphasis"
6912 >machine name</B
6913 ></SPAN
6914 ></DT
6915 ><DD
6916 ><P
6917 >Specifies the file server machine on which server processes do not check for authorization.</P
6918 ></DD
6919 ></DL
6920 ></DIV
6921 ></P
6922 ></LI
6923 ></OL
6924 ></DIV
6925 ><DIV
6926 CLASS="sect2"
6927 ><H2
6928 CLASS="sect2"
6929 ><A
6930 NAME="HDRWQ127"
6931 >To enable authorization checking on a server machine</A
6932 ></H2
6933 ><OL
6934 TYPE="1"
6935 ><LI
6936 ><P
6937 >Reenable authorization checking. (No privilege is required because the machine is not currently checking for
6938           authorization.) For detailed syntax information, see the preceding section. <PRE
6939 CLASS="programlisting"
6940 >&#13;   % <SPAN
6941 CLASS="bold"
6942 ><B
6943 CLASS="emphasis"
6944 >bos setauth</B
6945 ></SPAN
6946 > &#60;<VAR
6947 CLASS="replaceable"
6948 >machine name</VAR
6949 >&#62; <SPAN
6950 CLASS="bold"
6951 ><B
6952 CLASS="emphasis"
6953 >on</B
6954 ></SPAN
6955 >
6956 </PRE
6957 ></P
6958 ></LI
6959 ></OL
6960 ></DIV
6961 ><DIV
6962 CLASS="sect2"
6963 ><H2
6964 CLASS="sect2"
6965 ><A
6966 NAME="HDRWQ128"
6967 >Bypassing Mutual Authentication for an Individual Command</A
6968 ></H2
6969 ><P
6970 >Several of the server processes allow any user (not just system administrators) to disable mutual authentication when
6971       issuing a command. The server process treats the issuer as the unauthenticated user <SPAN
6972 CLASS="bold"
6973 ><B
6974 CLASS="emphasis"
6975 >anonymous</B
6976 ></SPAN
6977 >.</P
6978 ><P
6979 >The facilities for preventing mutual authentication are provided for use in emergencies (such as the key emergency
6980       discussed in <A
6981 HREF="c20494.html#HDRWQ370"
6982 >Handling Server Encryption Key Emergencies</A
6983 >). During normal circumstances,
6984       authorization checking is turned on, making it useless to prevent authentication: the server processes refuse to perform
6985       privileged commands for the user <SPAN
6986 CLASS="bold"
6987 ><B
6988 CLASS="emphasis"
6989 >anonymous</B
6990 ></SPAN
6991 >.</P
6992 ><P
6993 >It can be useful to prevent authentication when authorization checking is turned off. The very act of trying to
6994       authenticate can cause problems if the server cannot understand a particular encryption key, as is likely to happen in a key
6995       emergency.</P
6996 ></DIV
6997 ><DIV
6998 CLASS="sect2"
6999 ><H2
7000 CLASS="sect2"
7001 ><A
7002 NAME="HDRWQ129"
7003 >To bypass mutual authentication for bos, kas, pts, and vos commands</A
7004 ></H2
7005 ><P
7006 >Provide the <SPAN
7007 CLASS="bold"
7008 ><B
7009 CLASS="emphasis"
7010 >-noauth</B
7011 ></SPAN
7012 > flag which is available on many of the commands in the suites. To
7013       verify that a command accepts the flag, issue the <SPAN
7014 CLASS="bold"
7015 ><B
7016 CLASS="emphasis"
7017 >help</B
7018 ></SPAN
7019 > command in its suite, or consult the
7020       command's reference page in the <SPAN
7021 CLASS="emphasis"
7022 ><I
7023 CLASS="emphasis"
7024 >IBM AFS Administration Reference</I
7025 ></SPAN
7026 > (the reference page also specifies the
7027       shortest acceptable abbreviation for the flag on each command). The suites' <SPAN
7028 CLASS="bold"
7029 ><B
7030 CLASS="emphasis"
7031 >apropos</B
7032 ></SPAN
7033 > and
7034       <SPAN
7035 CLASS="bold"
7036 ><B
7037 CLASS="emphasis"
7038 >help</B
7039 ></SPAN
7040 > commands do not themselves accept the flag.</P
7041 ><P
7042 >You can bypass mutual authentication for all <SPAN
7043 CLASS="bold"
7044 ><B
7045 CLASS="emphasis"
7046 >kas</B
7047 ></SPAN
7048 > commands issued during an interactive
7049       session by including the <SPAN
7050 CLASS="bold"
7051 ><B
7052 CLASS="emphasis"
7053 >-noauth</B
7054 ></SPAN
7055 > flag on the <SPAN
7056 CLASS="bold"
7057 ><B
7058 CLASS="emphasis"
7059 >kas interactive</B
7060 ></SPAN
7061 >
7062       command. If you have already entered interactive mode with an authenticated identity, issue the <SPAN
7063 CLASS="bold"
7064 ><B
7065 CLASS="emphasis"
7066 >(kas)
7067       noauthentication</B
7068 ></SPAN
7069 > command to assume the <SPAN
7070 CLASS="bold"
7071 ><B
7072 CLASS="emphasis"
7073 >anonymous</B
7074 ></SPAN
7075 > identity.</P
7076 ></DIV
7077 ><DIV
7078 CLASS="sect2"
7079 ><H2
7080 CLASS="sect2"
7081 ><A
7082 NAME="Header_151"
7083 >To bypass mutual authentication for fs commands</A
7084 ></H2
7085 ><P
7086 >This is not possible, except by issuing the <SPAN
7087 CLASS="bold"
7088 ><B
7089 CLASS="emphasis"
7090 >unlog</B
7091 ></SPAN
7092 > command to discard your tokens before
7093       issuing the <SPAN
7094 CLASS="bold"
7095 ><B
7096 CLASS="emphasis"
7097 >fs</B
7098 ></SPAN
7099 > command.</P
7100 ></DIV
7101 ></DIV
7102 ><DIV
7103 CLASS="sect1"
7104 ><H1
7105 CLASS="sect1"
7106 ><A
7107 NAME="HDRWQ130"
7108 >Adding or Removing Disks and Partitions</A
7109 ></H1
7110 ><P
7111 >AFS makes it very easy to add storage space to your cell, just by adding disks to existing file server machines. This
7112     section explains how to install or remove a disk used to store AFS volumes. (Another way to add storage space is to install
7113     additional server machines, as instructed in the <SPAN
7114 CLASS="emphasis"
7115 ><I
7116 CLASS="emphasis"
7117 >IBM AFS Quick Beginnings</I
7118 ></SPAN
7119 >.)</P
7120 ><P
7121 >Both adding and removing a disk cause at least a brief file system outage, because you must restart the <SPAN
7122 CLASS="bold"
7123 ><B
7124 CLASS="emphasis"
7125 >fs</B
7126 ></SPAN
7127 > process to have it recognize the new set of server partitions. Some operating systems require that you
7128     shut the machine off before adding or removing a disk, in which case you must shut down all of the AFS server processes first.
7129     Otherwise, the AFS-related aspects of adding or removing a disk are not complicated, so the duration of the outage depends
7130     mostly on how long it takes to install or remove the disk itself.</P
7131 ><P
7132 >The following instructions for installing a new disk completely prepare it to house AFS volumes. You can then use the
7133     <SPAN
7134 CLASS="bold"
7135 ><B
7136 CLASS="emphasis"
7137 >vos create</B
7138 ></SPAN
7139 > command to create new volumes, or the <SPAN
7140 CLASS="bold"
7141 ><B
7142 CLASS="emphasis"
7143 >vos move</B
7144 ></SPAN
7145 >
7146     command to move existing ones from other partitions. For instructions, see <A
7147 HREF="c8420.html#HDRWQ185"
7148 >Creating Read/write
7149     Volumes</A
7150 > and <A
7151 HREF="c8420.html#HDRWQ226"
7152 >Moving Volumes</A
7153 >. The instructions for removing a disk are basically the
7154     reverse of the installation instructions, but include extra steps that protect against data loss.</P
7155 ><P
7156 >A server machines can house 256 AFS server partitions, each one mounted at a directory with a name of the form <SPAN
7157 CLASS="bold"
7158 ><B
7159 CLASS="emphasis"
7160 >/vicep</B
7161 ></SPAN
7162 ><SPAN
7163 CLASS="emphasis"
7164 ><I
7165 CLASS="emphasis"
7166 >index</I
7167 ></SPAN
7168 >, where <SPAN
7169 CLASS="emphasis"
7170 ><I
7171 CLASS="emphasis"
7172 >index</I
7173 ></SPAN
7174 > is one or two lowercase letters. By
7175     convention, the first partition on a machine is mounted at <SPAN
7176 CLASS="bold"
7177 ><B
7178 CLASS="emphasis"
7179 >/vicepa</B
7180 ></SPAN
7181 >, the second at <SPAN
7182 CLASS="bold"
7183 ><B
7184 CLASS="emphasis"
7185 >/vicepb</B
7186 ></SPAN
7187 >, and so on to the twenty-sixth at <SPAN
7188 CLASS="bold"
7189 ><B
7190 CLASS="emphasis"
7191 >/vicepz</B
7192 ></SPAN
7193 >. Additional partitions
7194     are mounted at <SPAN
7195 CLASS="bold"
7196 ><B
7197 CLASS="emphasis"
7198 >/vicepaa</B
7199 ></SPAN
7200 > through <SPAN
7201 CLASS="bold"
7202 ><B
7203 CLASS="emphasis"
7204 >/vicepaz</B
7205 ></SPAN
7206 > and so on up to
7207     <SPAN
7208 CLASS="bold"
7209 ><B
7210 CLASS="emphasis"
7211 >/vicepiv</B
7212 ></SPAN
7213 >. Using the letters consecutively is not required, but is simpler.</P
7214 ><P
7215 >Mount each <SPAN
7216 CLASS="bold"
7217 ><B
7218 CLASS="emphasis"
7219 >/vicep</B
7220 ></SPAN
7221 > directory directly under the local file system's root directory (
7222     <SPAN
7223 CLASS="bold"
7224 ><B
7225 CLASS="emphasis"
7226 >/</B
7227 ></SPAN
7228 > ), not as a subdirectory of any other directory; for example, <SPAN
7229 CLASS="bold"
7230 ><B
7231 CLASS="emphasis"
7232 >/usr/vicepa</B
7233 ></SPAN
7234 > is not an acceptable location. You must also map the directory to the partition's device name
7235     in the file server machine's file systems registry file (<SPAN
7236 CLASS="bold"
7237 ><B
7238 CLASS="emphasis"
7239 >/etc/fstab</B
7240 ></SPAN
7241 > or equivalent).</P
7242 ><P
7243 >These instructions assume that the machine's AFS initialization file includes the following command to restart the BOS
7244     Server after each reboot. The BOS Server starts the other AFS server processes listed in the local <SPAN
7245 CLASS="bold"
7246 ><B
7247 CLASS="emphasis"
7248 >/usr/afs/local/BosConfig</B
7249 ></SPAN
7250 > file. For information on the <SPAN
7251 CLASS="bold"
7252 ><B
7253 CLASS="emphasis"
7254 >bosserver</B
7255 ></SPAN
7256 >
7257     command's optional arguments, see its reference page in the <SPAN
7258 CLASS="emphasis"
7259 ><I
7260 CLASS="emphasis"
7261 >IBM AFS Administration Reference</I
7262 ></SPAN
7263 >.</P
7264 ><PRE
7265 CLASS="programlisting"
7266 >&#13;   /usr/afs/bin/bosserver &#38;
7267 </PRE
7268 ><DIV
7269 CLASS="sect2"
7270 ><H2
7271 CLASS="sect2"
7272 ><A
7273 NAME="HDRWQ131"
7274 >To add and mount a new disk to house AFS volumes</A
7275 ></H2
7276 ><OL
7277 TYPE="1"
7278 ><LI
7279 ><P
7280 >Become the local superuser <SPAN
7281 CLASS="bold"
7282 ><B
7283 CLASS="emphasis"
7284 >root</B
7285 ></SPAN
7286 > on the machine, if you are not already, by issuing
7287           the <SPAN
7288 CLASS="bold"
7289 ><B
7290 CLASS="emphasis"
7291 >su</B
7292 ></SPAN
7293 > command. <PRE
7294 CLASS="programlisting"
7295 >&#13;   % <SPAN
7296 CLASS="bold"
7297 ><B
7298 CLASS="emphasis"
7299 >su root</B
7300 ></SPAN
7301 >
7302    Password: <VAR
7303 CLASS="replaceable"
7304 >root_password</VAR
7305 >
7306 </PRE
7307 ></P
7308 ></LI
7309 ><LI
7310 ><P
7311 >Decide how many AFS partitions to divide the new disk into and the names of the directories at which to mount them
7312           (the introduction to this section describes the naming conventions). To display the names of the existing server
7313           partitions on the machine, issue the <SPAN
7314 CLASS="bold"
7315 ><B
7316 CLASS="emphasis"
7317 >vos listpart</B
7318 ></SPAN
7319 > command. Include the <SPAN
7320 CLASS="bold"
7321 ><B
7322 CLASS="emphasis"
7323 >-localauth</B
7324 ></SPAN
7325 > flag because you are logged in as the local superuser <SPAN
7326 CLASS="bold"
7327 ><B
7328 CLASS="emphasis"
7329 >root</B
7330 ></SPAN
7331 > but do not necessarily have administrative tokens. <PRE
7332 CLASS="programlisting"
7333 >&#13;   # <SPAN
7334 CLASS="bold"
7335 ><B
7336 CLASS="emphasis"
7337 >vos listpart</B
7338 ></SPAN
7339 > &#60;<VAR
7340 CLASS="replaceable"
7341 >machine name</VAR
7342 >&#62; <SPAN
7343 CLASS="bold"
7344 ><B
7345 CLASS="emphasis"
7346 >-localauth</B
7347 ></SPAN
7348 >
7349 </PRE
7350 ></P
7351 ><P
7352 >where <DIV
7353 CLASS="variablelist"
7354 ><DL
7355 ><DT
7356 ><SPAN
7357 CLASS="bold"
7358 ><B
7359 CLASS="emphasis"
7360 >listp</B
7361 ></SPAN
7362 ></DT
7363 ><DD
7364 ><P
7365 >Is the shortest acceptable abbreviation of <SPAN
7366 CLASS="bold"
7367 ><B
7368 CLASS="emphasis"
7369 >listpart</B
7370 ></SPAN
7371 >.</P
7372 ></DD
7373 ><DT
7374 ><SPAN
7375 CLASS="bold"
7376 ><B
7377 CLASS="emphasis"
7378 >machine name</B
7379 ></SPAN
7380 ></DT
7381 ><DD
7382 ><P
7383 >Names the local file server machine.</P
7384 ></DD
7385 ><DT
7386 ><SPAN
7387 CLASS="bold"
7388 ><B
7389 CLASS="emphasis"
7390 >-localauth</B
7391 ></SPAN
7392 ></DT
7393 ><DD
7394 ><P
7395 >Constructs a server ticket using a key from the local <SPAN
7396 CLASS="bold"
7397 ><B
7398 CLASS="emphasis"
7399 >/usr/afs/etc/KeyFile</B
7400 ></SPAN
7401 >
7402                   file. The <SPAN
7403 CLASS="bold"
7404 ><B
7405 CLASS="emphasis"
7406 >bos</B
7407 ></SPAN
7408 > command interpreter presents it to the BOS Server during mutual
7409                   authentication.</P
7410 ></DD
7411 ></DL
7412 ></DIV
7413 ></P
7414 ></LI
7415 ><LI
7416 ><P
7417 >Create each directory at which to mount a partition. <PRE
7418 CLASS="programlisting"
7419 >&#13;   # <SPAN
7420 CLASS="bold"
7421 ><B
7422 CLASS="emphasis"
7423 >mkdir /vicep</B
7424 ></SPAN
7425 ><VAR
7426 CLASS="replaceable"
7427 >x</VAR
7428 >[<VAR
7429 CLASS="replaceable"
7430 >x</VAR
7431 >]
7432 </PRE
7433 ></P
7434 ></LI
7435 ><LI
7436 ><P
7437 ><A
7438 NAME="LIWQ132"
7439 ></A
7440 >Using a text editor, create an entry in the machine's file systems registry file (<SPAN
7441 CLASS="bold"
7442 ><B
7443 CLASS="emphasis"
7444 >/etc/fstab</B
7445 ></SPAN
7446 > or equivalent) for each new disk partition, mapping its device name to the directory you
7447           created in the previous step. Refer to existing entries in the file to learn the proper format, which varies for different
7448           operating systems.</P
7449 ></LI
7450 ><LI
7451 ><P
7452 ><A
7453 NAME="LIWQ133"
7454 ></A
7455 >If the operating system requires that you shut off the machine to install a new disk, issue
7456           the <SPAN
7457 CLASS="bold"
7458 ><B
7459 CLASS="emphasis"
7460 >bos shutdown</B
7461 ></SPAN
7462 > command to shut down all AFS server processes other than the BOS Server
7463           (it terminates safely when you shut off the machine). Include the <SPAN
7464 CLASS="bold"
7465 ><B
7466 CLASS="emphasis"
7467 >-localauth</B
7468 ></SPAN
7469 > flag because
7470           you are logged in as the local superuser <SPAN
7471 CLASS="bold"
7472 ><B
7473 CLASS="emphasis"
7474 >root</B
7475 ></SPAN
7476 > but do not necessarily have administrative
7477           tokens. For a complete description of the command, see <A
7478 HREF="c6449.html#HDRWQ168"
7479 >To stop processes temporarily</A
7480 >.
7481           <PRE
7482 CLASS="programlisting"
7483 >&#13;   # <SPAN
7484 CLASS="bold"
7485 ><B
7486 CLASS="emphasis"
7487 >bos shutdown</B
7488 ></SPAN
7489 > &#60;<VAR
7490 CLASS="replaceable"
7491 >machine name</VAR
7492 >&#62; <SPAN
7493 CLASS="bold"
7494 ><B
7495 CLASS="emphasis"
7496 >-localauth</B
7497 ></SPAN
7498 > [<SPAN
7499 CLASS="bold"
7500 ><B
7501 CLASS="emphasis"
7502 >-wait</B
7503 ></SPAN
7504 >]
7505 </PRE
7506 ></P
7507 ></LI
7508 ><LI
7509 ><P
7510 ><A
7511 NAME="LIWQ134"
7512 ></A
7513 >If necessary, shut off the machine. Install and format the new disk according to the
7514           instructions provided by the disk and operating system vendors. If necessary, edit the disk's partition table to reflect
7515           the changes you made to the files system registry file in step <A
7516 HREF="c3025.html#LIWQ132"
7517 >4</A
7518 >; consult the operating
7519           system documentation for instructions.</P
7520 ></LI
7521 ><LI
7522 ><P
7523 >If you shut off the machine down in step <A
7524 HREF="c3025.html#LIWQ134"
7525 >6</A
7526 >, turn it on. Otherwise, issue the
7527           <SPAN
7528 CLASS="bold"
7529 ><B
7530 CLASS="emphasis"
7531 >bos restart</B
7532 ></SPAN
7533 > command to restart the <SPAN
7534 CLASS="bold"
7535 ><B
7536 CLASS="emphasis"
7537 >fs</B
7538 ></SPAN
7539 > process, forcing
7540           it to recognize the new set of server partitions. Include the <SPAN
7541 CLASS="bold"
7542 ><B
7543 CLASS="emphasis"
7544 >-localauth</B
7545 ></SPAN
7546 > flag because you
7547           are logged in as the local superuser <SPAN
7548 CLASS="bold"
7549 ><B
7550 CLASS="emphasis"
7551 >root</B
7552 ></SPAN
7553 > but do not necessarily have administrative
7554           tokens. For complete instructions for the <SPAN
7555 CLASS="bold"
7556 ><B
7557 CLASS="emphasis"
7558 >bos restart</B
7559 ></SPAN
7560 > command, see <A
7561 HREF="c6449.html#HDRWQ170"
7562 >Stopping and Immediately Restarting Processes</A
7563 >. <PRE
7564 CLASS="programlisting"
7565 >&#13;   # <SPAN
7566 CLASS="bold"
7567 ><B
7568 CLASS="emphasis"
7569 >bos restart</B
7570 ></SPAN
7571 > &#60;<VAR
7572 CLASS="replaceable"
7573 >machine name</VAR
7574 >&#62;  <SPAN
7575 CLASS="bold"
7576 ><B
7577 CLASS="emphasis"
7578 >fs -localauth</B
7579 ></SPAN
7580 >
7581 </PRE
7582 ></P
7583 ></LI
7584 ><LI
7585 ><P
7586 >Issue the <SPAN
7587 CLASS="bold"
7588 ><B
7589 CLASS="emphasis"
7590 >bos status</B
7591 ></SPAN
7592 > command to verify that all server processes are running
7593           correctly. For more detailed instructions, see <A
7594 HREF="c6449.html#HDRWQ158"
7595 >Displaying Process Status and Information from the
7596           BosConfig File</A
7597 >. <PRE
7598 CLASS="programlisting"
7599 >&#13;   # <SPAN
7600 CLASS="bold"
7601 ><B
7602 CLASS="emphasis"
7603 >bos status</B
7604 ></SPAN
7605 > &#60;<VAR
7606 CLASS="replaceable"
7607 >machine name</VAR
7608 >&#62;
7609 </PRE
7610 ></P
7611 ></LI
7612 ></OL
7613 ></DIV
7614 ><DIV
7615 CLASS="sect2"
7616 ><H2
7617 CLASS="sect2"
7618 ><A
7619 NAME="HDRWQ135"
7620 >To unmount and remove a disk housing AFS volumes</A
7621 ></H2
7622 ><OL
7623 TYPE="1"
7624 ><LI
7625 ><P
7626 >Verify that you are listed in the <SPAN
7627 CLASS="bold"
7628 ><B
7629 CLASS="emphasis"
7630 >/usr/afs/etc/UserList</B
7631 ></SPAN
7632 > file. If necessary, issue
7633           the <SPAN
7634 CLASS="bold"
7635 ><B
7636 CLASS="emphasis"
7637 >bos listusers</B
7638 ></SPAN
7639 > command, which is fully described in <A
7640 HREF="c32432.html#HDRWQ593"
7641 >To
7642           display the users in the UserList file</A
7643 >. <PRE
7644 CLASS="programlisting"
7645 >&#13;   % <SPAN
7646 CLASS="bold"
7647 ><B
7648 CLASS="emphasis"
7649 >bos listusers</B
7650 ></SPAN
7651 > &#60;<VAR
7652 CLASS="replaceable"
7653 >machine name</VAR
7654 >&#62;
7655 </PRE
7656 ></P
7657 ></LI
7658 ><LI
7659 ><P
7660 >Issue the <SPAN
7661 CLASS="bold"
7662 ><B
7663 CLASS="emphasis"
7664 >vos listvol</B
7665 ></SPAN
7666 > command to list the volumes housed on each partition of each
7667           disk you are about to remove, in preparation for removing them or moving them to other partitions. For detailed
7668           instructions, see <A
7669 HREF="c8420.html#HDRWQ219"
7670 >Displaying Volume Headers</A
7671 >. <PRE
7672 CLASS="programlisting"
7673 >&#13;   % <SPAN
7674 CLASS="bold"
7675 ><B
7676 CLASS="emphasis"
7677 >vos listvol</B
7678 ></SPAN
7679 > &#60;<VAR
7680 CLASS="replaceable"
7681 >machine name</VAR
7682 >&#62; [&#60;<VAR
7683 CLASS="replaceable"
7684 >partition name</VAR
7685 >&#62;]
7686 </PRE
7687 ></P
7688 ></LI
7689 ><LI
7690 ><P
7691 >Move any volume you wish to retain in the file system to another partition. You can move only read/write volumes.
7692           For more detailed instructions, and for instructions on moving read-only and backup volumes, see <A
7693 HREF="c8420.html#HDRWQ226"
7694 >Moving Volumes</A
7695 >. <PRE
7696 CLASS="programlisting"
7697 >&#13;   % <SPAN
7698 CLASS="bold"
7699 ><B
7700 CLASS="emphasis"
7701 >vos move</B
7702 ></SPAN
7703 >  &#60;<VAR
7704 CLASS="replaceable"
7705 >volume name or ID</VAR
7706 >&#62;  \
7707         &#60;<VAR
7708 CLASS="replaceable"
7709 >machine name on source</VAR
7710 >&#62; &#60;<VAR
7711 CLASS="replaceable"
7712 >partition name on source</VAR
7713 >&#62;  \
7714         &#60;<VAR
7715 CLASS="replaceable"
7716 >machine name on destination</VAR
7717 >&#62; &#60;<VAR
7718 CLASS="replaceable"
7719 >partition name on destination</VAR
7720 >&#62;
7721 </PRE
7722 ></P
7723 ></LI
7724 ><LI
7725 ><P
7726 ><SPAN
7727 CLASS="bold"
7728 ><B
7729 CLASS="emphasis"
7730 >(Optional)</B
7731 ></SPAN
7732 > If there are any volumes you do not wish to retain, back them up using
7733           the <SPAN
7734 CLASS="bold"
7735 ><B
7736 CLASS="emphasis"
7737 >vos dump</B
7738 ></SPAN
7739 > command or the AFS Backup System. See <A
7740 HREF="c8420.html#HDRWQ240"
7741 >Dumping and
7742           Restoring Volumes</A
7743 > or <A
7744 HREF="c15383.html#HDRWQ296"
7745 >Backing Up Data</A
7746 >, respectively.</P
7747 ></LI
7748 ><LI
7749 ><P
7750 >Become the local superuser <SPAN
7751 CLASS="bold"
7752 ><B
7753 CLASS="emphasis"
7754 >root</B
7755 ></SPAN
7756 > on the machine, if you are not already, by issuing
7757           the <SPAN
7758 CLASS="bold"
7759 ><B
7760 CLASS="emphasis"
7761 >su</B
7762 ></SPAN
7763 > command. <PRE
7764 CLASS="programlisting"
7765 >&#13;   % <SPAN
7766 CLASS="bold"
7767 ><B
7768 CLASS="emphasis"
7769 >su root</B
7770 ></SPAN
7771 >
7772    Password: <VAR
7773 CLASS="replaceable"
7774 >root_password</VAR
7775 >
7776 </PRE
7777 ></P
7778 ></LI
7779 ><LI
7780 ><P
7781 >Issue the <SPAN
7782 CLASS="bold"
7783 ><B
7784 CLASS="emphasis"
7785 >umount</B
7786 ></SPAN
7787 > command, repeating it for each partition on the disk to be
7788           removed. <PRE
7789 CLASS="programlisting"
7790 >&#13;   # <SPAN
7791 CLASS="bold"
7792 ><B
7793 CLASS="emphasis"
7794 >cd /</B
7795 ></SPAN
7796 >
7797    # <SPAN
7798 CLASS="bold"
7799 ><B
7800 CLASS="emphasis"
7801 >umount /dev/</B
7802 ></SPAN
7803 >&#60;<VAR
7804 CLASS="replaceable"
7805 >partition_block_device_name</VAR
7806 >&#62;
7807 </PRE
7808 ></P
7809 ></LI
7810 ><LI
7811 ><P
7812 ><A
7813 NAME="LIWQ136"
7814 ></A
7815 >Using a text editor, remove or comment out each partition's entry from the machine's file
7816           systems registry file (<SPAN
7817 CLASS="bold"
7818 ><B
7819 CLASS="emphasis"
7820 >/etc/fstab</B
7821 ></SPAN
7822 > or equivalent).</P
7823 ></LI
7824 ><LI
7825 ><P
7826 >Remove the <SPAN
7827 CLASS="bold"
7828 ><B
7829 CLASS="emphasis"
7830 >/vicep</B
7831 ></SPAN
7832 > directory associated with each partition. <PRE
7833 CLASS="programlisting"
7834 >&#13;   # <SPAN
7835 CLASS="bold"
7836 ><B
7837 CLASS="emphasis"
7838 >rmdir /vicep</B
7839 ></SPAN
7840 >xx
7841 </PRE
7842 ></P
7843 ></LI
7844 ><LI
7845 ><P
7846 >If the operating system requires that you shut off the machine to remove a disk, issue the <SPAN
7847 CLASS="bold"
7848 ><B
7849 CLASS="emphasis"
7850 >bos
7851           shutdown</B
7852 ></SPAN
7853 > command to shut down all AFS server processes other than the BOS Server (it terminates safely when you
7854           shut off the machine). Include the <SPAN
7855 CLASS="bold"
7856 ><B
7857 CLASS="emphasis"
7858 >-localauth</B
7859 ></SPAN
7860 > flag because you are logged in as the local
7861           superuser <SPAN
7862 CLASS="bold"
7863 ><B
7864 CLASS="emphasis"
7865 >root</B
7866 ></SPAN
7867 > but do not necessarily have administrative tokens. For a complete
7868           description of the command, see <A
7869 HREF="c6449.html#HDRWQ168"
7870 >To stop processes temporarily</A
7871 >. <PRE
7872 CLASS="programlisting"
7873 >&#13;   # <SPAN
7874 CLASS="bold"
7875 ><B
7876 CLASS="emphasis"
7877 >bos shutdown</B
7878 ></SPAN
7879 > &#60;<VAR
7880 CLASS="replaceable"
7881 >machine name</VAR
7882 >&#62; <SPAN
7883 CLASS="bold"
7884 ><B
7885 CLASS="emphasis"
7886 >-localauth</B
7887 ></SPAN
7888 > [<SPAN
7889 CLASS="bold"
7890 ><B
7891 CLASS="emphasis"
7892 >-wait</B
7893 ></SPAN
7894 >]
7895 </PRE
7896 ></P
7897 ></LI
7898 ><LI
7899 ><P
7900 ><A
7901 NAME="LIWQ137"
7902 ></A
7903 >If necessary, shut off the machine. Remove the disk according to the instructions provided by
7904           the disk and operating system vendors. If necessary, edit the disk's partition table to reflect the changes you made to
7905           the files system registry file in step <A
7906 HREF="c3025.html#LIWQ136"
7907 >7</A
7908 >; consult the operating system documentation for
7909           instructions.</P
7910 ></LI
7911 ><LI
7912 ><P
7913 >If you shut off the machine down in step <A
7914 HREF="c3025.html#LIWQ137"
7915 >10</A
7916 >, turn it on. Otherwise, issue the
7917           <SPAN
7918 CLASS="bold"
7919 ><B
7920 CLASS="emphasis"
7921 >bos restart</B
7922 ></SPAN
7923 > command to restart the <SPAN
7924 CLASS="bold"
7925 ><B
7926 CLASS="emphasis"
7927 >fs</B
7928 ></SPAN
7929 > process, forcing
7930           it to recognize the new set of server partitions. Include the <SPAN
7931 CLASS="bold"
7932 ><B
7933 CLASS="emphasis"
7934 >-localauth</B
7935 ></SPAN
7936 > flag because you
7937           are logged in as the local superuser <SPAN
7938 CLASS="bold"
7939 ><B
7940 CLASS="emphasis"
7941 >root</B
7942 ></SPAN
7943 > but do not necessarily have administrative
7944           tokens. For complete instructions for the <SPAN
7945 CLASS="bold"
7946 ><B
7947 CLASS="emphasis"
7948 >bos restart</B
7949 ></SPAN
7950 > command, see <A
7951 HREF="c6449.html#HDRWQ170"
7952 >Stopping and Immediately Restarting Processes</A
7953 >. <PRE
7954 CLASS="programlisting"
7955 >&#13;   # <SPAN
7956 CLASS="bold"
7957 ><B
7958 CLASS="emphasis"
7959 >bos restart</B
7960 ></SPAN
7961 > &#60;<VAR
7962 CLASS="replaceable"
7963 >machine name</VAR
7964 >&#62;  <SPAN
7965 CLASS="bold"
7966 ><B
7967 CLASS="emphasis"
7968 >fs -localauth</B
7969 ></SPAN
7970 >
7971 </PRE
7972 ></P
7973 ></LI
7974 ><LI
7975 ><P
7976 >Issue the <SPAN
7977 CLASS="bold"
7978 ><B
7979 CLASS="emphasis"
7980 >bos status</B
7981 ></SPAN
7982 > command to verify that all server processes are running
7983           correctly. For more detailed instructions, see <A
7984 HREF="c6449.html#HDRWQ158"
7985 >Displaying Process Status and Information from the
7986           BosConfig File</A
7987 >. <PRE
7988 CLASS="programlisting"
7989 >&#13;   # <SPAN
7990 CLASS="bold"
7991 ><B
7992 CLASS="emphasis"
7993 >bos status</B
7994 ></SPAN
7995 > &#60;<VAR
7996 CLASS="replaceable"
7997 >machine name</VAR
7998 >&#62;
7999 </PRE
8000 ></P
8001 ></LI
8002 ></OL
8003 ></DIV
8004 ></DIV
8005 ><DIV
8006 CLASS="sect1"
8007 ><H1
8008 CLASS="sect1"
8009 ><A
8010 NAME="HDRWQ138"
8011 >Managing Server IP Addresses and VLDB Server Entries</A
8012 ></H1
8013 ><P
8014 >The AFS support for multihomed file server machines is largely automatic. The File Server process records the IP addresses
8015     of its file server machine's network interfaces in the local <SPAN
8016 CLASS="bold"
8017 ><B
8018 CLASS="emphasis"
8019 >/usr/afs/local/sysid</B
8020 ></SPAN
8021 > file and also
8022     registers them in a <SPAN
8023 CLASS="emphasis"
8024 ><I
8025 CLASS="emphasis"
8026 >server entry</I
8027 ></SPAN
8028 > in the Volume Location Database (VLDB). The <SPAN
8029 CLASS="bold"
8030 ><B
8031 CLASS="emphasis"
8032 >sysid</B
8033 ></SPAN
8034 > file and server entry are identified by the same unique number, which creates an association
8035     between them.</P
8036 ><P
8037 >When the Cache Manager requests volume location information, the Volume Location (VL) Server provides all of the
8038     interfaces registered for each server machine that houses the volume. This enables the Cache Manager to make use of multiple
8039     addresses when accessing AFS data stored on a multihomed file server machine.</P
8040 ><P
8041 >If you wish, you can control which interfaces the File Server registers in its VLDB server entry by creating two files in
8042     the local <SPAN
8043 CLASS="bold"
8044 ><B
8045 CLASS="emphasis"
8046 >/usr/afs/local</B
8047 ></SPAN
8048 > directory: <SPAN
8049 CLASS="bold"
8050 ><B
8051 CLASS="emphasis"
8052 >NetInfo</B
8053 ></SPAN
8054 > and <SPAN
8055 CLASS="bold"
8056 ><B
8057 CLASS="emphasis"
8058 >NetRestrict</B
8059 ></SPAN
8060 >. Each time the File Server restarts, it builds a list of the local machine's interfaces by
8061     reading the <SPAN
8062 CLASS="bold"
8063 ><B
8064 CLASS="emphasis"
8065 >NetInfo</B
8066 ></SPAN
8067 > file, if it exists. If you do not create the file, the File Server uses the
8068     list of network interfaces configured with the operating system. It then removes from the list any addresses that appear in the
8069     <SPAN
8070 CLASS="bold"
8071 ><B
8072 CLASS="emphasis"
8073 >NetRestrict</B
8074 ></SPAN
8075 > file, if it exists. The File Server records the resulting list in the <SPAN
8076 CLASS="bold"
8077 ><B
8078 CLASS="emphasis"
8079 >sysid</B
8080 ></SPAN
8081 > file and registers the interfaces in the VLDB server entry that has the same unique
8082     identifier.</P
8083 ><P
8084 >On database server machines, the <SPAN
8085 CLASS="bold"
8086 ><B
8087 CLASS="emphasis"
8088 >NetInfo</B
8089 ></SPAN
8090 > and <SPAN
8091 CLASS="bold"
8092 ><B
8093 CLASS="emphasis"
8094 >NetRestrict</B
8095 ></SPAN
8096 >
8097     files also determine which interfaces the Ubik database synchronization library uses when communicating with the database server
8098     processes running on other database server machines.</P
8099 ><P
8100 >There is a maximum number of IP addresses in each server entry, as documented in the <SPAN
8101 CLASS="emphasis"
8102 ><I
8103 CLASS="emphasis"
8104 >IBM AFS Release
8105     Notes</I
8106 ></SPAN
8107 >. If a multihomed file server machine has more interfaces than the maximum, AFS simply ignores the excess ones.
8108     It is probably appropriate for such machines to use the <SPAN
8109 CLASS="bold"
8110 ><B
8111 CLASS="emphasis"
8112 >NetInfo</B
8113 ></SPAN
8114 > and <SPAN
8115 CLASS="bold"
8116 ><B
8117 CLASS="emphasis"
8118 >NetRestrict</B
8119 ></SPAN
8120 > files to control which interfaces are registered.</P
8121 ><P
8122 >If for some reason the <SPAN
8123 CLASS="bold"
8124 ><B
8125 CLASS="emphasis"
8126 >sysid</B
8127 ></SPAN
8128 > file no longer exists, the File Server creates a new one
8129     with a new unique identifier. When the File Server registers the contents of the new file, the Volume Location (VL) Server
8130     normally recognizes automatically that the new file corresponds to an existing server entry, and overwrites the existing server
8131     entry with the new file contents and identifier. However, it is best not to remove the <SPAN
8132 CLASS="bold"
8133 ><B
8134 CLASS="emphasis"
8135 >sysid</B
8136 ></SPAN
8137 >
8138     file if that can be avoided.</P
8139 ><P
8140 >Similarly, it is important not to copy the <SPAN
8141 CLASS="bold"
8142 ><B
8143 CLASS="emphasis"
8144 >sysid</B
8145 ></SPAN
8146 > file from one file server machine to
8147     another. If you commonly copy the contents of the <SPAN
8148 CLASS="bold"
8149 ><B
8150 CLASS="emphasis"
8151 >/usr/afs</B
8152 ></SPAN
8153 > directory from an existing machine
8154     as part of installing a new file server machine, be sure to remove the <SPAN
8155 CLASS="bold"
8156 ><B
8157 CLASS="emphasis"
8158 >sysid</B
8159 ></SPAN
8160 > file from the
8161     <SPAN
8162 CLASS="bold"
8163 ><B
8164 CLASS="emphasis"
8165 >/usr/afs/local</B
8166 ></SPAN
8167 > directory on the new machine before starting the File Server.</P
8168 ><P
8169 >There are certain cases where the VL Server cannot determine whether it is appropriate to overwrite an existing server
8170     entry with a new <SPAN
8171 CLASS="bold"
8172 ><B
8173 CLASS="emphasis"
8174 >sysid</B
8175 ></SPAN
8176 > file's contents and identifier. It then refuses to allow the File Server
8177     to register the interfaces, which prevents the File Server from starting. This can happen if, for example, a new <SPAN
8178 CLASS="bold"
8179 ><B
8180 CLASS="emphasis"
8181 >sysid</B
8182 ></SPAN
8183 > file includes two interfaces that currently are registered by themselves in separate server
8184     entries. In such cases, error messages in the <SPAN
8185 CLASS="bold"
8186 ><B
8187 CLASS="emphasis"
8188 >/usr/afs/log/VLLog</B
8189 ></SPAN
8190 > file on the VL Server machine
8191     and in the <SPAN
8192 CLASS="bold"
8193 ><B
8194 CLASS="emphasis"
8195 >/usr/afs/log/FileLog</B
8196 ></SPAN
8197 > file on the file server machine indicate that you need to use
8198     the <SPAN
8199 CLASS="bold"
8200 ><B
8201 CLASS="emphasis"
8202 >vos changeaddr</B
8203 ></SPAN
8204 > command to resolve the problem. Contact the AFS Product Support group for
8205     instructions and assistance.</P
8206 ><P
8207 >Except in this type of rare error case, the only appropriate use of the <SPAN
8208 CLASS="bold"
8209 ><B
8210 CLASS="emphasis"
8211 >vos changeaddr</B
8212 ></SPAN
8213 >
8214     command is to remove a VLDB server entry completely when you remove a file server machine from service. The VLDB can accommodate
8215     a maximum number of server entries, as specified in the <SPAN
8216 CLASS="emphasis"
8217 ><I
8218 CLASS="emphasis"
8219 >IBM AFS Release Notes</I
8220 ></SPAN
8221 >. Removing obsolete entries
8222     makes it possible to allocate server entries for new file server machines as required. See the instructions that follow.</P
8223 ><P
8224 >Do not use the <SPAN
8225 CLASS="bold"
8226 ><B
8227 CLASS="emphasis"
8228 >vos changeaddr</B
8229 ></SPAN
8230 > command to change the list of interfaces registered in a
8231     VLDB server entry. To change a file server machine's IP addresses and server entry, see the instructions that follow.</P
8232 ><DIV
8233 CLASS="sect2"
8234 ><H2
8235 CLASS="sect2"
8236 ><A
8237 NAME="Header_156"
8238 >To create or edit the server NetInfo file</A
8239 ></H2
8240 ><OL
8241 TYPE="1"
8242 ><LI
8243 ><P
8244 >Become the local superuser <SPAN
8245 CLASS="bold"
8246 ><B
8247 CLASS="emphasis"
8248 >root</B
8249 ></SPAN
8250 > on the machine, if you are not already, by issuing
8251           the <SPAN
8252 CLASS="bold"
8253 ><B
8254 CLASS="emphasis"
8255 >su</B
8256 ></SPAN
8257 > command. <PRE
8258 CLASS="programlisting"
8259 >&#13;   % <SPAN
8260 CLASS="bold"
8261 ><B
8262 CLASS="emphasis"
8263 >su root</B
8264 ></SPAN
8265 >
8266    Password: <VAR
8267 CLASS="replaceable"
8268 >root_password</VAR
8269 >
8270 </PRE
8271 ></P
8272 ></LI
8273 ><LI
8274 ><P
8275 >Using a text editor, open the <SPAN
8276 CLASS="bold"
8277 ><B
8278 CLASS="emphasis"
8279 >/usr/afs/local/NetInfo</B
8280 ></SPAN
8281 > file. Place one IP address in
8282           dotted decimal format (for example, <SAMP
8283 CLASS="computeroutput"
8284 >192.12.107.33</SAMP
8285 >) on each line. The order of entries is
8286           not significant.</P
8287 ></LI
8288 ><LI
8289 ><P
8290 >If you want the File Server to start using the revised list immediately, use the <SPAN
8291 CLASS="bold"
8292 ><B
8293 CLASS="emphasis"
8294 >bos
8295           restart</B
8296 ></SPAN
8297 > command to restart the <SPAN
8298 CLASS="bold"
8299 ><B
8300 CLASS="emphasis"
8301 >fs</B
8302 ></SPAN
8303 > process. For instructions, see <A
8304 HREF="c6449.html#HDRWQ170"
8305 >Stopping and Immediately Restarting Processes</A
8306 >.</P
8307 ></LI
8308 ></OL
8309 ></DIV
8310 ><DIV
8311 CLASS="sect2"
8312 ><H2
8313 CLASS="sect2"
8314 ><A
8315 NAME="Header_157"
8316 >To create or edit the server NetRestrict file</A
8317 ></H2
8318 ><OL
8319 TYPE="1"
8320 ><LI
8321 ><P
8322 >Become the local superuser <SPAN
8323 CLASS="bold"
8324 ><B
8325 CLASS="emphasis"
8326 >root</B
8327 ></SPAN
8328 > on the machine, if you are not already, by issuing
8329           the <SPAN
8330 CLASS="bold"
8331 ><B
8332 CLASS="emphasis"
8333 >su</B
8334 ></SPAN
8335 > command. <PRE
8336 CLASS="programlisting"
8337 >&#13;   % <SPAN
8338 CLASS="bold"
8339 ><B
8340 CLASS="emphasis"
8341 >su root</B
8342 ></SPAN
8343 >
8344    Password: <VAR
8345 CLASS="replaceable"
8346 >root_password</VAR
8347 >
8348 </PRE
8349 ></P
8350 ></LI
8351 ><LI
8352 ><P
8353 >Using a text editor, open the <SPAN
8354 CLASS="bold"
8355 ><B
8356 CLASS="emphasis"
8357 >/usr/afs/local/NetRestrict</B
8358 ></SPAN
8359 > file. Place one IP address
8360           in dotted decimal format on each line. The order of the addresses is not significant. Use the value <SPAN
8361 CLASS="bold"
8362 ><B
8363 CLASS="emphasis"
8364 >255</B
8365 ></SPAN
8366 > as a wildcard that represents all possible addresses in that field. For example, the entry
8367           <SAMP
8368 CLASS="computeroutput"
8369 >192.12.105.255</SAMP
8370 > indicates that the Cache Manager does not register any of the addresses in
8371           the 192.12.105 subnet.</P
8372 ></LI
8373 ><LI
8374 ><P
8375 >If you want the File Server to start using the revised list immediately, use the <SPAN
8376 CLASS="bold"
8377 ><B
8378 CLASS="emphasis"
8379 >bos
8380           restart</B
8381 ></SPAN
8382 > command to restart the <SPAN
8383 CLASS="bold"
8384 ><B
8385 CLASS="emphasis"
8386 >fs</B
8387 ></SPAN
8388 > process. For instructions, see <A
8389 HREF="c6449.html#HDRWQ170"
8390 >Stopping and Immediately Restarting Processes</A
8391 >.</P
8392 ></LI
8393 ></OL
8394 ></DIV
8395 ><DIV
8396 CLASS="sect2"
8397 ><H2
8398 CLASS="sect2"
8399 ><A
8400 NAME="Header_158"
8401 >To display all server entries from the VLDB</A
8402 ></H2
8403 ><OL
8404 TYPE="1"
8405 ><LI
8406 ><P
8407 >Issue the <SPAN
8408 CLASS="bold"
8409 ><B
8410 CLASS="emphasis"
8411 >vos listaddrs</B
8412 ></SPAN
8413 > command to display all server entries from the VLDB.
8414           <PRE
8415 CLASS="programlisting"
8416 >&#13;   % <SPAN
8417 CLASS="bold"
8418 ><B
8419 CLASS="emphasis"
8420 >vos listaddrs</B
8421 ></SPAN
8422 >
8423 </PRE
8424 ></P
8425 ><P
8426 >where <SPAN
8427 CLASS="bold"
8428 ><B
8429 CLASS="emphasis"
8430 >lista</B
8431 ></SPAN
8432 > is the shortest acceptable abbreviation of <SPAN
8433 CLASS="bold"
8434 ><B
8435 CLASS="emphasis"
8436 >listaddrs</B
8437 ></SPAN
8438 >.</P
8439 ><P
8440 >The output displays all server entries from the VLDB, each on its own line. If a file server machine is multihomed,
8441           all of its registered addresses appear on the line. The first one is the one reported as a volume's site in the output
8442           from the <SPAN
8443 CLASS="bold"
8444 ><B
8445 CLASS="emphasis"
8446 >vos examine</B
8447 ></SPAN
8448 > and <SPAN
8449 CLASS="bold"
8450 ><B
8451 CLASS="emphasis"
8452 >vos listvldb</B
8453 ></SPAN
8454 > commands.</P
8455 ><P
8456 >VLDB server entries record IP addresses, and the command interpreter has the local name service (either a process
8457           like the Domain Name Service or a local host table) translate them to hostnames before displaying them. If an IP address
8458           appears in the output, it is not possible to translate it.</P
8459 ><P
8460 >The existence of an entry does not necessarily indicate that the machine that is still an active file server
8461           machine. To remove obsolete server entries, see the following instructions.</P
8462 ></LI
8463 ></OL
8464 ></DIV
8465 ><DIV
8466 CLASS="sect2"
8467 ><H2
8468 CLASS="sect2"
8469 ><A
8470 NAME="Header_159"
8471 >To remove obsolete server entries from the VLDB</A
8472 ></H2
8473 ><OL
8474 TYPE="1"
8475 ><LI
8476 ><P
8477 >Verify that you are listed in the <SPAN
8478 CLASS="bold"
8479 ><B
8480 CLASS="emphasis"
8481 >/usr/afs/etc/UserList</B
8482 ></SPAN
8483 > file. If necessary, issue
8484           the <SPAN
8485 CLASS="bold"
8486 ><B
8487 CLASS="emphasis"
8488 >bos listusers</B
8489 ></SPAN
8490 > command, which is fully described in <A
8491 HREF="c32432.html#HDRWQ593"
8492 >To
8493           display the users in the UserList file</A
8494 >. <PRE
8495 CLASS="programlisting"
8496 >&#13;   % <SPAN
8497 CLASS="bold"
8498 ><B
8499 CLASS="emphasis"
8500 >bos listusers</B
8501 ></SPAN
8502 > &#60;<VAR
8503 CLASS="replaceable"
8504 >machine name</VAR
8505 >&#62;
8506 </PRE
8507 ></P
8508 ></LI
8509 ><LI
8510 ><P
8511 >Issue the <SPAN
8512 CLASS="bold"
8513 ><B
8514 CLASS="emphasis"
8515 >vos changeaddr</B
8516 ></SPAN
8517 > command to remove a server entry from the VLDB.
8518           <PRE
8519 CLASS="programlisting"
8520 >&#13;   % <SPAN
8521 CLASS="bold"
8522 ><B
8523 CLASS="emphasis"
8524 >vos changeaddr</B
8525 ></SPAN
8526 > &#60;<VAR
8527 CLASS="replaceable"
8528 >original IP address</VAR
8529 >&#62; <SPAN
8530 CLASS="bold"
8531 ><B
8532 CLASS="emphasis"
8533 >-remove</B
8534 ></SPAN
8535 >
8536 </PRE
8537 ></P
8538 ><P
8539 >where <DIV
8540 CLASS="variablelist"
8541 ><DL
8542 ><DT
8543 ><SPAN
8544 CLASS="bold"
8545 ><B
8546 CLASS="emphasis"
8547 >ch</B
8548 ></SPAN
8549 ></DT
8550 ><DD
8551 ><P
8552 >Is the shortest acceptable abbreviation of <SPAN
8553 CLASS="bold"
8554 ><B
8555 CLASS="emphasis"
8556 >changeaddr</B
8557 ></SPAN
8558 >.</P
8559 ></DD
8560 ><DT
8561 ><SPAN
8562 CLASS="bold"
8563 ><B
8564 CLASS="emphasis"
8565 >original IP address</B
8566 ></SPAN
8567 ></DT
8568 ><DD
8569 ><P
8570 >Specifies one of the IP addresses currently registered for the file server machine in the VLDB. Any of a
8571                   multihomed file server machine's addresses are acceptable to identify it.</P
8572 ></DD
8573 ><DT
8574 ><SPAN
8575 CLASS="bold"
8576 ><B
8577 CLASS="emphasis"
8578 >-remove</B
8579 ></SPAN
8580 ></DT
8581 ><DD
8582 ><P
8583 >Removes the server entry.</P
8584 ></DD
8585 ></DL
8586 ></DIV
8587 ></P
8588 ></LI
8589 ></OL
8590 ></DIV
8591 ><DIV
8592 CLASS="sect2"
8593 ><H2
8594 CLASS="sect2"
8595 ><A
8596 NAME="Header_160"
8597 >To change a server machine's IP addresses</A
8598 ></H2
8599 ><OL
8600 TYPE="1"
8601 ><LI
8602 ><P
8603 >Verify that you are listed in the <SPAN
8604 CLASS="bold"
8605 ><B
8606 CLASS="emphasis"
8607 >/usr/afs/etc/UserList</B
8608 ></SPAN
8609 > file. If necessary, issue
8610           the <SPAN
8611 CLASS="bold"
8612 ><B
8613 CLASS="emphasis"
8614 >bos listusers</B
8615 ></SPAN
8616 > command, which is fully described in <A
8617 HREF="c32432.html#HDRWQ593"
8618 >To
8619           display the users in the UserList file</A
8620 >. <PRE
8621 CLASS="programlisting"
8622 >&#13;   % <SPAN
8623 CLASS="bold"
8624 ><B
8625 CLASS="emphasis"
8626 >bos listusers</B
8627 ></SPAN
8628 > &#60;<VAR
8629 CLASS="replaceable"
8630 >machine name</VAR
8631 >&#62;
8632 </PRE
8633 ></P
8634 ></LI
8635 ><LI
8636 ><P
8637 >If the machine is the system control machine or a binary distribution machine, and you are also changing its
8638           hostname, redefine all relevant <SPAN
8639 CLASS="bold"
8640 ><B
8641 CLASS="emphasis"
8642 >upclient</B
8643 ></SPAN
8644 > processes on other server machines to refer to
8645           the new hostname. Use the <SPAN
8646 CLASS="bold"
8647 ><B
8648 CLASS="emphasis"
8649 >bos delete</B
8650 ></SPAN
8651 > and <SPAN
8652 CLASS="bold"
8653 ><B
8654 CLASS="emphasis"
8655 >bos create</B
8656 ></SPAN
8657 >
8658           commands as instructed in <A
8659 HREF="c6449.html#HDRWQ161"
8660 >Creating and Removing Processes</A
8661 >.</P
8662 ></LI
8663 ><LI
8664 ><P
8665 >If the machine is a database server machine, edit its entry in the <SPAN
8666 CLASS="bold"
8667 ><B
8668 CLASS="emphasis"
8669 >/usr/afs/etc/CellServDB</B
8670 ></SPAN
8671 > file on every server machine in the cell to list one of the new IP
8672           addresses. If you use the United States edition of AFS, you can edit the file on the system control machine and wait the
8673           required time (by default, five minutes) for the Update Server to distribute the changed file to all server
8674           machines.</P
8675 ></LI
8676 ><LI
8677 ><P
8678 >If the machine is a database server machine, issue the <SPAN
8679 CLASS="bold"
8680 ><B
8681 CLASS="emphasis"
8682 >bos shutdown</B
8683 ></SPAN
8684 > command to stop
8685           all server processes. If the machine is also a file server, the volumes on it are inaccessible during this time. For a
8686           complete description of the command, see <A
8687 HREF="c6449.html#HDRWQ168"
8688 >To stop processes temporarily</A
8689 >. <PRE
8690 CLASS="programlisting"
8691 >&#13;   % <SPAN
8692 CLASS="bold"
8693 ><B
8694 CLASS="emphasis"
8695 >bos shutdown</B
8696 ></SPAN
8697 > &#60;<VAR
8698 CLASS="replaceable"
8699 >machine name</VAR
8700 >&#62;
8701 </PRE
8702 ></P
8703 ></LI
8704 ><LI
8705 ><P
8706 >Use the utilities provided with the operating system to change one or more of the machine's IP addresses.</P
8707 ></LI
8708 ><LI
8709 ><P
8710 >If appropriate, edit the <SPAN
8711 CLASS="bold"
8712 ><B
8713 CLASS="emphasis"
8714 >/usr/afs/local/NetInfo</B
8715 ></SPAN
8716 > file, the <SPAN
8717 CLASS="bold"
8718 ><B
8719 CLASS="emphasis"
8720 >/usr/afs/local/NetRestrict</B
8721 ></SPAN
8722 > file, or both, to reflect the changed addresses. Instructions appear
8723           earlier in this section.</P
8724 ></LI
8725 ><LI
8726 ><P
8727 >If the machine is a database server machine, issue the <SPAN
8728 CLASS="bold"
8729 ><B
8730 CLASS="emphasis"
8731 >bos restart</B
8732 ></SPAN
8733 > command to
8734           restart all server processes on the machine. For complete instructions for the <SPAN
8735 CLASS="bold"
8736 ><B
8737 CLASS="emphasis"
8738 >bos
8739           restart</B
8740 ></SPAN
8741 > command, see <A
8742 HREF="c6449.html#HDRWQ170"
8743 >Stopping and Immediately Restarting Processes</A
8744 >.
8745           <PRE
8746 CLASS="programlisting"
8747 >&#13;   % <SPAN
8748 CLASS="bold"
8749 ><B
8750 CLASS="emphasis"
8751 >bos restart</B
8752 ></SPAN
8753 > &#60;<VAR
8754 CLASS="replaceable"
8755 >machine name</VAR
8756 >&#62; <SPAN
8757 CLASS="bold"
8758 ><B
8759 CLASS="emphasis"
8760 >-all</B
8761 ></SPAN
8762 >
8763 </PRE
8764 ></P
8765 ><P
8766 >At the same time, issue the <SPAN
8767 CLASS="bold"
8768 ><B
8769 CLASS="emphasis"
8770 >bos restart</B
8771 ></SPAN
8772 > command on all other database server
8773           machines in the cell to restart the database server processes only (the Authentication, Backup, Protection, and Volume
8774           Location Servers). Issue the commands in quick succession so that all of the database server processes vote in the quorum
8775           election.</P
8776 ><PRE
8777 CLASS="programlisting"
8778 >&#13;   % <SPAN
8779 CLASS="bold"
8780 ><B
8781 CLASS="emphasis"
8782 >bos restart</B
8783 ></SPAN
8784 > &#60;<VAR
8785 CLASS="replaceable"
8786 >machine name</VAR
8787 >&#62; <SPAN
8788 CLASS="bold"
8789 ><B
8790 CLASS="emphasis"
8791 >kaserver buserver ptserver vlserver</B
8792 ></SPAN
8793 >
8794 </PRE
8795 ><P
8796 >If you are changing IP addresses on every database server machine in the cell, you must also issue the <SPAN
8797 CLASS="bold"
8798 ><B
8799 CLASS="emphasis"
8800 >bos restart</B
8801 ></SPAN
8802 > command on every file server machine in the cell to restart the <SPAN
8803 CLASS="bold"
8804 ><B
8805 CLASS="emphasis"
8806 >fs</B
8807 ></SPAN
8808 > process.</P
8809 ></LI
8810 ><LI
8811 ><P
8812 >If the machine is not a database server machine, issue the <SPAN
8813 CLASS="bold"
8814 ><B
8815 CLASS="emphasis"
8816 >bos restart</B
8817 ></SPAN
8818 > command to
8819           restart the <SPAN
8820 CLASS="bold"
8821 ><B
8822 CLASS="emphasis"
8823 >fs</B
8824 ></SPAN
8825 > process (if the machine is a database server, you already restarted the
8826           process in the previous step). The File Server automatically compiles a new list of interfaces, records them in the
8827           <SPAN
8828 CLASS="bold"
8829 ><B
8830 CLASS="emphasis"
8831 >/usr/afs/local/sysid</B
8832 ></SPAN
8833 > file, and registers them in its VLDB server entry. <PRE
8834 CLASS="programlisting"
8835 >&#13;   % <SPAN
8836 CLASS="bold"
8837 ><B
8838 CLASS="emphasis"
8839 >bos restart</B
8840 ></SPAN
8841 > &#60;<VAR
8842 CLASS="replaceable"
8843 >machine name</VAR
8844 >&#62; <SPAN
8845 CLASS="bold"
8846 ><B
8847 CLASS="emphasis"
8848 >fs</B
8849 ></SPAN
8850 >
8851 </PRE
8852 ></P
8853 ></LI
8854 ><LI
8855 ><P
8856 >If the machine is a database server machine, edit its entry in the <SPAN
8857 CLASS="bold"
8858 ><B
8859 CLASS="emphasis"
8860 >/usr/vice/etc/CellServDB</B
8861 ></SPAN
8862 > file on every client machine in the cell to list one of the new IP
8863           addresses. Instructions appear in <A
8864 HREF="c21473.html#HDRWQ406"
8865 >Maintaining Knowledge of Database Server
8866           Machines</A
8867 >.</P
8868 ></LI
8869 ><LI
8870 ><P
8871 >If there are machine entries in the Protection Database for the machine's previous IP addresses, use the <SPAN
8872 CLASS="bold"
8873 ><B
8874 CLASS="emphasis"
8875 >pts rename</B
8876 ></SPAN
8877 > command to change them to the new addresses. For instructions, see <A
8878 HREF="c29323.html#HDRWQ556"
8879 >Changing a Protection Database Entry's Name</A
8880 >.</P
8881 ></LI
8882 ></OL
8883 ></DIV
8884 ></DIV
8885 ><DIV
8886 CLASS="sect1"
8887 ><H1
8888 CLASS="sect1"
8889 ><A
8890 NAME="HDRWQ139"
8891 >Rebooting a Server Machine</A
8892 ></H1
8893 ><P
8894 >You can reboot a server machine either by typing the appropriate commands at its console or by issuing the <SPAN
8895 CLASS="bold"
8896 ><B
8897 CLASS="emphasis"
8898 >bos exec</B
8899 ></SPAN
8900 > command on a remote machine. Remote rebooting can be more convenient, because you do not need to
8901     leave your present location, but you cannot track the progress of the reboot as you can at the console. Remote rebooting is
8902     possible because the server machine's operating system recognizes the BOS Server, which executes the <SPAN
8903 CLASS="bold"
8904 ><B
8905 CLASS="emphasis"
8906 >bos
8907     exec</B
8908 ></SPAN
8909 > command, as the local superuser <SPAN
8910 CLASS="bold"
8911 ><B
8912 CLASS="emphasis"
8913 >root</B
8914 ></SPAN
8915 >.</P
8916 ><P
8917 >Rebooting server machines is part of routine maintenance in some cells, and some instructions in the AFS documentation
8918     include it as a step. It is certainly not intended to be the standard method for recovering from AFS-related problems, however,
8919     but only a last resort when the machine is unresponsive and you have tried all other reasonable options.</P
8920 ><P
8921 >Rebooting causes a service outage. If the machine stores volumes, they are all inaccessible until the reboot completes and
8922     the File Server reattaches them. If the machine is a database server machine, information from the databases can become
8923     unavailable during the reelection of the synchronization site for each database server process; the VL Server outage generally
8924     has the greatest impact, because the Cache Manager must be able to access the VLDB to fetch AFS data.</P
8925 ><P
8926 >By convention, a server machine's AFS initialization file includes the following command to restart the BOS Server after
8927     each reboot. It starts the other AFS server processes listed in the local <SPAN
8928 CLASS="bold"
8929 ><B
8930 CLASS="emphasis"
8931 >/usr/afs/local/BosConfig</B
8932 ></SPAN
8933 > file. These instructions assume that the initialization file includes the
8934     command.</P
8935 ><PRE
8936 CLASS="programlisting"
8937 >&#13;   /usr/afs/bin/bosserver &#38;
8938 </PRE
8939 ><DIV
8940 CLASS="sect2"
8941 ><H2
8942 CLASS="sect2"
8943 ><A
8944 NAME="HDRWQ140"
8945 >To reboot a file server machine from its console</A
8946 ></H2
8947 ><OL
8948 TYPE="1"
8949 ><LI
8950 ><P
8951 >Become the local superuser <SPAN
8952 CLASS="bold"
8953 ><B
8954 CLASS="emphasis"
8955 >root</B
8956 ></SPAN
8957 > on the machine, if you are not already, by issuing
8958           the <SPAN
8959 CLASS="bold"
8960 ><B
8961 CLASS="emphasis"
8962 >su</B
8963 ></SPAN
8964 > command. <PRE
8965 CLASS="programlisting"
8966 >&#13;   % <SPAN
8967 CLASS="bold"
8968 ><B
8969 CLASS="emphasis"
8970 >su root</B
8971 ></SPAN
8972 >
8973    Password: <VAR
8974 CLASS="replaceable"
8975 >root_password</VAR
8976 >
8977 </PRE
8978 ></P
8979 ></LI
8980 ><LI
8981 ><P
8982 >Issue the <SPAN
8983 CLASS="bold"
8984 ><B
8985 CLASS="emphasis"
8986 >bos shutdown</B
8987 ></SPAN
8988 > command to shut down all AFS server processes other than the
8989           BOS Server, which terminates safely when you reboot the machine. Include the <SPAN
8990 CLASS="bold"
8991 ><B
8992 CLASS="emphasis"
8993 >-localauth</B
8994 ></SPAN
8995 >
8996           flag because you are logged in as the local superuser <SPAN
8997 CLASS="bold"
8998 ><B
8999 CLASS="emphasis"
9000 >root</B
9001 ></SPAN
9002 > but do not necessarily have
9003           administrative tokens. For a complete description of the command, see <A
9004 HREF="c6449.html#HDRWQ168"
9005 >To stop processes
9006           temporarily</A
9007 >. <PRE
9008 CLASS="programlisting"
9009 >&#13;   # <SPAN
9010 CLASS="bold"
9011 ><B
9012 CLASS="emphasis"
9013 >bos shutdown</B
9014 ></SPAN
9015 > &#60;<VAR
9016 CLASS="replaceable"
9017 >machine name</VAR
9018 >&#62; <SPAN
9019 CLASS="bold"
9020 ><B
9021 CLASS="emphasis"
9022 >-localauth</B
9023 ></SPAN
9024 > [<SPAN
9025 CLASS="bold"
9026 ><B
9027 CLASS="emphasis"
9028 >-wait</B
9029 ></SPAN
9030 >]
9031 </PRE
9032 ></P
9033 ></LI
9034 ><LI
9035 ><P
9036 >Reboot the machine. On many system types, the appropriate command is <SPAN
9037 CLASS="bold"
9038 ><B
9039 CLASS="emphasis"
9040 >shutdown</B
9041 ></SPAN
9042 >, but
9043           the appropriate options vary; consult your UNIX administrator's guide. <PRE
9044 CLASS="programlisting"
9045 >&#13;    # <SPAN
9046 CLASS="bold"
9047 ><B
9048 CLASS="emphasis"
9049 >shutdown</B
9050 ></SPAN
9051 >
9052 </PRE
9053 ></P
9054 ></LI
9055 ></OL
9056 ></DIV
9057 ><DIV
9058 CLASS="sect2"
9059 ><H2
9060 CLASS="sect2"
9061 ><A
9062 NAME="HDRWQ141"
9063 >To reboot a file server machine remotely</A
9064 ></H2
9065 ><OL
9066 TYPE="1"
9067 ><LI
9068 ><P
9069 >Verify that you are listed in the <SPAN
9070 CLASS="bold"
9071 ><B
9072 CLASS="emphasis"
9073 >/usr/afs/etc/UserList</B
9074 ></SPAN
9075 > file on the machine you are
9076           rebooting. If necessary, issue the <SPAN
9077 CLASS="bold"
9078 ><B
9079 CLASS="emphasis"
9080 >bos listusers</B
9081 ></SPAN
9082 > command, which is fully described in
9083           <A
9084 HREF="c32432.html#HDRWQ593"
9085 >To display the users in the UserList file</A
9086 >. <PRE
9087 CLASS="programlisting"
9088 >&#13;   % <SPAN
9089 CLASS="bold"
9090 ><B
9091 CLASS="emphasis"
9092 >bos listusers</B
9093 ></SPAN
9094 > &#60;<VAR
9095 CLASS="replaceable"
9096 >machine name</VAR
9097 >&#62;
9098 </PRE
9099 ></P
9100 ></LI
9101 ><LI
9102 ><P
9103 >Issue the <SPAN
9104 CLASS="bold"
9105 ><B
9106 CLASS="emphasis"
9107 >bos shutdown</B
9108 ></SPAN
9109 > to halt AFS server processes other than the BOS Server,
9110           which terminates safely when you turn off the machine. For a complete description of the command, see <A
9111 HREF="c6449.html#HDRWQ168"
9112 >To stop processes temporarily</A
9113 >. <PRE
9114 CLASS="programlisting"
9115 >&#13;   % <SPAN
9116 CLASS="bold"
9117 ><B
9118 CLASS="emphasis"
9119 >bos shutdown</B
9120 ></SPAN
9121 > &#60;<VAR
9122 CLASS="replaceable"
9123 >machine name</VAR
9124 >&#62;  [<SPAN
9125 CLASS="bold"
9126 ><B
9127 CLASS="emphasis"
9128 >-wait</B
9129 ></SPAN
9130 >]
9131 </PRE
9132 ></P
9133 ></LI
9134 ><LI
9135 ><P
9136 >Issue the <SPAN
9137 CLASS="bold"
9138 ><B
9139 CLASS="emphasis"
9140 >bos exec</B
9141 ></SPAN
9142 > command to reboot the machine remotely. <PRE
9143 CLASS="programlisting"
9144 >&#13;   % <SPAN
9145 CLASS="bold"
9146 ><B
9147 CLASS="emphasis"
9148 >bos exec</B
9149 ></SPAN
9150 > &#60;<VAR
9151 CLASS="replaceable"
9152 >machine name</VAR
9153 >&#62; reboot_command
9154 </PRE
9155 ></P
9156 ><P
9157 >where <DIV
9158 CLASS="variablelist"
9159 ><DL
9160 ><DT
9161 ><SPAN
9162 CLASS="bold"
9163 ><B
9164 CLASS="emphasis"
9165 >machine name</B
9166 ></SPAN
9167 ></DT
9168 ><DD
9169 ><P
9170 >Names the file server machine to reboot.</P
9171 ></DD
9172 ><DT
9173 ><SPAN
9174 CLASS="bold"
9175 ><B
9176 CLASS="emphasis"
9177 >reboot_command</B
9178 ></SPAN
9179 ></DT
9180 ><DD
9181 ><P
9182 >Is the rebooting command for the machine's operating system. The <SPAN
9183 CLASS="bold"
9184 ><B
9185 CLASS="emphasis"
9186 >shutdown</B
9187 ></SPAN
9188 >
9189                   command is appropriate on many system types, but consult your operating system documentation.</P
9190 ></DD
9191 ></DL
9192 ></DIV
9193 ></P
9194 ></LI
9195 ></OL
9196 ></DIV
9197 ></DIV
9198 ></DIV
9199 ><DIV
9200 CLASS="NAVFOOTER"
9201 ><HR
9202 ALIGN="LEFT"
9203 WIDTH="100%"><TABLE
9204 SUMMARY="Footer navigation table"
9205 WIDTH="100%"
9206 BORDER="0"
9207 CELLPADDING="0"
9208 CELLSPACING="0"
9209 ><TR
9210 ><TD
9211 WIDTH="33%"
9212 ALIGN="left"
9213 VALIGN="top"
9214 ><A
9215 HREF="p3023.html"
9216 ACCESSKEY="P"
9217 >Prev</A
9218 ></TD
9219 ><TD
9220 WIDTH="34%"
9221 ALIGN="center"
9222 VALIGN="top"
9223 ><A
9224 HREF="book1.html"
9225 ACCESSKEY="H"
9226 >Home</A
9227 ></TD
9228 ><TD
9229 WIDTH="33%"
9230 ALIGN="right"
9231 VALIGN="top"
9232 ><A
9233 HREF="c6449.html"
9234 ACCESSKEY="N"
9235 >Next</A
9236 ></TD
9237 ></TR
9238 ><TR
9239 ><TD
9240 WIDTH="33%"
9241 ALIGN="left"
9242 VALIGN="top"
9243 >Managing File Server Machines</TD
9244 ><TD
9245 WIDTH="34%"
9246 ALIGN="center"
9247 VALIGN="top"
9248 ><A
9249 HREF="p3023.html"
9250 ACCESSKEY="U"
9251 >Up</A
9252 ></TD
9253 ><TD
9254 WIDTH="33%"
9255 ALIGN="right"
9256 VALIGN="top"
9257 >Monitoring and Controlling Server Processes</TD
9258 ></TR
9259 ></TABLE
9260 ></DIV
9261 ></BODY
9262 ></HTML
9263 >