1 <?xml version="1.0" encoding="UTF-8"?>
3 <title>Installing Additional Server Machines</title>
6 <primary>instructions</primary>
8 <secondary>file server machine after first</secondary>
12 <primary>installing</primary>
14 <secondary>file server machine after first</secondary>
18 <primary>server machine after first</primary>
20 <see>file server machine, additional</see>
23 <para>Instructions for the following procedures appear in the indicated section of this chapter. <itemizedlist>
25 <para><link linkend="HDRWQ100">Installing an Additional File Server Machine</link></para>
29 <para><link linkend="HDRWQ114">Installing Database Server Functionality</link></para>
33 <para><link linkend="HDRWQ125">Removing Database Server Functionality</link></para>
35 </itemizedlist></para>
37 <para>The instructions make the following assumptions. <itemizedlist>
39 <para>You have already installed your cell's first file server machine by following the instructions in <link
40 linkend="HDRWQ17">Installing the First AFS Machine</link></para>
44 <para>You are logged in as the local superuser <emphasis role="bold">root</emphasis></para>
48 <para>You are working at the console</para>
52 <para>A standard version of one of the operating systems supported by the current version of AFS is running on the
57 <para>You can access the data on the OpenAFS Binary Distribution for
58 your operating system, either on the local filesystem or via an NFS
59 mount of the distribution's contents.</para>
61 </itemizedlist></para>
64 <primary>requirements</primary>
66 <secondary>file server machine (additional)</secondary>
70 <title>Installing an Additional File Server Machine</title>
72 <para>The procedure for installing a new file server machine is similar to installing the first file server machine in your
73 cell. There are a few parts of the installation that differ depending on whether the machine is the same AFS system type as an
74 existing file server machine or is the first file server machine of its system type in your cell. The differences mostly concern
75 the source for the needed binaries and files, and what portions of the Update Server you install: <itemizedlist>
77 <para>On a new system type, you must load files and binaries from the
78 OpenAFS distribution. You may install the server portion of the
79 Update Server to make this machine the binary distribution machine
80 for its system type.</para>
84 <para>On an existing system type, you can copy files and binaries
85 from a previously installed file server machine, rather
86 than from the OpenAFS distribution. You may install the client
87 portion of the Update Server to accept updates of binaries, because a
88 previously installed machine of this type was installed as the binary
89 distribution machine.</para>
92 <para>On some system types, distribtution of the appropriate binaries
93 may be acheived using the system's own package management system. In
94 these cases, it is recommended that this system is used, rather than
95 installing the binaries by hand.</para>
97 </itemizedlist></para>
99 <para>These instructions are brief; for more detailed information, refer to the corresponding steps in <link
100 linkend="HDRWQ17">Installing the First AFS Machine</link>. <indexterm>
101 <primary>overview</primary>
103 <secondary>installing server machine after first</secondary>
106 <para>To install a new file server machine, perform the following procedures: <orderedlist>
108 <para>Copy needed binaries and files onto this machine's local disk,
113 <para>Incorporate AFS modifications into the kernel</para>
117 <para>Configure partitions for storing volumes</para>
121 <para>Replace the standard <emphasis role="bold">fsck</emphasis> utility with the AFS-modified version on some system
126 <para>Start the Basic OverSeer (BOS) Server</para>
130 <para>Start the appropriate portion of the Update Server, if
135 <para>Start the <emphasis role="bold">fs</emphasis> process, which incorporates three component processes: the File
136 Server, Volume Server, and Salvager</para>
138 </orderedlist></para>
140 <para>After completing the instructions in this section, you can install database server functionality on the machine according
141 to the instructions in <link linkend="HDRWQ114">Installing Database Server Functionality</link>. <indexterm>
142 <primary>usr/afs directory</primary>
144 <secondary>server machine after first</secondary>
145 </indexterm> <indexterm>
146 <primary>file server machine, additional</primary>
148 <secondary>/usr/afs directory</secondary>
149 </indexterm> <indexterm>
150 <primary>creating</primary>
152 <secondary>/usr/afs directory</secondary>
154 <tertiary>server machine after first</tertiary>
155 </indexterm> <indexterm>
156 <primary>usr/afs/bin directory</primary>
158 <secondary>server machine after first</secondary>
159 </indexterm> <indexterm>
160 <primary>file server machine, additional</primary>
162 <secondary>/usr/afs/bin directory</secondary>
163 </indexterm> <indexterm>
164 <primary>creating</primary>
166 <secondary>/usr/afs/bin directory</secondary>
168 <tertiary>server machine after first</tertiary>
169 </indexterm> <indexterm>
170 <primary>usr/vice/etc directory</primary>
172 <secondary>server machine after first</secondary>
173 </indexterm> <indexterm>
174 <primary>file server machine, additional</primary>
176 <secondary>/usr/vice/etc directory</secondary>
177 </indexterm> <indexterm>
178 <primary>creating</primary>
180 <secondary>/usr/vice/etc directory</secondary>
182 <tertiary>server machine after first</tertiary>
185 <sect2 id="Header_99">
186 <title>Creating AFS Directories and Performing Platform-Specific Procedures</title>
188 <para>If your operating systems AFS distribution is supplied as packages,
189 such as .rpms or .debs, you should just install those packages as detailed
190 in the previous chapter.</para>
192 <para>Create the <emphasis role="bold">/usr/afs</emphasis> and <emphasis role="bold">/usr/vice/etc</emphasis> directories on
193 the local disk. Subsequent instructions copy files from the AFS distribution into them, at the appropriate point for
194 each system type.</para>
197 # <emphasis role="bold">mkdir /usr/afs</emphasis>
198 # <emphasis role="bold">mkdir /usr/afs/bin</emphasis>
199 # <emphasis role="bold">mkdir /usr/vice</emphasis>
200 # <emphasis role="bold">mkdir /usr/vice/etc</emphasis>
201 # <emphasis role="bold">mkdir /tmp/afsdist</emphasis>
204 <para>As on the first file server machine, the initial procedures in installing an additional file server machine vary a good
205 deal from platform to platform. For convenience, the following sections group together all of the procedures for a system
206 type. Most of the remaining procedures are the same on every system type, but differences are noted as appropriate. The
207 initial procedures are the following. <itemizedlist>
209 <para>Incorporate AFS modifications into the kernel, either by using a dynamic kernel loader program or by building a
210 new static kernel</para>
214 <para>Configure server partitions to house AFS volumes</para>
218 <para>Replace the operating system vendor's <emphasis role="bold">fsck</emphasis> program with a version that recognizes
220 <primary>file server machine, additional</primary>
222 <secondary>AFS login</secondary>
224 <see>first AFS machine</see>
229 <para>If the machine is to remain an AFS client machine, modify the machine's authentication system so that users obtain
230 an AFS token as they log into the local file system. (For this procedure only, the instructions direct you to the
231 platform-specific section in <link linkend="HDRWQ17">Installing the First AFS Machine</link>.)</para>
233 </itemizedlist></para>
235 <para>To continue, proceed to the section for this system type: <itemizedlist>
237 <para><link linkend="HDRWQ101">Getting Started on AIX Systems</link></para>
241 <para><link linkend="HDRWQ103">Getting Started on HP-UX Systems</link></para>
245 <para><link linkend="HDRWQ104">Getting Started on IRIX Systems</link></para>
249 <para><link linkend="HDRWQ106">Getting Started on Linux Systems</link></para>
253 <para><link linkend="HDRWQ107">Getting Started on Solaris Systems</link></para>
255 </itemizedlist></para>
257 <sect3 id="HDRWQ101">
258 <title>Getting Started on AIX Systems</title>
260 <para>Begin by running the AFS initialization script to call the AIX kernel extension facility, which dynamically loads AFS
261 modifications into the kernel. Then configure partitions and replace the AIX <emphasis role="bold">fsck</emphasis> program
262 with a version that correctly handles AFS volumes. <orderedlist>
264 <primary>incorporating AFS kernel extensions</primary>
266 <secondary>server machine after first</secondary>
268 <tertiary>AIX</tertiary>
272 <primary>AFS kernel extensions</primary>
274 <secondary>on server machine after first</secondary>
276 <tertiary>AIX</tertiary>
280 <primary>file server machine, additional</primary>
282 <secondary>AFS kernel extensions</secondary>
284 <tertiary>on AIX</tertiary>
288 <primary>AIX</primary>
290 <secondary>AFS kernel extensions</secondary>
292 <tertiary>on add'l server machine</tertiary>
296 <para>Unpack the distribution tarball. The examples below assume
297 that you have unpacked the files into the
298 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
299 pick a different location, substitute this in all of the following
300 examples. Once you have unpacked the distribution,
301 change directory as indicated.
303 # <emphasis role="bold">cd /tmp/afsdist/rs_aix42/root.client/usr/vice/etc</emphasis>
304 </programlisting></para>
308 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/dkload</emphasis> directory,
309 and the AFS initialization script to the <emphasis role="bold">/etc</emphasis> directory. <programlisting>
310 # <emphasis role="bold">cp -rp dkload /usr/vice/etc</emphasis>
311 # <emphasis role="bold">cp -p rc.afs /etc/rc.afs</emphasis>
312 </programlisting></para>
316 <para>Edit the <emphasis role="bold">/etc/rc.afs</emphasis> script, setting the <computeroutput>NFS</computeroutput>
317 variable as indicated.</para>
319 <para>If the machine is not to function as an NFS/AFS Translator, set the <computeroutput>NFS</computeroutput>
320 variable as follows.</para>
326 <para>If the machine is to function as an NFS/AFS Translator and is running AIX 4.2.1 or higher, set the
327 <computeroutput>NFS</computeroutput> variable as follows. Note that NFS must already be loaded into the kernel, which
328 happens automatically on systems running AIX 4.1.1 and later, as long as the file <emphasis
329 role="bold">/etc/exports</emphasis> exists.</para>
337 <para>Invoke the <emphasis role="bold">/etc/rc.afs</emphasis> script to load AFS modifications into the kernel. You
338 can ignore any error messages about the inability to start the BOS Server or the Cache Manager or AFS client.
340 # <emphasis role="bold">/etc/rc.afs</emphasis>
341 </programlisting> <indexterm>
342 <primary>configuring</primary>
344 <secondary>AFS server partition on server machine after first</secondary>
346 <tertiary>AIX</tertiary>
347 </indexterm> <indexterm>
348 <primary>AFS server partition</primary>
350 <secondary>configuring on server machine after first</secondary>
352 <tertiary>AIX</tertiary>
353 </indexterm> <indexterm>
354 <primary>file server machine, additional</primary>
356 <secondary>AFS server partition</secondary>
358 <tertiary>on AIX</tertiary>
359 </indexterm> <indexterm>
360 <primary>AIX</primary>
362 <secondary>AFS server partition</secondary>
364 <tertiary>on add'l server machine</tertiary>
369 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS
370 server partition you are configuring (there must be at least one). Repeat the command for each partition.
372 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
373 </programlisting></para>
377 <para>Use the <emphasis role="bold">SMIT</emphasis> program to create a journaling file system on each partition to be
378 configured as an AFS server partition.</para>
382 <para>Mount each partition at one of the <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>
383 directories. Choose one of the following three methods: <itemizedlist>
385 <para>Use the <emphasis role="bold">SMIT</emphasis> program</para>
389 <para>Use the <emphasis role="bold">mount -a</emphasis> command to mount all partitions at once</para>
393 <para>Use the <emphasis role="bold">mount</emphasis> command on each partition in turn</para>
395 </itemizedlist></para>
397 <para>Also configure the partitions so that they are mounted automatically at each reboot. For more information, refer
398 to the AIX documentation. <indexterm>
399 <primary>replacing fsck program</primary>
401 <secondary>server machine after first</secondary>
403 <tertiary>AIX</tertiary>
404 </indexterm> <indexterm>
405 <primary>fsck program</primary>
407 <secondary>on server machine after first</secondary>
409 <tertiary>AIX</tertiary>
410 </indexterm> <indexterm>
411 <primary>file server machine, additional</primary>
413 <secondary>fsck program</secondary>
415 <tertiary>on AIX</tertiary>
416 </indexterm> <indexterm>
417 <primary>AIX</primary>
419 <secondary>fsck program</secondary>
421 <tertiary>on add'l server machine</tertiary>
426 <para>On systems prior to AIX 5.1, move the AIX
427 <emphasis role="bold">fsck</emphasis> program helper to a safe
428 location and install the version from the AFS distribution in
429 its place. Note that on AIX 5.1, and later, systems this step is
430 not required, and the <emphasis role="bold">v3fshelper</emphasis>
431 program is not shipped for these systems.</para>
433 <para>The AFS binary distribution must still be available in the
434 <emphasis role="bold">/tmp/afsdist</emphasis> directory.
436 # <emphasis role="bold">cd /sbin/helpers</emphasis>
437 # <emphasis role="bold">mv v3fshelper v3fshelper.noafs</emphasis>
438 # <emphasis role="bold">cp -p /tmp/afsdist/rs_aix42/root.server/etc/v3fshelper v3fshelper</emphasis>
439 </programlisting></para>
443 <para>If the machine is to remain an AFS client, incorporate AFS into its authentication system, following the
444 instructions in <link linkend="HDRWQ25">Enabling AFS Login on AIX Systems</link>.</para>
448 <para>Proceed to <link linkend="HDRWQ108">Starting Server Programs</link>.</para>
450 </orderedlist></para>
453 <sect3 id="HDRWQ103">
454 <title>Getting Started on HP-UX Systems</title>
456 <para>Begin by building AFS modifications into the kernel, then configure server partitions and replace the HP-UX <emphasis
457 role="bold">fsck</emphasis> program with a version that correctly handles AFS volumes.</para>
459 <para>If the machine's hardware and software configuration exactly matches another HP-UX machine on which AFS is already
460 built into the kernel, you can copy the kernel from that machine to this one. In general, however, it is better to build AFS
461 modifications into the kernel on each machine according to the following instructions.
464 <primary>incorporating AFS kernel extensions</primary>
466 <secondary>server machine after first</secondary>
468 <tertiary>HP-UX</tertiary>
472 <primary>AFS kernel extensions</primary>
474 <secondary>on server machine after first</secondary>
476 <tertiary>HP-UX</tertiary>
480 <primary>file server machine, additional</primary>
482 <secondary>AFS kernel extensions</secondary>
484 <tertiary>on HP-UX</tertiary>
488 <primary>HP-UX</primary>
490 <secondary>AFS-modified kernel</secondary>
492 <tertiary>on add'l server machine</tertiary>
496 <para>Move the existing kernel-related files to a safe location. <programlisting>
497 # <emphasis role="bold">cp /stand/vmunix /stand/vmunix.noafs</emphasis>
498 # <emphasis role="bold">cp /stand/system /stand/system.noafs</emphasis>
499 </programlisting></para>
503 <para>Unpack the OpenAFS HP-UX distribution tarball. The examples
504 below assume that you have unpacked the files into the
505 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
506 pick a different location, substitute this in all of the following
507 examples. Once you have unpacked the distribution, change
508 directory as indicated.
510 # <emphasis role="bold">cd /tmp/afsdist/hp_ux110/root.client</emphasis>
511 </programlisting></para>
515 <para>Copy the AFS initialization file to the local directory for initialization files (by convention, <emphasis
516 role="bold">/sbin/init.d</emphasis> on HP-UX machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
517 extension as you copy the file. <programlisting>
518 # <emphasis role="bold">cp usr/vice/etc/afs.rc /sbin/init.d/afs</emphasis>
519 </programlisting></para>
523 <para>Copy the file <emphasis role="bold">afs.driver</emphasis> to the local <emphasis
524 role="bold">/usr/conf/master.d</emphasis> directory, changing its name to <emphasis role="bold">afs</emphasis> as you
526 # <emphasis role="bold">cp usr/vice/etc/afs.driver /usr/conf/master.d/afs</emphasis>
527 </programlisting></para>
531 <para>Copy the AFS kernel module to the local <emphasis role="bold">/usr/conf/lib</emphasis> directory.</para>
533 <para>If the machine's kernel supports NFS server functionality:</para>
536 # <emphasis role="bold">cp bin/libafs.a /usr/conf/lib</emphasis>
539 <para>If the machine's kernel does not support NFS server functionality, change the file's name as you copy it:</para>
542 # <emphasis role="bold">cp bin/libafs.nonfs.a /usr/conf/lib/libafs.a</emphasis>
547 <para>Incorporate the AFS driver into the kernel, either using the <emphasis role="bold">SAM</emphasis> program or a
548 series of individual commands. <itemizedlist>
550 <para>To use the <emphasis role="bold">SAM</emphasis> program: <orderedlist>
552 <para>Invoke the <emphasis role="bold">SAM</emphasis> program, specifying the hostname of the local
553 machine as <replaceable>local_hostname</replaceable>. The <emphasis role="bold">SAM</emphasis> graphical
554 user interface pops up. <programlisting>
555 # <emphasis role="bold">sam -display</emphasis> <replaceable>local_hostname</replaceable><emphasis role="bold">:0</emphasis>
556 </programlisting></para>
560 <para>Choose the <emphasis role="bold">Kernel Configuration</emphasis> icon, then the <emphasis
561 role="bold">Drivers</emphasis> icon. From the list of drivers, select <emphasis
562 role="bold">afs</emphasis>.</para>
566 <para>Open the pull-down <emphasis role="bold">Actions</emphasis> menu and choose the <emphasis
567 role="bold">Add Driver to Kernel</emphasis> option.</para>
571 <para>Open the <emphasis role="bold">Actions</emphasis> menu again and choose the <emphasis
572 role="bold">Create a New Kernel</emphasis> option.</para>
576 <para>Confirm your choices by choosing <emphasis role="bold">Yes</emphasis> and <emphasis
577 role="bold">OK</emphasis> when prompted by subsequent pop-up windows. The <emphasis
578 role="bold">SAM</emphasis> program builds the kernel and reboots the system.</para>
582 <para>Login again as the superuser <emphasis role="bold">root</emphasis>. <programlisting>
583 login: <emphasis role="bold">root</emphasis>
584 Password: <replaceable>root_password</replaceable>
585 </programlisting></para>
587 </orderedlist></para>
591 <para>To use individual commands: <orderedlist>
593 <para>Edit the file <emphasis role="bold">/stand/system</emphasis>, adding an entry for <emphasis
594 role="bold">afs</emphasis> to the <computeroutput>Subsystems</computeroutput> section.</para>
598 <para>Change to the <emphasis role="bold">/stand/build</emphasis> directory and issue the <emphasis
599 role="bold">mk_kernel</emphasis> command to build the kernel. <programlisting>
600 # <emphasis role="bold">cd /stand/build</emphasis>
601 # <emphasis role="bold">mk_kernel</emphasis>
602 </programlisting></para>
606 <para>Move the new kernel to the standard location (<emphasis role="bold">/stand/vmunix</emphasis>),
607 reboot the machine to start using it, and login again as the superuser <emphasis
608 role="bold">root</emphasis>. <programlisting>
609 # <emphasis role="bold">mv /stand/build/vmunix_test /stand/vmunix</emphasis>
610 # <emphasis role="bold">cd /</emphasis>
611 # <emphasis role="bold">shutdown -r now</emphasis>
612 login: <emphasis role="bold">root</emphasis>
613 Password: <replaceable>root_password</replaceable>
614 </programlisting></para>
616 </orderedlist></para>
618 </itemizedlist></para>
621 <primary>configuring</primary>
623 <secondary>AFS server partition on server machine after first</secondary>
625 <tertiary>HP-UX</tertiary>
629 <primary>AFS server partition</primary>
631 <secondary>configuring on server machine after first</secondary>
633 <tertiary>HP-UX</tertiary>
637 <primary>file server machine, additional</primary>
639 <secondary>AFS server partition</secondary>
641 <tertiary>on HP-UX</tertiary>
645 <primary>HP-UX</primary>
647 <secondary>AFS server partition</secondary>
649 <tertiary>on add'l server machine</tertiary>
654 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS
655 server partition you are configuring (there must be at least one). Repeat the command for each partition.
657 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
658 </programlisting></para>
662 <para>Use the <emphasis role="bold">SAM</emphasis> program to create a file system on each partition. For
663 instructions, consult the HP-UX documentation.</para>
667 <para>On some HP-UX systems that use logical volumes, the <emphasis role="bold">SAM</emphasis> program automatically
668 mounts the partitions. If it has not, mount each partition by issuing either the <emphasis role="bold">mount
669 -a</emphasis> command to mount all partitions at once or the <emphasis role="bold">mount</emphasis> command to mount
670 each partition in turn. <indexterm>
671 <primary>replacing fsck program</primary>
673 <secondary>server machine after first</secondary>
675 <tertiary>HP-UX</tertiary>
676 </indexterm> <indexterm>
677 <primary>fsck program</primary>
679 <secondary>on server machine after first</secondary>
681 <tertiary>HP-UX</tertiary>
682 </indexterm> <indexterm>
683 <primary>file server machine, additional</primary>
685 <secondary>fsck program</secondary>
687 <tertiary>on HP-UX</tertiary>
688 </indexterm> <indexterm>
689 <primary>HP-UX</primary>
691 <secondary>fsck program</secondary>
693 <tertiary>on add'l server machine</tertiary>
698 <para>Create the command configuration file <emphasis role="bold">/sbin/lib/mfsconfig.d/afs</emphasis>. Use a text
699 editor to place the indicated two lines in it: <programlisting>
701 fsck 0 m,P,p,d,f,b:c:y,n,Y,N,q,
702 </programlisting></para>
706 <para>Create and change directory to an AFS-specific command directory called <emphasis
707 role="bold">/sbin/fs/afs</emphasis>. <programlisting>
708 # <emphasis role="bold">mkdir /sbin/fs/afs</emphasis>
709 # <emphasis role="bold">cd /sbin/fs/afs</emphasis>
710 </programlisting></para>
714 <para>Copy the AFS-modified version of the <emphasis role="bold">fsck</emphasis> program (the <emphasis
715 role="bold">vfsck</emphasis> binary) and related files from the distribution directory to the new AFS-specific command
716 directory. <programlisting>
717 # <emphasis role="bold">cp -p /tmp/afsdist/hp_ux110/root.server/etc/* .</emphasis>
718 </programlisting></para>
722 <para>Change the <emphasis role="bold">vfsck</emphasis> binary's name to <emphasis role="bold">fsck</emphasis> and set
723 the mode bits appropriately on all of the files in the <emphasis role="bold">/sbin/fs/afs</emphasis> directory.
725 # <emphasis role="bold">mv vfsck fsck</emphasis>
726 # <emphasis role="bold">chmod 755 *</emphasis>
727 </programlisting></para>
731 <para>Edit the <emphasis role="bold">/etc/fstab</emphasis> file, changing the file system type for each AFS server
732 partition from <computeroutput>hfs</computeroutput> to <computeroutput>afs</computeroutput>. This ensures that the
733 AFS-modified <emphasis role="bold">fsck</emphasis> program runs on the appropriate partitions.</para>
735 <para>The sixth line in the following example of an edited file shows an AFS server partition, <emphasis
736 role="bold">/vicepa</emphasis>.</para>
739 /dev/vg00/lvol1 / hfs defaults 0 1
740 /dev/vg00/lvol4 /opt hfs defaults 0 2
741 /dev/vg00/lvol5 /tmp hfs defaults 0 2
742 /dev/vg00/lvol6 /usr hfs defaults 0 2
743 /dev/vg00/lvol8 /var hfs defaults 0 2
744 /dev/vg00/lvol9 /vicepa afs defaults 0 2
745 /dev/vg00/lvol7 /usr/vice/cache hfs defaults 0 2
750 <para>If the machine is to remain an AFS client, incorporate AFS into its authentication system, following the
751 instructions in <link linkend="HDRWQ35">Enabling AFS Login on HP-UX Systems</link>.</para>
755 <para>Proceed to <link linkend="HDRWQ108">Starting Server Programs</link>.</para>
757 </orderedlist></para>
760 <sect3 id="HDRWQ104">
761 <title>Getting Started on IRIX Systems</title>
763 <para>Begin by incorporating AFS modifications into the kernel. Either use the <emphasis role="bold">ml</emphasis> dynamic
764 loader program, or build a static kernel. Then configure partitions to house AFS volumes. AFS supports use of both EFS and
765 XFS partitions for housing AFS volumes. SGI encourages use of XFS partitions. <indexterm>
766 <primary>file server machine, additional</primary>
768 <secondary>fsck program</secondary>
770 <tertiary>on IRIX</tertiary>
771 </indexterm> <indexterm>
772 <primary>fsck program</primary>
774 <secondary>on server machine after first</secondary>
776 <tertiary>IRIX</tertiary>
779 <para>You do not need to replace IRIX <emphasis role="bold">fsck</emphasis> program, because the version that SGI
780 distributes handles AFS volumes properly. <orderedlist>
782 <primary>incorporating AFS kernel extensions</primary>
784 <secondary>server machine after first</secondary>
786 <tertiary>IRIX</tertiary>
790 <primary>AFS kernel extensions</primary>
792 <secondary>on server machine after first</secondary>
794 <tertiary>IRIX</tertiary>
798 <primary>file server machine, additional</primary>
800 <secondary>AFS kernel extensions</secondary>
802 <tertiary>on IRIX</tertiary>
806 <para>Prepare for incorporating AFS into the kernel by performing the following procedures. <orderedlist>
808 <para>Unpack the OpenAFS IRIX distribution tarball. The
809 examples below assume that you have unpacked the files into
810 the <emphasis role="bold">/tmp/afsdist</emphasis>
811 directory. If you pick a different location, substitue this
812 in all of the following examples. Once you have unpacked
813 the distribution, change directory as indicated.
815 # <emphasis role="bold">cd /tmp/afsdist/sgi_65/root.client</emphasis>
816 </programlisting></para>
820 <para>Copy the AFS initialization script to the local directory for initialization files (by convention,
821 <emphasis role="bold">/etc/init.d</emphasis> on IRIX machines). Note the removal of the <emphasis
822 role="bold">.rc</emphasis> extension as you copy the script. <programlisting>
823 # <emphasis role="bold">cp -p usr/vice/etc/afs.rc /etc/init.d/afs</emphasis>
824 </programlisting></para>
828 <para>Issue the <emphasis role="bold">uname -m</emphasis> command to determine the machine's CPU board type. The
829 <emphasis role="bold">IP</emphasis><replaceable>xx</replaceable> value in the output must match one of the
830 supported CPU board types listed in the <emphasis>OpenAFS Release Notes</emphasis> for the current version of
831 AFS. <programlisting>
832 # <emphasis role="bold">uname -m</emphasis>
833 </programlisting></para>
835 </orderedlist></para>
839 <para>Incorporate AFS into the kernel, either using the <emphasis role="bold">ml</emphasis> program or by building AFS
840 modifications into a static kernel. <itemizedlist>
842 <primary>IRIX</primary>
844 <secondary>AFS kernel extensions</secondary>
846 <tertiary>on server machine after first</tertiary>
850 <para>To use the <emphasis role="bold">ml</emphasis> program: <indexterm>
851 <primary>afsml variable (IRIX)</primary>
853 <secondary>server machine after first</secondary>
854 </indexterm> <indexterm>
855 <primary>variables</primary>
857 <secondary>afsml (IRIX)</secondary>
859 <tertiary>server machine after first</tertiary>
860 </indexterm> <indexterm>
861 <primary>IRIX</primary>
863 <secondary>afsml variable</secondary>
865 <tertiary>server machine after first</tertiary>
866 </indexterm> <indexterm>
867 <primary>afsxnfs variable (IRIX)</primary>
869 <secondary>server machine after first</secondary>
870 </indexterm> <indexterm>
871 <primary>variables</primary>
873 <secondary>afsxnfs (IRIX)</secondary>
875 <tertiary>server machine after first</tertiary>
876 </indexterm> <indexterm>
877 <primary>IRIX</primary>
879 <secondary>afsxnfs variable</secondary>
881 <tertiary>server machine after first</tertiary>
882 </indexterm> <orderedlist>
884 <para>Create the local <emphasis role="bold">/usr/vice/etc/sgiload</emphasis> directory to house the AFS
885 kernel library file. <programlisting>
886 # <emphasis role="bold">mkdir /usr/vice/etc/sgiload</emphasis>
887 </programlisting></para>
891 <para>Copy the appropriate AFS kernel library file to the <emphasis
892 role="bold">/usr/vice/etc/sgiload</emphasis> directory. The <emphasis
893 role="bold">IP</emphasis><replaceable>xx</replaceable> portion of the library file name must match the
894 value previously returned by the <emphasis role="bold">uname -m</emphasis> command. Also choose the file
895 appropriate to whether the machine's kernel supports NFS server functionality (NFS must be supported for
896 the machine to act as an NFS/AFS Translator). Single- and multiprocessor machines use the same library
899 <para>(You can choose to copy all of the kernel library files into the <emphasis
900 role="bold">/usr/vice/etc/sgiload</emphasis> directory, but they require a significant amount of
903 <para>If the machine's kernel supports NFS server functionality:</para>
906 # <emphasis role="bold">cp -p usr/vice/etc/sgiload/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.o /usr/vice/etc/sgiload</emphasis>
909 <para>If the machine's kernel does not support NFS server functionality:</para>
912 # <emphasis role="bold">cp -p usr/vice/etc/sgiload/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.nonfs.o</emphasis> \
913 <emphasis role="bold">/usr/vice/etc/sgiload</emphasis>
918 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis
919 role="bold">afsml</emphasis> configuration variable. <programlisting>
920 # <emphasis role="bold">/etc/chkconfig -f afsml on</emphasis>
921 </programlisting></para>
923 <para>If the machine is to function as an NFS/AFS Translator and the kernel supports NFS server
924 functionality, activate the <emphasis role="bold">afsxnfs</emphasis> variable.</para>
927 # <emphasis role="bold">/etc/chkconfig -f afsxnfs on</emphasis>
932 <para>Run the <emphasis role="bold">/etc/init.d/afs</emphasis> script to load AFS extensions into the
933 kernel. The script invokes the <emphasis role="bold">ml</emphasis> command, automatically determining
934 which kernel library file to use based on this machine's CPU type and the activation state of the
935 <emphasis role="bold">afsxnfs</emphasis> variable.</para>
937 <para>You can ignore any error messages about the inability to start the BOS Server or the Cache Manager
938 or AFS client.</para>
941 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
946 <para>Proceed to Step <link linkend="LIWQ105">3</link>.</para>
948 </orderedlist></para>
951 <primary>IRIX</primary>
953 <secondary>AFS-modified kernel</secondary>
955 <tertiary>on add'l server machine</tertiary>
960 <para>If you prefer to build a kernel, and the machine's hardware and software configuration exactly matches
961 another IRIX machine on which AFS is already built into the kernel, you can copy the kernel from that machine to
962 this one. In general, however, it is better to build AFS modifications into the kernel on each machine according
963 to the following instructions. <orderedlist>
965 <para>Copy the kernel initialization file <emphasis role="bold">afs.sm</emphasis> to the local <emphasis
966 role="bold">/var/sysgen/system</emphasis> directory, and the kernel master file <emphasis
967 role="bold">afs</emphasis> to the local <emphasis role="bold">/var/sysgen/master.d</emphasis> directory.
969 # <emphasis role="bold">cp -p bin/afs.sm /var/sysgen/system</emphasis>
970 # <emphasis role="bold">cp -p bin/afs /var/sysgen/master.d</emphasis>
971 </programlisting></para>
975 <para>Copy the appropriate AFS kernel library file to the local file <emphasis
976 role="bold">/var/sysgen/boot/afs.a</emphasis>; the <emphasis
977 role="bold">IP</emphasis><replaceable>xx</replaceable> portion of the library file name must match the
978 value previously returned by the <emphasis role="bold">uname -m</emphasis> command. Also choose the file
979 appropriate to whether the machine's kernel supports NFS server functionality (NFS must be supported for
980 the machine to act as an NFS/AFS Translator). Single- and multiprocessor machines use the same library
983 <para>If the machine's kernel supports NFS server functionality:</para>
986 # <emphasis role="bold">cp -p bin/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.a /var/sysgen/boot/afs.a</emphasis>
989 <para>If the machine's kernel does not support NFS server functionality:</para>
992 # <emphasis role="bold">cp -p bin/libafs.IP</emphasis><replaceable>xx</replaceable><emphasis role="bold">.nonfs.a /var/sysgen/boot/afs.a</emphasis>
997 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to deactivate the <emphasis
998 role="bold">afsml</emphasis> configuration variable. <programlisting>
999 # <emphasis role="bold">/etc/chkconfig -f afsml off</emphasis>
1000 </programlisting></para>
1002 <para>If the machine is to function as an NFS/AFS Translator and the kernel supports NFS server
1003 functionality, activate the <emphasis role="bold">afsxnfs</emphasis> variable.</para>
1006 # <emphasis role="bold">/etc/chkconfig -f afsxnfs on</emphasis>
1011 <para>Copy the existing kernel file, <emphasis role="bold">/unix</emphasis>, to a safe location. Compile
1012 the new kernel, which is created in the file <emphasis role="bold">/unix.install</emphasis>. It overwrites
1013 the existing <emphasis role="bold">/unix</emphasis> file when the machine reboots in the next step.
1015 # <emphasis role="bold">cp /unix /unix_noafs</emphasis>
1016 # <emphasis role="bold">autoconfig</emphasis>
1017 </programlisting></para>
1021 <para>Reboot the machine to start using the new kernel, and login again as the superuser <emphasis
1022 role="bold">root</emphasis>. <programlisting>
1023 # <emphasis role="bold">cd /</emphasis>
1024 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
1025 login: <emphasis role="bold">root</emphasis>
1026 Password: <replaceable>root_password</replaceable>
1027 </programlisting></para>
1029 </orderedlist></para>
1031 </itemizedlist></para>
1034 <primary>configuring</primary>
1036 <secondary>AFS server partition on server machine after first</secondary>
1038 <tertiary>IRIX</tertiary>
1042 <primary>AFS server partition</primary>
1044 <secondary>configuring on server machine after first</secondary>
1046 <tertiary>IRIX</tertiary>
1050 <primary>file server machine, additional</primary>
1052 <secondary>AFS server partition</secondary>
1054 <tertiary>on IRIX</tertiary>
1058 <primary>IRIX</primary>
1060 <secondary>AFS server partition</secondary>
1062 <tertiary>on add'l server machine</tertiary>
1067 <para><anchor id="LIWQ105" />Create a directory called <emphasis
1068 role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS server partition you are configuring (there
1069 must be at least one). Repeat the command for each partition. <programlisting>
1070 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
1071 </programlisting></para>
1075 <para>Add a line with the following format to the file systems registry file, <emphasis
1076 role="bold">/etc/fstab</emphasis>, for each partition (or logical volume created with the XLV volume manager) to be
1077 mounted on one of the directories created in the previous step.</para>
1079 <para>For an XFS partition or logical volume:</para>
1082 /dev/dsk/<replaceable>disk</replaceable> /vicep<replaceable>xx</replaceable> xfs rw,raw=/dev/rdsk/<replaceable>disk</replaceable> 0 0
1085 <para>For an EFS partition:</para>
1088 /dev/dsk/<replaceable>disk</replaceable> /vicep<replaceable>xx</replaceable> efs rw,raw=/dev/rdsk/<replaceable>disk</replaceable> 0 0
1091 <para>The following are examples of an entry for each file system type:</para>
1094 /dev/dsk/dks0d2s6 /vicepa xfs rw,raw=/dev/rdsk/dks0d2s6 0 0
1095 /dev/dsk/dks0d3s1 /vicepb efs rw,raw=/dev/rdsk/dks0d3s1 0 0
1100 <para>Create a file system on each partition that is to be mounted on a <emphasis
1101 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directory. The following commands are probably appropriate,
1102 but consult the IRIX documentation for more information. In both cases, <replaceable>raw_device</replaceable> is a raw
1103 device name like <emphasis role="bold">/dev/rdsk/dks0d0s0</emphasis> for a single disk partition or <emphasis
1104 role="bold">/dev/rxlv/xlv0</emphasis> for a logical volume.</para>
1106 <para>For XFS file systems, include the indicated options to configure the partition or logical volume with inodes
1107 large enough to accommodate AFS-specific information:</para>
1110 # <emphasis role="bold">mkfs -t xfs -i size=512 -l size=4000b</emphasis> <replaceable>raw_device</replaceable>
1113 <para>For EFS file systems:</para>
1116 # <emphasis role="bold">mkfs -t efs</emphasis> <replaceable>raw_device</replaceable>
1121 <para>Mount each partition by issuing either the <emphasis role="bold">mount -a</emphasis> command to mount all
1122 partitions at once or the <emphasis role="bold">mount</emphasis> command to mount each partition in turn.</para>
1126 <para><emphasis role="bold">(Optional)</emphasis> If you have configured partitions or logical volumes to use XFS,
1127 issue the following command to verify that the inodes are configured properly (are large enough to accommodate
1128 AFS-specific information). If the configuration is correct, the command returns no output. Otherwise, it specifies the
1129 command to run in order to configure each partition or logical volume properly. <programlisting>
1130 # <emphasis role="bold">/usr/afs/bin/xfs_size_check</emphasis>
1131 </programlisting></para>
1135 <para>If the machine is to remain an AFS client, incorporate AFS into its authentication system, following the
1136 instructions in <link linkend="HDRWQ40">Enabling AFS Login on IRIX Systems</link>.</para>
1140 <para>Proceed to <link linkend="HDRWQ108">Starting Server Programs</link>.</para>
1142 </orderedlist></para>
1145 <sect3 id="HDRWQ106">
1146 <title>Getting Started on Linux Systems</title>
1149 <primary>file server machine, additional</primary>
1151 <secondary>fsck program</secondary>
1153 <tertiary>on Linux</tertiary>
1157 <primary>fsck program</primary>
1159 <secondary>on server machine after first</secondary>
1161 <tertiary>Linux</tertiary>
1164 <para>Begin by running the AFS initialization script to call the <emphasis role="bold">insmod</emphasis> program, which
1165 dynamically loads AFS modifications into the kernel. Then create partitions for storing AFS volumes. You do not need to
1166 replace the Linux <emphasis role="bold">fsck</emphasis> program.</para>
1168 <para> The procedure for starting up OpenAFS depends upon your distribution</para>
1171 <para>For Fedora and RedHat Enterprise Linux systems (or their
1172 derivateds), download and install the RPM set for your operating system
1173 from the OpenAFS distribution site. You will need the
1174 <emphasis role="bold">openafs</emphasis> and
1175 <emphasis role="bold">openafs-server</emphasis> packages, along
1176 with an <emphasis role="bold">openafs-kernel</emphasis> package
1177 matching your current, running, kernel. If you wish to install
1178 client functionality, you will also require the
1179 <emphasis role="bold">openafs-client</emphasis> package.</para>
1181 <para>You can find the version of your current kernel by running
1184 <replaceable>2.6.20-1.2933.fc6</replaceable>
1185 </programlisting></para>
1187 <para>Once downloaded, the packages may be installed with the
1188 <emphasis role="bold">rpm</emphasis> command
1190 # rpm -U openafs-* openafs-client-* openafs-server-* openafs-kernel-*
1191 </programlisting></para>
1195 <primary>incorporating AFS kernel extensions</primary>
1197 <secondary>server machine after first</secondary>
1199 <tertiary>Linux</tertiary>
1203 <primary>AFS kernel extensions</primary>
1205 <secondary>on server machine after first</secondary>
1207 <tertiary>Linux</tertiary>
1211 <primary>file server machine, additional</primary>
1213 <secondary>AFS kernel extensions</secondary>
1215 <tertiary>on Linux</tertiary>
1219 <primary>Linux</primary>
1221 <secondary>AFS kernel extensions</secondary>
1223 <tertiary>on add'l server machine</tertiary>
1225 <para>For systems which are provided as a tarball, or built from
1226 source, unpack the distribution tarball. The examples below assume
1227 that you have unpacked the files into the
1228 <emphasis role="bold">/tmp/afsdist</emphasis>directory. If you
1229 pick a different location, substitute this in all of the following
1230 examples. Once you have unpacked the distribution,
1231 change directory as indicated.
1233 # <emphasis role="bold">cd /tmp/afsdist/linux/root.client/usr/vice/etc</emphasis>
1234 </programlisting></para>
1236 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/modload</emphasis> directory.
1237 The filenames for the libraries have the format <emphasis
1238 role="bold">libafs-</emphasis><replaceable>version</replaceable><emphasis role="bold">.o</emphasis>, where
1239 <replaceable>version</replaceable> indicates the kernel build level. The string <emphasis role="bold">.mp</emphasis>
1240 in the <replaceable>version</replaceable> indicates that the file is appropriate for machines running a multiprocessor
1241 kernel. <programlisting>
1242 # <emphasis role="bold">cp -rp modload /usr/vice/etc</emphasis>
1243 </programlisting></para>
1245 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
1246 role="bold">/etc/rc.d/init.d</emphasis> on Linux machines). Note the removal of the <emphasis
1247 role="bold">.rc</emphasis> extension as you copy the script. <programlisting>
1248 # <emphasis role="bold">cp -p afs.rc /etc/rc.d/init.d/afs</emphasis>
1249 </programlisting></para>
1253 <primary>configuring</primary>
1255 <secondary>AFS server partition on server machine after first</secondary>
1257 <tertiary>Linux</tertiary>
1258 </indexterm> <indexterm>
1259 <primary>AFS server partition</primary>
1261 <secondary>configuring on server machine after first</secondary>
1263 <tertiary>Linux</tertiary>
1264 </indexterm> <indexterm>
1265 <primary>file server machine, additional</primary>
1267 <secondary>AFS server partition</secondary>
1269 <tertiary>on Linux</tertiary>
1270 </indexterm> <indexterm>
1271 <primary>Linux</primary>
1273 <secondary>AFS server partition</secondary>
1275 <tertiary>on add'l server machine</tertiary>
1277 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS
1278 server partition you are configuring (there must be at least one). Repeat the command for each partition.
1280 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
1281 </programlisting></para>
1285 <para>Add a line with the following format to the file systems registry file, <emphasis
1286 role="bold">/etc/fstab</emphasis>, for each directory just created. The entry maps the directory name to the disk
1287 partition to be mounted on it. <programlisting>
1288 /dev/<replaceable>disk</replaceable> /vicep<replaceable>xx</replaceable> ext2 defaults 0 2
1289 </programlisting></para>
1291 <para>The following is an example for the first partition being configured.</para>
1294 /dev/sda8 /vicepa ext2 defaults 0 2
1299 <para>Create a file system on each partition that is to be mounted at a <emphasis
1300 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directory. The following command is probably appropriate,
1301 but consult the Linux documentation for more information. <programlisting>
1302 # <emphasis role="bold">mkfs -v /dev/</emphasis><replaceable>disk</replaceable>
1303 </programlisting></para>
1307 <para>Mount each partition by issuing either the <emphasis role="bold">mount -a</emphasis> command to mount all
1308 partitions at once or the <emphasis role="bold">mount</emphasis> command to mount each partition in turn.</para>
1312 <para>If the machine is to remain an AFS client, incorporate AFS into its authentication system, following the
1313 instructions in <link linkend="HDRWQ44">Enabling AFS Login on Linux Systems</link>.</para>
1317 <para>Proceed to <link linkend="HDRWQ108">Starting Server Programs</link>.</para>
1322 <sect3 id="HDRWQ107">
1323 <title>Getting Started on Solaris Systems</title>
1325 <para>Begin by running the AFS initialization script to call the <emphasis role="bold">modload</emphasis> program, which
1326 dynamically loads AFS modifications into the kernel. Then configure partitions and replace the Solaris <emphasis
1327 role="bold">fsck</emphasis> program with a version that correctly handles AFS volumes. <orderedlist>
1329 <primary>incorporating AFS kernel extensions</primary>
1331 <secondary>server machine after first</secondary>
1333 <tertiary>Solaris</tertiary>
1337 <primary>AFS kernel extensions</primary>
1339 <secondary>on server machine after first</secondary>
1341 <tertiary>Solaris</tertiary>
1345 <primary>file server machine, additional</primary>
1347 <secondary>AFS kernel extensions</secondary>
1349 <tertiary>Solaris</tertiary>
1353 <primary>Solaris</primary>
1355 <secondary>AFS kernel extensions</secondary>
1357 <tertiary>on add'l server machine</tertiary>
1361 <para>Unpack the OpenAFS Solaris distribution tarball. The examples
1362 below assume that you have unpacked the files into the
1363 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
1364 pick a diferent location, substitute this in all of the following
1365 exmaples. Once you have unpacked the distribution, change directory
1368 # <emphasis role="bold">cd /tmp/afsdist/sun4x_56/root.client/usr/vice/etc</emphasis>
1369 </programlisting></para>
1373 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
1374 role="bold">/etc/init.d</emphasis> on Solaris machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
1375 extension as you copy the script. <programlisting>
1376 # <emphasis role="bold">cp -p afs.rc /etc/init.d/afs</emphasis>
1377 </programlisting></para>
1381 <para>Copy the appropriate AFS kernel library file to the local file <emphasis
1382 role="bold">/kernel/fs/afs</emphasis>.</para>
1384 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, its kernel supports NFS server
1385 functionality, and the <emphasis role="bold">nfsd</emphasis> process is running:</para>
1388 # <emphasis role="bold">cp -p modload/libafs.o /kernel/fs/afs</emphasis>
1391 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, and its kernel does not support NFS
1392 server functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
1395 # <emphasis role="bold">cp -p modload/libafs.nonfs.o /kernel/fs/afs</emphasis>
1398 <para>If the machine is running the 64-bit version of Solaris 7, its kernel supports NFS server functionality, and the
1399 <emphasis role="bold">nfsd</emphasis> process is running:</para>
1402 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/fs/sparcv9/afs</emphasis>
1405 <para>If the machine is running the 64-bit version of Solaris 7, and its kernel does not support NFS server
1406 functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
1409 # <emphasis role="bold">cp -p modload/libafs64.nonfs.o /kernel/fs/sparcv9/afs</emphasis>
1414 <para>Run the AFS initialization script to load AFS modifications into the kernel. You can ignore any error messages
1415 about the inability to start the BOS Server or the Cache Manager or AFS client. <programlisting>
1416 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
1417 </programlisting></para>
1419 <para>When an entry called <computeroutput>afs</computeroutput> does not already exist in the local <emphasis
1420 role="bold">/etc/name_to_sysnum</emphasis> file, the script automatically creates it and reboots the machine to start
1421 using the new version of the file. If this happens, log in again as the superuser <emphasis
1422 role="bold">root</emphasis> after the reboot and run the initialization script again. This time the required entry
1423 exists in the <emphasis role="bold">/etc/name_to_sysnum</emphasis> file, and the <emphasis
1424 role="bold">modload</emphasis> program runs.</para>
1427 login: <emphasis role="bold">root</emphasis>
1428 Password: <replaceable>root_password</replaceable>
1429 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
1433 <primary>replacing fsck program</primary>
1435 <secondary>server machine after first</secondary>
1437 <tertiary>Solaris</tertiary>
1441 <primary>fsck program</primary>
1443 <secondary>on server machine after first</secondary>
1445 <tertiary>Solaris</tertiary>
1449 <primary>file server machine, additional</primary>
1451 <secondary>fsck program</secondary>
1453 <tertiary>on Solaris</tertiary>
1457 <primary>Solaris</primary>
1459 <secondary>fsck program</secondary>
1461 <tertiary>on add'l server machine</tertiary>
1466 <para>Create the <emphasis role="bold">/usr/lib/fs/afs</emphasis> directory to house the AFS-modified <emphasis
1467 role="bold">fsck</emphasis> program and related files. <programlisting>
1468 # <emphasis role="bold">mkdir /usr/lib/fs/afs</emphasis>
1469 # <emphasis role="bold">cd /usr/lib/fs/afs</emphasis>
1470 </programlisting></para>
1474 <para>Copy the <emphasis role="bold">vfsck</emphasis> binary to the newly created directory, changing the name as you
1475 do so. <programlisting>
1476 # <emphasis role="bold">cp /cdrom/sun4x_56/root.server/etc/vfsck fsck</emphasis>
1477 </programlisting></para>
1481 <para>Working in the <emphasis role="bold">/usr/lib/fs/afs</emphasis> directory, create the following links to Solaris
1482 libraries: <programlisting>
1483 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/clri</emphasis>
1484 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/df</emphasis>
1485 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/edquota</emphasis>
1486 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ff</emphasis>
1487 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/fsdb</emphasis>
1488 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/fsirand</emphasis>
1489 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/fstyp</emphasis>
1490 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/labelit</emphasis>
1491 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/lockfs</emphasis>
1492 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/mkfs</emphasis>
1493 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/mount</emphasis>
1494 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ncheck</emphasis>
1495 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/newfs</emphasis>
1496 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quot</emphasis>
1497 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quota</emphasis>
1498 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quotaoff</emphasis>
1499 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quotaon</emphasis>
1500 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/repquota</emphasis>
1501 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/tunefs</emphasis>
1502 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ufsdump</emphasis>
1503 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ufsrestore</emphasis>
1504 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/volcopy</emphasis>
1505 </programlisting></para>
1509 <para>Append the following line to the end of the file <emphasis role="bold">/etc/dfs/fstypes</emphasis>.
1512 </programlisting></para>
1516 <para>Edit the <emphasis role="bold">/sbin/mountall</emphasis> file, making two changes. <itemizedlist>
1518 <para>Add an entry for AFS to the <computeroutput>case</computeroutput> statement for option 2, so that it reads
1519 as follows: <programlisting>
1521 ufs) foptions="-o p"
1523 afs) foptions="-o p"
1525 s5) foptions="-y -t /var/tmp/tmp$$ -D"
1529 </programlisting></para>
1533 <para>Edit the file so that all AFS and UFS partitions are checked in parallel. Replace the following section of
1534 code: <programlisting>
1535 # For fsck purposes, we make a distinction between ufs and
1536 # other file systems
1538 if [ "$fstype" = "ufs" ]; then
1539 ufs_fscklist="$ufs_fscklist $fsckdev"
1540 saveentry $fstype "$OPTIONS" $special $mountp
1543 </programlisting></para>
1545 <para>with the following section of code:</para>
1548 # For fsck purposes, we make a distinction between ufs/afs
1549 # and other file systems.
1551 if [ "$fstype" = "ufs" -o "$fstype" = "afs" ]; then
1552 ufs_fscklist="$ufs_fscklist $fsckdev"
1553 saveentry $fstype "$OPTIONS" $special $mountp
1558 </itemizedlist></para>
1561 <primary>configuring</primary>
1563 <secondary>AFS server partition on server machine after first</secondary>
1565 <tertiary>Solaris</tertiary>
1569 <primary>AFS server partition</primary>
1571 <secondary>configuring on server machine after first</secondary>
1573 <tertiary>Solaris</tertiary>
1577 <primary>file server machine, additional</primary>
1579 <secondary>AFS server partition</secondary>
1581 <tertiary>on Solaris</tertiary>
1585 <primary>Solaris</primary>
1587 <secondary>AFS server partition</secondary>
1589 <tertiary>on add'l server machine</tertiary>
1594 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS
1595 server partition you are configuring (there must be at least one). Repeat the command for each partition.
1597 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
1598 </programlisting></para>
1602 <para>Add a line with the following format to the file systems registry file, <emphasis
1603 role="bold">/etc/vfstab</emphasis>, for each partition to be mounted on a directory created in the previous step. Note
1604 the value <computeroutput>afs</computeroutput> in the fourth field, which tells Solaris to use the AFS-modified
1605 <emphasis role="bold">fsck</emphasis> program on this partition. <programlisting>
1606 /dev/dsk/<replaceable>disk</replaceable> /dev/rdsk/<replaceable>disk</replaceable> /vicep<replaceable>xx</replaceable> afs <replaceable>boot_order</replaceable> yes
1607 </programlisting></para>
1609 <para>The following is an example for the first partition being configured.</para>
1612 /dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1 /vicepa afs 3 yes
1617 <para>Create a file system on each partition that is to be mounted at a <emphasis
1618 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directory. The following command is probably appropriate,
1619 but consult the Solaris documentation for more information. <programlisting>
1620 # <emphasis role="bold">newfs -v /dev/rdsk/</emphasis><replaceable>disk</replaceable>
1621 </programlisting></para>
1625 <para>Issue the <emphasis role="bold">mountall</emphasis> command to mount all partitions at once.</para>
1629 <para>If the machine is to remain an AFS client, incorporate AFS into its authentication system, following the
1630 instructions in <link linkend="HDRWQ49">Enabling AFS Login and Editing the File Systems Clean-up Script on Solaris
1631 Systems</link>.</para>
1635 <para>Proceed to <link linkend="HDRWQ108">Starting Server Programs</link>.</para>
1637 </orderedlist></para>
1640 <primary>file server machine, additional</primary>
1642 <secondary>server functionality</secondary>
1646 <primary>installing</primary>
1648 <secondary>server functionality</secondary>
1650 <tertiary>server machine after first</tertiary>
1655 <sect2 id="HDRWQ108">
1656 <title>Starting Server Programs</title>
1658 <para>In this section you initialize the BOS Server, the Update Server, the controller process for NTPD, and the <emphasis
1659 role="bold">fs</emphasis> process. You begin by copying the necessary server files to the local disk. <orderedlist>
1661 <primary>copying</primary>
1663 <secondary>server files to local disk</secondary>
1665 <tertiary>server machine after first</tertiary>
1669 <primary>Binary Distribution</primary>
1671 <secondary>copying server files from</secondary>
1673 <tertiary>server machine after first</tertiary>
1677 <primary>file server machine, additional</primary>
1679 <secondary>copying</secondary>
1681 <tertiary>server files to local disk</tertiary>
1685 <para>Copy file server binaries to the local <emphasis role="bold">/usr/afs/bin</emphasis> directory. <itemizedlist>
1687 <para>On a machine of an existing system type, you can either
1688 copy files from the OpenAFS binary distribution or use a
1689 remote file transfer protocol to copy files from an existing
1690 server machine of the same system type. To load from the
1691 binary distribution, see the instructions just following for
1692 a machine of a new system type. If using a remote file
1693 transfer protocol, copy the complete contents of the
1694 existing server machine's
1695 <emphasis role="bold">/usr/afs/bin</emphasis>
1700 <para>If you are working from a tarball distribtion, rather
1701 than one distributed in a packaged format, you must use the
1702 following instructions to copy files from
1703 the OpenAFS Binary Distribution.
1706 <para>Unpack the distribution tarball. The examples
1707 below assume that you have unpacked the files into the
1708 <emphasis role="bold">/tmp/afsdist</emphasis>
1709 directory. If you pick a different location, substitute
1710 this in all of the following examples.</para>
1714 <para>Copy files from the distribution to the local <emphasis role="bold">/usr/afs</emphasis> directory.
1716 # <emphasis role="bold">cd /tmp/afsdist/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/root.server/usr/afs</emphasis>
1717 # <emphasis role="bold">cp -rp * /usr/afs</emphasis>
1718 </programlisting></para>
1720 </orderedlist></para>
1722 </itemizedlist></para>
1725 <primary>usr/afs/etc directory</primary>
1727 <secondary>server machine after first</secondary>
1731 <primary>file server machine, additional</primary>
1733 <secondary>/usr/afs/etc directory</secondary>
1737 <primary>creating</primary>
1739 <secondary>/usr/afs/etc directory</secondary>
1741 <tertiary>server machine after first</tertiary>
1745 <primary>creating</primary>
1747 <secondary>CellServDB file (server)</secondary>
1749 <tertiary>server machine after first</tertiary>
1753 <primary>UserList file</primary>
1755 <secondary>server machine after first</secondary>
1759 <primary>KeyFile file</primary>
1761 <secondary>server machine after first</secondary>
1765 <primary>CellServDB file (server)</primary>
1767 <secondary>creating</secondary>
1769 <tertiary>on server machine after first</tertiary>
1773 <primary>database server machine</primary>
1775 <secondary>entry in server CellServDB file</secondary>
1777 <tertiary>on server machine after first</tertiary>
1781 <primary>ThisCell file (server)</primary>
1783 <secondary>server machine after first</secondary>
1787 <primary>file server machine, additional</primary>
1789 <secondary>cell membership, defining</secondary>
1791 <tertiary>for server processes</tertiary>
1795 <primary>setting</primary>
1797 <secondary>cell name in server ThisCell file</secondary>
1799 <tertiary>server machine after first</tertiary>
1803 <primary>file server machine, additional</primary>
1805 <secondary>ThisCell file (server)</secondary>
1810 <para>Copy the contents of the
1811 <emphasis role="bold">/usr/afs/etc</emphasis> directory from an
1812 existing file server machine, using a remote file transfer protocol
1813 such as <emphasis role="bold">sftp</emphasis> or
1814 <emphasis role="bold">scp</emphasis>. If you use a system
1815 control machine, it is best to copy the contents of its
1816 <emphasis role="bold">/usr/afs/etc</emphasis> directory. If you
1817 choose not to run a system control machine, copy the directory's
1818 contents from any existing file server machine.
1820 <primary>BOS Server</primary>
1822 <secondary>starting</secondary>
1824 <tertiary>server machine after first</tertiary>
1825 </indexterm> <indexterm>
1826 <primary>starting</primary>
1828 <secondary>BOS Server</secondary>
1830 <tertiary>server machine after first</tertiary>
1831 </indexterm> <indexterm>
1832 <primary>file server machine, additional</primary>
1834 <secondary>BOS Server</secondary>
1835 </indexterm> <indexterm>
1836 <primary>authorization checking (disabling)</primary>
1838 <secondary>server machine after first</secondary>
1839 </indexterm> <indexterm>
1840 <primary>disabling authorization checking</primary>
1842 <secondary>server machine after first</secondary>
1843 </indexterm> <indexterm>
1844 <primary>file server machine, additional</primary>
1846 <secondary>authorization checking (disabling)</secondary>
1851 <para>Change to the <emphasis role="bold">/usr/afs/bin</emphasis> directory and start the BOS Server (<emphasis
1852 role="bold">bosserver</emphasis> process). Include the <emphasis role="bold">-noauth</emphasis> flag to prevent the AFS
1853 processes from performing authorization checking. This is a grave compromise of security; finish the remaining
1854 instructions in this section in an uninterrupted pass. <programlisting>
1855 # <emphasis role="bold">cd /usr/afs/bin</emphasis>
1856 # <emphasis role="bold">./bosserver -noauth &</emphasis>
1857 </programlisting> <indexterm>
1858 <primary>BosConfig file</primary>
1860 <secondary>adding entries</secondary>
1862 <tertiary>server machine after first</tertiary>
1863 </indexterm> <indexterm>
1864 <primary>adding</primary>
1866 <secondary>entries to BosConfig file</secondary>
1868 <tertiary>server machine after first</tertiary>
1869 </indexterm> <indexterm>
1870 <primary>Update Server</primary>
1872 <secondary>starting client portion</secondary>
1873 </indexterm> <indexterm>
1874 <primary>upclient process</primary>
1875 </indexterm> <indexterm>
1876 <primary>starting</primary>
1878 <secondary>Update Server client portion</secondary>
1879 </indexterm> <indexterm>
1880 <primary>file server machine, additional</primary>
1882 <secondary>Update Server client portion</secondary>
1887 <para><anchor id="LIWQ109" />If you run a system control machine, create the <emphasis
1888 role="bold">upclientetc</emphasis> process as an instance of the client portion of the Update Server. It accepts updates
1889 of the common configuration files stored in the system control machine's <emphasis role="bold">/usr/afs/etc</emphasis>
1890 directory from the <emphasis role="bold">upserver</emphasis> process (server portion of the Update Server) running on
1891 that machine. The cell's first file server machine was installed as the system control machine in <link
1892 linkend="HDRWQ61">Starting the Server Portion of the Update Server</link>. (If you do not run a system control machine,
1893 you must update the contents of the <emphasis role="bold">/usr/afs/etc</emphasis> directory on each file server machine,
1894 using the appropriate <emphasis role="bold">bos</emphasis> commands.)</para>
1896 <para>By default, the Update Server performs updates every 300 seconds (five minutes). Use the <emphasis
1897 role="bold">-t</emphasis> argument to specify a different number of seconds. For the
1898 <replaceable>machine name</replaceable> argument, substitute the name of the machine you are installing. The
1899 command appears on multiple lines here only for legibility reasons.</para>
1902 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">upclientetc simple</emphasis> \
1903 <emphasis role="bold">"/usr/afs/bin/upclient</emphasis> <<replaceable>system control machine</replaceable>> \
1904 [<emphasis role="bold">-t</emphasis> <<replaceable>time</replaceable>>] <emphasis role="bold">/usr/afs/etc" -cell</emphasis> <<replaceable>cell name</replaceable>> <emphasis
1905 role="bold">-noauth</emphasis>
1909 <primary>Update Server</primary>
1911 <secondary>starting server portion</secondary>
1913 <tertiary>server machine after first</tertiary>
1917 <primary>starting</primary>
1919 <secondary>Update Server server portion</secondary>
1921 <tertiary>server machine after first</tertiary>
1925 <primary>file server machine, additional</primary>
1927 <secondary>Update Server server portion</secondary>
1932 <para><anchor id="LIWQ110" />Create an instance of the Update
1933 Server to handle distribution of the file server binaries
1934 stored in the <emphasis role="bold">/usr/afs/bin</emphasis>
1935 directory. If your architecture using a package management system
1936 such as 'rpm' or 'apt' to maintain its binaries, note that
1937 distributing binaries via this system may interfere with your local
1938 package management tools.
1943 <para>If this is the first file server machine of its AFS system type, create the <emphasis
1944 role="bold">upserver</emphasis> process as an instance of the server portion of the Update Server. It distributes
1945 its copy of the file server process binaries to the other file server machines of this system type that you
1946 install in future. Creating this process makes this machine the binary distribution machine for its type.
1948 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">upserver simple</emphasis> \
1949 <emphasis role="bold">"/usr/afs/bin/upserver -clear /usr/afs/bin"</emphasis> \
1950 <emphasis role="bold">-cell</emphasis> <<replaceable>cell name</replaceable>> <emphasis role="bold">-noauth</emphasis>
1951 </programlisting></para>
1955 <para>If this machine is an existing system type, create the <emphasis role="bold">upclientbin</emphasis> process
1956 as an instance of the client portion of the Update Server. It accepts updates of the AFS binaries from the
1957 <emphasis role="bold">upserver</emphasis> process running on the binary distribution machine for its system type.
1958 For distribution to work properly, the <emphasis role="bold">upserver</emphasis> process must already by running
1959 on that machine.</para>
1961 <para>Use the <emphasis role="bold">-clear</emphasis> argument to specify that the <emphasis
1962 role="bold">upclientbin</emphasis> process requests unencrypted transfer of the binaries in the <emphasis
1963 role="bold">/usr/afs/bin</emphasis> directory. Binaries are not sensitive and encrypting them is
1964 time-consuming.</para>
1966 <para>By default, the Update Server performs updates every 300 seconds (five minutes). Use the <emphasis
1967 role="bold">-t</emphasis> argument to specify an different number of seconds.</para>
1970 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">upclientbin simple</emphasis> \
1971 <emphasis role="bold">"/usr/afs/bin/upclient</emphasis> <<replaceable>binary distribution machine</replaceable>> \
1972 [<emphasis role="bold">-t</emphasis> <<replaceable>time</replaceable>>] <emphasis role="bold">-clear /usr/afs/bin" -cell</emphasis> <<replaceable>cell name</replaceable>> <emphasis
1973 role="bold">-noauth</emphasis>
1979 <primary>runntp process</primary>
1981 <secondary>server machine after first</secondary>
1985 <primary>starting</primary>
1987 <secondary>runntp process</secondary>
1989 <tertiary>server machine after first</tertiary>
1993 <primary>file server machine, additional</primary>
1995 <secondary>runntp process</secondary>
1999 <primary>NTPD</primary>
2001 <secondary>server machine after first</secondary>
2008 <para>Historically, AFS provided its own version of the
2009 Network Time Protocol Daemon. Whilst this is still provided for
2010 existing sites, we recommend that you configure and run your
2011 own timeservice independently of AFS. The instructions below are
2012 provided for those sites still reliant upon OpenAFS's ntp system.
2016 <para>Start the <emphasis role="bold">runntp</emphasis> process, which configures the Network Time Protocol Daemon
2017 (NTPD) to choose a database server machine chosen randomly from the local <emphasis
2018 role="bold">/usr/afs/etc/CellServDB</emphasis> file as its time source. In the standard configuration, the first
2019 database server machine installed in your cell refers to a time source outside the cell, and serves as the basis for
2020 clock synchronization on all server machines. <programlisting>
2021 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">runntp simple</emphasis> \
2022 <emphasis role="bold">/usr/afs/bin/runntp -cell</emphasis> <<replaceable>cell name</replaceable>> <emphasis
2023 role="bold">-noauth</emphasis>
2024 </programlisting></para>
2027 <para>Do not run the <emphasis role="bold">runntp</emphasis> process if NTPD or another time synchronization protocol
2028 is already running on the machine. Some versions of some operating systems run a time synchronization program by
2029 default, as detailed in the <emphasis>OpenAFS Release Notes</emphasis>.</para>
2031 <para>Attempting to run multiple instances of the NTPD causes an error. Running NTPD together with another time
2032 synchronization protocol is unnecessary and can cause instability in the clock setting.</para>
2036 <primary>File Server</primary>
2038 <secondary>server machine after first</secondary>
2042 <primary>starting</primary>
2044 <secondary>File Server</secondary>
2046 <tertiary>server machine after first</tertiary>
2050 <primary>file server machine, additional</primary>
2052 <secondary>File Server</secondary>
2056 <primary>Volume Server</primary>
2058 <secondary>server machine after first</secondary>
2062 <primary>starting</primary>
2064 <secondary>Volume Server</secondary>
2066 <tertiary>server machine after first</tertiary>
2070 <primary>file server machine, additional</primary>
2072 <secondary>Volume Server</secondary>
2076 <primary>Salvager (salvager process)</primary>
2078 <secondary>server machine after first</secondary>
2082 <primary>fs process</primary>
2084 <secondary>server machine after first</secondary>
2088 <primary>starting</primary>
2090 <secondary>fs process</secondary>
2092 <tertiary>server machine after first</tertiary>
2096 <primary>file server machine, additional</primary>
2098 <secondary>fs process</secondary>
2103 <para>Start the <emphasis role="bold">fs</emphasis> process, which binds together the File Server, Volume Server, and
2104 Salvager. <programlisting>
2105 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">fs fs</emphasis> \
2106 <emphasis role="bold">/usr/afs/bin/fileserver /usr/afs/bin/volserver</emphasis> \
2107 <emphasis role="bold">/usr/afs/bin/salvager -cell</emphasis> <<replaceable>cell name</replaceable>> <emphasis
2108 role="bold">-noauth</emphasis>
2109 </programlisting></para>
2111 </orderedlist></para>
2114 <primary>installing</primary>
2116 <secondary>client functionality</secondary>
2118 <tertiary>server machine after first</tertiary>
2122 <primary>file server machine, additional</primary>
2124 <secondary>client functionality</secondary>
2128 <sect2 id="HDRWQ111">
2129 <title>Installing Client Functionality</title>
2131 <para>If you want this machine to be a client as well as a server, follow the instructions in this section. Otherwise, skip to
2132 <link linkend="HDRWQ112">Completing the Installation</link>.</para>
2134 <para>Begin by loading the necessary client files to the local disk. Then create the necessary configuration files and start
2135 the Cache Manager. For more detailed explanation of the procedures involved, see the corresponding instructions in <link
2136 linkend="HDRWQ17">Installing the First AFS Machine</link> (in the sections following <link linkend="HDRWQ63">Overview:
2137 Installing Client Functionality</link>).</para>
2139 <para>If another AFS machine of this machine's system type exists, the AFS binaries are probably already accessible in your
2140 AFS filespace (the conventional location is <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2141 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis>). If not, or if this is
2142 the first AFS machine of its type, copy the AFS binaries for this system type into an AFS volume by following the instructions
2143 in <link linkend="HDRWQ83">Storing AFS Binaries in AFS</link>. Because this machine is not yet an AFS client, you must perform
2144 the procedure on an existing AFS machine. However, remember to perform the final step (linking the local directory <emphasis
2145 role="bold">/usr/afsws</emphasis> to the appropriate location in the AFS file tree) on this machine itself. If you also want
2146 to create AFS volumes to house UNIX system binaries for the new system type, see <link linkend="HDRWQ88">Storing System
2147 Binaries in AFS</link>. <indexterm>
2148 <primary>Binary Distribution</primary>
2150 <secondary>copying client files from</secondary>
2152 <tertiary>server machine after first</tertiary>
2153 </indexterm> <indexterm>
2154 <primary>file server machine, additional</primary>
2156 <secondary>copying</secondary>
2158 <tertiary>client files to local disk</tertiary>
2159 </indexterm> <indexterm>
2160 <primary>copying</primary>
2162 <secondary>client files to local disk</secondary>
2164 <tertiary>server machine after first</tertiary>
2165 </indexterm> <orderedlist>
2167 <para>Copy client binaries and files to the local disk. <itemizedlist>
2169 <para>On a machine of an existing system type, you can either
2170 load files from the OpenAFS Binary Distribution or use a
2171 remote file transfer protocol to copy files from an existing
2172 server machine of the same system type. To load from the
2173 binary distribution, see the instructions just following
2174 for a machine of a new system type. If using a remote file
2175 transfer protocol, copy the complete contents of the existing
2177 <emphasis role="bold">/usr/vice/etc</emphasis>
2182 <para>On a machine of a new system type, you must use the
2183 following instructions to copy files from the OpenAFS
2184 Binary Distribution. If your distribution is provided in
2185 a packaged format, then simply installing the packages will
2186 perform the necessary actions.
2189 <para>Unpack the distribution tarball. The examples
2190 below assume that you have unpacked the files into the
2191 <emphasis role="bold">/tmp/afsdist</emphasis>
2192 directory. If you pick a different location, substitute
2193 this in all of the following examples.</para>
2197 <para>Copy files to the local <emphasis role="bold">/usr/vice/etc</emphasis> directory.</para>
2199 <para>This step places a copy of the AFS initialization script (and related files, if applicable) into the
2200 <emphasis role="bold">/usr/vice/etc</emphasis> directory. In the preceding instructions for incorporating
2201 AFS into the kernel, you copied the script directly to the operating system's conventional location for
2202 initialization files. When you incorporate AFS into the machine's startup sequence in a later step, you can
2203 choose to link the two files.</para>
2205 <para>On some system types that use a dynamic kernel loader program, you previously copied AFS library files
2206 into a subdirectory of the <emphasis role="bold">/usr/vice/etc</emphasis> directory. On other system types,
2207 you copied the appropriate AFS library file directly to the directory where the operating system accesses
2208 it. The following commands do not copy or recopy the AFS library files into the <emphasis
2209 role="bold">/usr/vice/etc</emphasis> directory, because on some system types the library files consume a
2210 large amount of space. If you want to copy them, add the <emphasis role="bold">-r</emphasis> flag to the
2211 first <emphasis role="bold">cp</emphasis> command and skip the second <emphasis role="bold">cp</emphasis>
2215 # <emphasis role="bold">cd /tmp/afsdist/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis>
2216 # <emphasis role="bold">cp -p * /usr/vice/etc</emphasis>
2217 # <emphasis role="bold">cp -rp C /usr/vice/etc</emphasis>
2220 </orderedlist></para>
2222 </itemizedlist></para>
2225 <primary>cell name</primary>
2227 <secondary>setting in client ThisCell file</secondary>
2229 <tertiary>server machine after first</tertiary>
2233 <primary>cell name</primary>
2235 <secondary>setting in server ThisCell file</secondary>
2237 <tertiary>server machine after first</tertiary>
2241 <primary>setting</primary>
2243 <secondary>cell name in client ThisCell file</secondary>
2245 <tertiary>server machine after first</tertiary>
2249 <primary>file server machine, additional</primary>
2251 <secondary>ThisCell file (client)</secondary>
2255 <primary>file server machine, additional</primary>
2257 <secondary>cell membership, defining</secondary>
2259 <tertiary>for client processes</tertiary>
2263 <primary>ThisCell file (client)</primary>
2265 <secondary>server machine after first</secondary>
2270 <para>Change to the <emphasis role="bold">/usr/vice/etc</emphasis> directory and create the <emphasis
2271 role="bold">ThisCell</emphasis> file as a copy of the <emphasis role="bold">/usr/afs/etc/ThisCell</emphasis> file. You
2272 must first remove the symbolic link to the <emphasis role="bold">/usr/afs/etc/ThisCell</emphasis> file that the BOS
2273 Server created automatically in <link linkend="HDRWQ108">Starting Server Programs</link>. <programlisting>
2274 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2275 # <emphasis role="bold">rm ThisCell</emphasis>
2276 # <emphasis role="bold">cp /usr/afs/etc/ThisCell ThisCell</emphasis>
2277 </programlisting></para>
2281 <para>Remove the symbolic link to the <emphasis role="bold">/usr/afs/etc/CellServDB</emphasis> file. <programlisting>
2282 # <emphasis role="bold">rm CellServDB</emphasis>
2283 </programlisting> <indexterm>
2284 <primary>database server machine</primary>
2286 <secondary>entry in client CellServDB file</secondary>
2288 <tertiary>on server machine after first</tertiary>
2289 </indexterm> <indexterm>
2290 <primary>CellServDB file (client)</primary>
2292 <secondary>creating</secondary>
2294 <tertiary>on server machine after first</tertiary>
2295 </indexterm> <indexterm>
2296 <primary>creating</primary>
2298 <secondary>CellServDB file (client)</secondary>
2300 <tertiary>server machine after first</tertiary>
2306 <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file.
2307 Use a network file transfer program such as
2308 <emphasis role="bold">sftp</emphasis> or
2309 <emphasis role="bold">scp</emphasis> to copy it from
2310 one of the following sources, which are listed in
2311 decreasing order of preference:
2314 <para>Your cell's central <emphasis role="bold">CellServDB</emphasis> source file (the conventional location is
2315 <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2316 role="bold">/common/etc/CellServDB</emphasis>)</para>
2320 <para>The global <emphasis role="bold">CellServDB</emphasis>
2321 file maintained at grand.central.org</para>
2325 <para>An existing client machine in your cell</para>
2329 <para>The <emphasis role="bold">CellServDB.sample</emphasis>
2330 file included in the
2331 <replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis>
2332 directory of each OpenAFS distribution; add an entry for the
2333 local cell by following the instructions in
2334 <link linkend="HDRWQ66">Creating the Client CellServDB File</link>
2341 <primary>cache</primary>
2343 <secondary>configuring</secondary>
2345 <tertiary>server machine after first</tertiary>
2349 <primary>configuring</primary>
2351 <secondary>cache</secondary>
2353 <tertiary>server machine after first</tertiary>
2357 <primary>setting</primary>
2359 <secondary>cache size and location</secondary>
2361 <tertiary>server machine after first</tertiary>
2365 <primary>file server machine, additional</primary>
2367 <secondary>cache size and location</secondary>
2372 <para>Create the <emphasis role="bold">cacheinfo</emphasis> file for either a disk cache or a memory cache. For a
2373 discussion of the appropriate values to record in the file, see <link linkend="HDRWQ67">Configuring the
2374 Cache</link>.</para>
2376 <para>To configure a disk cache, issue the following commands. If you are devoting a partition exclusively to caching,
2377 as recommended, you must also configure it, make a file system on it, and mount it at the directory created in this
2381 # <emphasis role="bold">mkdir /usr/vice/cache</emphasis>
2382 # <emphasis role="bold">echo "/afs:/usr/vice/cache:</emphasis><replaceable>#blocks</replaceable><emphasis role="bold">" > cacheinfo</emphasis>
2385 <para>To configure a memory cache:</para>
2388 # <emphasis role="bold">echo "/afs:/usr/vice/cache:</emphasis><replaceable>#blocks</replaceable><emphasis role="bold">" > cacheinfo</emphasis>
2392 <primary>Cache Manager</primary>
2394 <secondary>server machine after first</secondary>
2398 <primary>configuring</primary>
2400 <secondary>Cache Manager</secondary>
2402 <tertiary>server machine after first</tertiary>
2406 <primary>file server machine, additional</primary>
2408 <secondary>Cache Manager</secondary>
2412 <primary>afs (/afs) directory</primary>
2414 <secondary>creating</secondary>
2416 <tertiary>server machine after first</tertiary>
2420 <primary>AFS initialization script</primary>
2422 <secondary>setting afsd parameters</secondary>
2424 <tertiary>server machine after first</tertiary>
2428 <primary>file server machine, additional</primary>
2430 <secondary>afsd command parameters</secondary>
2435 <para>Create the local directory on which to mount the AFS filespace, by convention <emphasis
2436 role="bold">/afs</emphasis>. If the directory already exists, verify that it is empty. <programlisting>
2437 # <emphasis role="bold">mkdir /afs</emphasis>
2438 </programlisting></para>
2442 <para>On AIX systems, add the following line to the <emphasis role="bold">/etc/vfs</emphasis> file. It enables AIX to
2443 unmount AFS correctly during shutdown. <programlisting>
2445 </programlisting></para>
2449 <para>On non-packaged Linux systems, copy the <emphasis role="bold">afsd</emphasis> options file from the <emphasis
2450 role="bold">/usr/vice/etc</emphasis> directory to the <emphasis role="bold">/etc/sysconfig</emphasis> directory,
2451 removing the <emphasis role="bold">.conf</emphasis> extension as you do so. <programlisting>
2452 # <emphasis role="bold">cp /usr/vice/etc/afs.conf /etc/sysconfig/afs</emphasis>
2453 </programlisting></para>
2457 <para>Edit the machine's AFS initialization script or <emphasis role="bold">afsd</emphasis> options file to set
2458 appropriate values for <emphasis role="bold">afsd</emphasis> command parameters. The script resides in the indicated
2459 location on each system type: <itemizedlist>
2461 <para>On AIX systems, <emphasis role="bold">/etc/rc.afs</emphasis></para>
2465 <para>On HP-UX systems, <emphasis role="bold">/sbin/init.d/afs</emphasis></para>
2469 <para>On IRIX systems, <emphasis role="bold">/etc/init.d/afs</emphasis></para>
2473 <para>On Fedora and RHEL systems,
2474 <emphasis role="bold">/etc/sysconfig/openafs</emphasis>.
2475 Note that this file has a different format from a standard
2476 afsd options file.</para>
2480 <para>On non-packaged Linux systems, <emphasis role="bold">/etc/sysconfig/afs</emphasis> (the <emphasis
2481 role="bold">afsd</emphasis> options file)</para>
2486 <para>On Solaris systems, <emphasis role="bold">/etc/init.d/afs</emphasis></para>
2488 </itemizedlist></para>
2490 <para>Use one of the methods described in <link linkend="HDRWQ70">Configuring the Cache Manager</link> to add the
2491 following flags to the <emphasis role="bold">afsd</emphasis> command line. If you intend for the machine to remain an
2492 AFS client, also set any performance-related arguments you wish. <itemizedlist>
2493 <!-- nosetime is now the default
2495 <para>Add the <emphasis role="bold">-nosettime</emphasis> flag, because this is a file server machine that is also
2500 <para>Add the <emphasis role="bold">-memcache</emphasis> flag if the machine is to use a memory cache.</para>
2504 <para>Add the <emphasis role="bold">-verbose</emphasis> flag to display a trace of the Cache Manager's
2505 initialization on the standard output stream.</para>
2508 <para>Add the <emphasis role="bold">--dynroot</emphasis> or
2509 <emphasis role="bold">--afsdb</emphasis> options if you
2510 wish to have a synthetic AFS root, as discussed in
2511 <link linkend="HDRWQ91">Enabling Access to Foreign Cells</link>
2514 </itemizedlist></para>
2518 <para>If appropriate, follow the instructions in <link linkend="HDRWQ83">Storing AFS Binaries in AFS</link> to copy the
2519 AFS binaries for this system type into an AFS volume. See the introduction to this section for further
2522 </orderedlist></para>
2525 <sect2 id="HDRWQ112">
2526 <title>Completing the Installation</title>
2528 <para>At this point you run the machine's AFS initialization script to verify that it correctly loads AFS modifications into
2529 the kernel and starts the BOS Server, which starts the other server processes. If you have installed client files, the script
2530 also starts the Cache Manager. If the script works correctly, perform the steps that incorporate it into the machine's startup
2531 and shutdown sequence. If there are problems during the initialization, attempt to resolve them. The AFS Product Support group
2532 can provide assistance if necessary.</para>
2534 <para>If the machine is configured as a client using a disk cache, it can take a while for the <emphasis
2535 role="bold">afsd</emphasis> program to create all of the <emphasis role="bold">V</emphasis><replaceable>n</replaceable> files
2536 in the cache directory. Messages on the console trace the initialization process. <orderedlist>
2538 <para>Issue the <emphasis role="bold">bos shutdown</emphasis> command to shut down the AFS server processes other than
2539 the BOS Server. Include the <emphasis role="bold">-wait</emphasis> flag to delay return of the command shell prompt
2540 until all processes shut down completely. <programlisting>
2541 # <emphasis role="bold">/usr/afs/bin/bos shutdown</emphasis> <<replaceable>machine name</replaceable>> <emphasis
2542 role="bold">-wait</emphasis>
2543 </programlisting></para>
2547 <para>Issue the <emphasis role="bold">ps</emphasis> command to learn the BOS Server's process ID number (PID), and then
2548 the <emphasis role="bold">kill</emphasis> command to stop the <emphasis role="bold">bosserver</emphasis> process.
2550 # <emphasis role="bold">ps</emphasis> <replaceable>appropriate_ps_options</replaceable> <emphasis role="bold">| grep bosserver</emphasis>
2551 # <emphasis role="bold">kill</emphasis> <replaceable>bosserver_PID</replaceable>
2552 </programlisting> <indexterm>
2553 <primary>AFS initialization script</primary>
2555 <secondary>adding to machine startup sequence</secondary>
2557 <tertiary>server machine after first</tertiary>
2558 </indexterm> <indexterm>
2559 <primary>AFS initialization script</primary>
2561 <secondary>running</secondary>
2563 <tertiary>server machine after first</tertiary>
2564 </indexterm> <indexterm>
2565 <primary>file server machine, additional</primary>
2567 <secondary>AFS initialization script</secondary>
2568 </indexterm> <indexterm>
2569 <primary>running AFS init. script</primary>
2571 <secondary>server machine after first</secondary>
2572 </indexterm> <indexterm>
2573 <primary>installing</primary>
2575 <secondary>AFS initialization script</secondary>
2577 <tertiary>server machine after first</tertiary>
2578 </indexterm> <indexterm>
2579 <primary>AIX</primary>
2581 <secondary>AFS initialization script</secondary>
2583 <tertiary>on add'l server machine</tertiary>
2588 <para>Run the AFS initialization script by issuing the appropriate commands for this system type.</para>
2590 <para><emphasis role="bold">On AIX systems:</emphasis> <orderedlist>
2592 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>.
2594 # <emphasis role="bold">cd /</emphasis>
2595 # <emphasis role="bold">shutdown -r now</emphasis>
2596 login: <emphasis role="bold">root</emphasis>
2597 Password: <replaceable>root_password</replaceable>
2598 </programlisting></para>
2602 <para>Run the AFS initialization script. <programlisting>
2603 # <emphasis role="bold">/etc/rc.afs</emphasis>
2604 </programlisting></para>
2608 <para>Edit the AIX initialization file, <emphasis role="bold">/etc/inittab</emphasis>, adding the following line
2609 to invoke the AFS initialization script. Place it just after the line that starts NFS daemons. <programlisting>
2610 rcafs:2:wait:/etc/rc.afs > /dev/console 2>&1 # Start AFS services
2611 </programlisting></para>
2615 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2616 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc</emphasis> directories. If you want
2617 to avoid potential confusion by guaranteeing that they are always the same, create a link between them. You can
2618 always retrieve the original script from the AFS CD-ROM if necessary. <programlisting>
2619 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2620 # <emphasis role="bold">rm rc.afs</emphasis>
2621 # <emphasis role="bold">ln -s /etc/rc.afs</emphasis>
2622 </programlisting></para>
2626 <para>Proceed to Step <link linkend="LIWQ113">4</link>.</para>
2628 </orderedlist></para>
2631 <primary>HP-UX</primary>
2633 <secondary>AFS initialization script</secondary>
2635 <tertiary>on add'l server machine</tertiary>
2638 <para><emphasis role="bold">On HP-UX systems:</emphasis> <orderedlist>
2640 <para>Run the AFS initialization script. <programlisting>
2641 # <emphasis role="bold">/sbin/init.d/afs start</emphasis>
2642 </programlisting></para>
2646 <para>Change to the <emphasis role="bold">/sbin/init.d</emphasis> directory and issue the <emphasis role="bold">ln
2647 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the HP-UX
2648 startup and shutdown sequence. <programlisting>
2649 # <emphasis role="bold">cd /sbin/init.d</emphasis>
2650 # <emphasis role="bold">ln -s ../init.d/afs /sbin/rc2.d/S460afs</emphasis>
2651 # <emphasis role="bold">ln -s ../init.d/afs /sbin/rc2.d/K800afs</emphasis>
2652 </programlisting></para>
2656 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2657 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/sbin/init.d</emphasis> directories. If
2658 you want to avoid potential confusion by guaranteeing that they are always the same, create a link between them.
2659 You can always retrieve the original script from the AFS CD-ROM if necessary. <programlisting>
2660 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2661 # <emphasis role="bold">rm afs.rc</emphasis>
2662 # <emphasis role="bold">ln -s /sbin/init.d/afs afs.rc</emphasis>
2663 </programlisting></para>
2667 <para>Proceed to Step <link linkend="LIWQ113">4</link>.</para>
2669 </orderedlist></para>
2672 <primary>IRIX</primary>
2674 <secondary>AFS initialization script</secondary>
2676 <tertiary>on add'l server machine</tertiary>
2680 <primary>afsclient variable (IRIX)</primary>
2682 <secondary>server machine after first</secondary>
2686 <primary>variables</primary>
2688 <secondary>afsclient (IRIX)</secondary>
2690 <tertiary>server machine after first</tertiary>
2694 <primary>IRIX</primary>
2696 <secondary>afsclient variable</secondary>
2698 <tertiary>server machine after first</tertiary>
2702 <primary>afsserver variable (IRIX)</primary>
2704 <secondary>server machine after first</secondary>
2708 <primary>variables</primary>
2710 <secondary>afsserver (IRIX)</secondary>
2712 <tertiary>server machine after first</tertiary>
2716 <primary>IRIX</primary>
2718 <secondary>afsserver variable</secondary>
2720 <tertiary>server machine after first</tertiary>
2723 <para><emphasis role="bold">On IRIX systems:</emphasis> <orderedlist>
2725 <para>If you have configured the machine to use the <emphasis role="bold">ml</emphasis> dynamic loader program,
2726 reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
2727 # <emphasis role="bold">cd /</emphasis>
2728 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
2729 login: <emphasis role="bold">root</emphasis>
2730 Password: <replaceable>root_password</replaceable>
2731 </programlisting></para>
2735 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis
2736 role="bold">afsserver</emphasis> configuration variable. <programlisting>
2737 # <emphasis role="bold">/etc/chkconfig -f afsserver on</emphasis>
2738 </programlisting></para>
2740 <para>If you have configured this machine as an AFS client and want to it remain one, also issue the <emphasis
2741 role="bold">chkconfig</emphasis> command to activate the <emphasis role="bold">afsclient</emphasis> configuration
2745 # <emphasis role="bold">/etc/chkconfig -f afsclient on</emphasis>
2750 <para>Run the AFS initialization script. <programlisting>
2751 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
2752 </programlisting></para>
2756 <para>Change to the <emphasis role="bold">/etc/init.d</emphasis> directory and issue the <emphasis role="bold">ln
2757 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the IRIX
2758 startup and shutdown sequence. <programlisting>
2759 # <emphasis role="bold">cd /etc/init.d</emphasis>
2760 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc2.d/S35afs</emphasis>
2761 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc0.d/K35afs</emphasis>
2762 </programlisting></para>
2766 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2767 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/init.d</emphasis> directories. If
2768 you want to avoid potential confusion by guaranteeing that they are always the same, create a link between them.
2769 You can always retrieve the original script from the AFS CD-ROM if necessary. <programlisting>
2770 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2771 # <emphasis role="bold">rm afs.rc</emphasis>
2772 # <emphasis role="bold">ln -s /etc/init.d/afs afs.rc</emphasis>
2773 </programlisting></para>
2777 <para>Proceed to Step <link linkend="LIWQ113">4</link>.</para>
2779 </orderedlist></para>
2782 <primary>Linux</primary>
2784 <secondary>AFS initialization script</secondary>
2786 <tertiary>on add'l server machine</tertiary>
2789 <para><emphasis role="bold">On Fedora or RHEL Linux systems:</emphasis>
2792 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>.
2794 # <emphasis role="bold">cd /</emphasis>
2795 # <emphasis role="bold">shutdown -r now</emphasis>
2796 login: <emphasis role="bold">root</emphasis>
2797 Password: <replaceable>root_password</replaceable>
2798 </programlisting></para>
2802 <para>Run the OpenAFS initialization scripts. <programlisting>
2803 # <emphasis role="bold">/etc/rc.d/init.d/openafs-client start</emphasis>
2804 # <emphasis role="bold">/etc/rc.d/init.d/openafs-server start</emphasis>
2805 </programlisting></para>
2809 <para>Issue the <emphasis role="bold">chkconfig</emphasis>
2810 command to activate the
2811 <emphasis role="bold">openafs-client</emphasis> and
2812 <emphasis role="bold">openafs-server</emphasis> configuration
2813 variables. Based on the instruction in the AFS initialization
2814 files that begins with the string
2815 <computeroutput>#chkconfig</computeroutput>, the command
2816 automatically creates the symbolic links that incorporate the
2817 script into the Linux startup and shutdown sequence.
2819 # <emphasis role="bold">/sbin/chkconfig --add openafs-client</emphasis>
2820 # <emphasis role="bold">/sbin/chkconfig --add openafs-server</emphasis>
2821 </programlisting></para>
2825 <para><emphasis role="bold">On Linux systems:</emphasis> <orderedlist>
2827 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>.
2829 # <emphasis role="bold">cd /</emphasis>
2830 # <emphasis role="bold">shutdown -r now</emphasis>
2831 login: <emphasis role="bold">root</emphasis>
2832 Password: <replaceable>root_password</replaceable>
2833 </programlisting></para>
2837 <para>Run the OpenAFS initialization script. <programlisting>
2838 # <emphasis role="bold">/etc/rc.d/init.d/afs start</emphasis>
2839 </programlisting></para>
2843 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis
2844 role="bold">afs</emphasis> configuration variable. Based on the instruction in the AFS initialization file that
2845 begins with the string <computeroutput>#chkconfig</computeroutput>, the command automatically creates the symbolic
2846 links that incorporate the script into the Linux startup and shutdown sequence. <programlisting>
2847 # <emphasis role="bold">/sbin/chkconfig --add afs</emphasis>
2848 </programlisting></para>
2852 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2853 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/rc.d/init.d</emphasis> directories,
2854 and copies of the <emphasis role="bold">afsd</emphasis> options file in both the <emphasis
2855 role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/sysconfig</emphasis> directories. If you want
2856 to avoid potential confusion by guaranteeing that the two copies of each file are always the same, create a link
2857 between them. You can always retrieve the original script or options file from the AFS CD-ROM if necessary.
2859 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2860 # <emphasis role="bold">rm afs.rc afs.conf</emphasis>
2861 # <emphasis role="bold">ln -s /etc/rc.d/init.d/afs afs.rc</emphasis>
2862 # <emphasis role="bold">ln -s /etc/sysconfig/afs afs.conf</emphasis>
2863 </programlisting></para>
2867 <para>Proceed to Step <link linkend="LIWQ113">4</link>.</para>
2869 </orderedlist></para>
2872 <primary>Solaris</primary>
2874 <secondary>AFS initialization script</secondary>
2876 <tertiary>on add'l server machine</tertiary>
2879 <para><emphasis role="bold">On Solaris systems:</emphasis> <orderedlist>
2881 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>.
2883 # <emphasis role="bold">cd /</emphasis>
2884 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
2885 login: <emphasis role="bold">root</emphasis>
2886 Password: <replaceable>root_password</replaceable>
2887 </programlisting></para>
2891 <para>Run the AFS initialization script. <programlisting>
2892 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
2893 </programlisting></para>
2897 <para>Change to the <emphasis role="bold">/etc/init.d</emphasis> directory and issue the <emphasis role="bold">ln
2898 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the Solaris
2899 startup and shutdown sequence. <programlisting>
2900 # <emphasis role="bold">cd /etc/init.d</emphasis>
2901 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc3.d/S99afs</emphasis>
2902 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc0.d/K66afs</emphasis>
2903 </programlisting></para>
2907 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
2908 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/init.d</emphasis> directories. If
2909 you want to avoid potential confusion by guaranteeing that they are always the same, create a link between them.
2910 You can always retrieve the original script from the OpenAFS Binary Distribution if necessary. <programlisting>
2911 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
2912 # <emphasis role="bold">rm afs.rc</emphasis>
2913 # <emphasis role="bold">ln -s /etc/init.d/afs afs.rc</emphasis>
2914 </programlisting></para>
2916 </orderedlist></para>
2920 <para><anchor id="LIWQ113" />Verify that <emphasis role="bold">/usr/afs</emphasis> and its subdirectories on the new
2921 file server machine meet the ownership and mode bit requirements outlined in <link linkend="HDRWQ96">Protecting
2922 Sensitive AFS Directories</link>. If necessary, use the <emphasis role="bold">chmod</emphasis> command to correct the
2927 <para>To configure this machine as a database server machine, proceed to <link linkend="HDRWQ114">Installing Database
2928 Server Functionality</link>.</para>
2930 </orderedlist></para>
2933 <primary>database server machine</primary>
2935 <secondary>requirements for installation</secondary>
2939 <primary>requirements</primary>
2941 <secondary>database server machine</secondary>
2946 <sect1 id="HDRWQ114">
2947 <title>Installing Database Server Functionality</title>
2949 <para>This section explains how to install database server functionality. Database server machines have two defining
2950 characteristics. First, they run the Protection Server, and Volume Location (VL) Server processes. They
2951 also run the Backup Server if the cell uses the AFS Backup System, as is assumed in these instructions. Second, they appear in
2952 the <emphasis role="bold">CellServDB</emphasis> file of every machine in the cell (and of client machines in foreign cells, if
2953 they are to access files in this cell).</para>
2955 <para>Note the following requirements for database server machines. <itemizedlist>
2957 <para>In the conventional configuration, database server machines also serve as file server machines (run the File Server,
2958 Volume Server and Salvager processes). If you choose not to run file server functionality on a database server machine,
2959 then the kernel does not have to incorporate AFS modifications, but the local <emphasis role="bold">/usr/afs</emphasis>
2960 directory must house most of the standard files and subdirectories. In particular, the <emphasis
2961 role="bold">/usr/afs/etc/KeyFile</emphasis> file must contain the same keys as all other server machines in the cell. If
2962 you run a system control machine, run the <emphasis role="bold">upclientetc</emphasis> process on every database server
2963 machine other than the system control machine; if you do not run a system control machine, use the <emphasis
2964 role="bold">bos addkey</emphasis> command as instructed in the chapter in the <emphasis>OpenAFS Administration
2965 Guide</emphasis> about maintaining server encryption keys.</para>
2967 <para>The instructions in this section assume that the machine on which you are installing database server functionality
2968 is already a file server machine. Contact the OpenAFS mailing list to learn how to install database server
2969 functionality on a non-file server machine.</para>
2973 <para>During the installation of database server functionality, you must restart all of the database server machines to
2974 force the election of a new Ubik coordinator (synchronization site) for each database server process. This can cause a
2975 system outage, which usually lasts less than 5 minutes.</para>
2979 <para>Updating the kernel memory list of database server machines on each client machine is generally the most
2980 time-consuming part of installing a new database server machine. It is, however, crucial for correct functioning in your
2981 cell. Incorrect knowledge of your cell's database server machines can prevent your users from authenticating, accessing
2982 files, and issuing AFS commands.</para>
2984 <para>You update a client's kernel memory list by changing the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis>
2985 file and then either rebooting or issuing the <emphasis role="bold">fs newcell</emphasis> command. For instructions, see
2986 the chapter in the <emphasis>OpenAFS Administration Guide</emphasis> about administering client machines.</para>
2988 <para>The point at which you update your clients' knowledge of database server machines depends on which of the database
2989 server machines has the lowest IP address. The following instructions indicate the appropriate place to update your client
2990 machines in either case. <itemizedlist>
2992 <para>If the new database server machine has a lower IP address than any existing database server machine, update
2993 the <emphasis role="bold">CellServDB</emphasis> file on every client machine before restarting the database server
2994 processes. If you do not, users can become unable to update (write to) any of the AFS databases. This is because the
2995 machine with the lowest IP address is usually elected as the Ubik coordinator, and only the Coordinator accepts
2996 database writes. On client machines that do not have the new list of database server machines, the Cache Manager
2997 cannot locate the new coordinator. (Be aware that if clients contact the new coordinator before it is actually in
2998 service, they experience a timeout before contacting another database server machine. This is a minor, and
2999 temporary, problem compared to being unable to write to the database.)</para>
3003 <para>If the new database server machine does not have the lowest IP address of any database server machine, then it
3004 is better to update clients after restarting the database server processes. Client machines do not start using the
3005 new database server machine until you update their kernel memory list, but that does not usually cause timeouts or
3006 update problems (because the new machine is not likely to become the coordinator).</para>
3008 </itemizedlist></para>
3010 </itemizedlist></para>
3013 <primary>overview</primary>
3015 <secondary>installing additional database server machine</secondary>
3018 <sect2 id="Header_110">
3019 <title>Summary of Procedures</title>
3021 <para>To install a database server machine, perform the following procedures. <orderedlist>
3023 <para>Install the <emphasis role="bold">bos</emphasis> suite of commands locally, as a precaution</para>
3027 <para>Add the new machine to the <emphasis role="bold">/usr/afs/etc/CellServDB</emphasis> file on existing file server
3032 <para>Update your cell's central <emphasis role="bold">CellServDB</emphasis> source file and the file you make available
3033 to foreign cells</para>
3037 <para>Update every client machine's <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file and kernel memory
3038 list of database server machines</para>
3042 <para>Start the database server processes (Backup Server, Protection Server, and Volume Location
3047 <para>Restart the database server processes on every database server machine</para>
3051 <para>If required, request that grand.central.org add details of
3052 your new database server machine to the global CellServDB</para>
3056 <para>If required, add details of your new database server to the
3057 AFS database location records in your site's DNS</para>
3060 </orderedlist></para>
3063 <primary>database server machine</primary>
3065 <secondary>installing</secondary>
3067 <tertiary>additional</tertiary>
3071 <primary>instructions</primary>
3073 <secondary>database server machine, installing additional</secondary>
3077 <primary>installing</primary>
3079 <secondary>database server machine</secondary>
3081 <tertiary>additional</tertiary>
3085 <sect2 id="Header_111">
3086 <title>Instructions</title>
3089 <para>It is assumed that your PATH environment variable includes the directory that houses the AFS command binaries. If not,
3090 you possibly need to precede the command names with the appropriate pathname.</para>
3095 <para>You can perform the following instructions on either a server or client machine. Login as an AFS administrator who
3096 is listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file on all server machines.
3098 % <emphasis role="bold">kinit</emphasis> <replaceable>admin_user</replaceable>
3099 Password: <replaceable>admin_password</replaceable>
3100 % <emphasis role="bold">aklog</emphasis>
3106 <para>If you are working on a client machine configured in the conventional manner, the <emphasis
3107 role="bold">bos</emphasis> command suite resides in the <emphasis role="bold">/usr/afsws/bin</emphasis> directory, a
3108 symbolic link to an AFS directory. An error during installation can potentially block access to AFS, in which case it is
3109 helpful to have a copy of the <emphasis role="bold">bos</emphasis> binary on the local disk. This step is not necessary if
3110 you are working on a server machine, where the binary resides in the local <emphasis role="bold">/usr/afs/bin</emphasis>
3111 directory. <programlisting>
3112 % <emphasis role="bold">cp /usr/afsws/bin/bos /tmp</emphasis>
3113 </programlisting> <indexterm>
3114 <primary>bos commands</primary>
3116 <secondary>addhost</secondary>
3117 </indexterm> <indexterm>
3118 <primary>commands</primary>
3120 <secondary>bos addhost</secondary>
3121 </indexterm> <indexterm>
3122 <primary>database server machine</primary>
3124 <secondary>entry in server CellServDB file</secondary>
3126 <tertiary>for new db-server machine</tertiary>
3127 </indexterm> <indexterm>
3128 <primary>CellServDB file (server)</primary>
3130 <secondary>adding entry for new db-server machine</secondary>
3131 </indexterm> <indexterm>
3132 <primary>adding</primary>
3134 <secondary>new db-server machine to CellServDB files</secondary>
3139 <para><anchor id="LIWQ115" />Issue the <emphasis role="bold">bos addhost</emphasis> command to add the new database server
3140 machine to the <emphasis role="bold">/usr/afs/etc/CellServDB</emphasis> file on existing server machines (as well as the
3141 new database server machine itself).</para>
3143 <para>Substitute the new database server machine's fully-qualified hostname for the <replaceable>host name</replaceable>
3144 argument. If you run a system control machine, substitute its fully-qualified hostname for the
3145 <replaceable>machine name</replaceable> argument. If you do not run a system control machine, repeat the <emphasis
3146 role="bold">bos addhost</emphasis> command once for each server machine in your cell (including the new database server
3147 machine itself), by substituting each one's fully-qualified hostname for the <replaceable>machine name</replaceable>
3148 argument in turn.</para>
3151 % <emphasis role="bold">bos addhost</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>host name</replaceable>>
3154 <para>If you run a system control machine, wait for the Update Server to distribute the new <emphasis
3155 role="bold">CellServDB</emphasis> file, which takes up to five minutes by default. If you are issuing individual <emphasis
3156 role="bold">bos addhost</emphasis> commands, attempt to issue all of them within five minutes.</para>
3159 <para>It is best to maintain a one-to-one mapping between hostnames and IP addresses on a multihomed database server
3160 machine (the conventional configuration for any AFS machine). The BOS Server uses the <emphasis
3161 role="bold">gethostbyname( )</emphasis> routine to obtain the IP address associated with the <replaceable>host
3162 name</replaceable> argument. If there is more than one address, the BOS Server records in the <emphasis
3163 role="bold">CellServDB</emphasis> entry the one that appears first in the list of addresses returned by the routine. The
3164 routine possibly returns addresses in a different order on different machines, which can create inconsistency.</para>
3169 <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">bos listhosts</emphasis> command on each
3170 server machine to verify that the new database server machine appears in its <emphasis role="bold">CellServDB</emphasis>
3171 file. <programlisting>
3172 % <emphasis role="bold">bos listhosts</emphasis> <<replaceable>machine name</replaceable>>
3173 </programlisting></para>
3177 <para><anchor id="LIWQ116" />Add the new database server machine to your cell's central <emphasis
3178 role="bold">CellServDB</emphasis> source file, if you use one. The standard location is <emphasis
3179 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3180 role="bold">/common/etc/CellServDB</emphasis>.</para>
3182 <para>If you are willing to make your cell accessible to users in foreign cells, add the new database server machine to
3183 the file that lists your cell's database server machines. The conventional location is <emphasis
3184 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3185 role="bold">/service/etc/CellServDB.local</emphasis>. <indexterm>
3186 <primary>database server machine</primary>
3188 <secondary>entry in client CellServDB file</secondary>
3190 <tertiary>for new db-server machine</tertiary>
3191 </indexterm> <indexterm>
3192 <primary>CellServDB file (client)</primary>
3194 <secondary>adding entry</secondary>
3196 <tertiary>for new db-server machine</tertiary>
3197 </indexterm> <indexterm>
3198 <primary>client machine</primary>
3200 <secondary>CellServDB file</secondary>
3202 <tertiary>adding entry</tertiary>
3207 <para><anchor id="LIWQ117" />If this machine's IP address is lower than any existing database server machine's, update
3208 every client machine's <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file and kernel memory list to include
3209 this machine. (If this machine's IP address is not the lowest, it is acceptable to wait until Step <link
3210 linkend="LIWQ123">12</link>.)</para>
3212 <para>There are several ways to update the <emphasis role="bold">CellServDB</emphasis> file on client machines, as
3213 detailed in the chapter of the <emphasis>OpenAFS Administration Guide</emphasis> about administering client machines. One
3214 option is to copy over the central update source (which you updated in Step <link linkend="LIWQ116">5</link>), with or
3215 without using the <emphasis role="bold">package</emphasis> program. To update the machine's kernel memory list, you can
3216 either reboot after changing the <emphasis role="bold">CellServDB</emphasis> file or issue the <emphasis role="bold">fs
3217 newcell</emphasis> command.
3219 <primary>database server machine</primary>
3221 <secondary>starting database server processes</secondary>
3222 </indexterm> <indexterm>
3223 <primary>BosConfig file</primary>
3225 <secondary>adding entries</secondary>
3227 <tertiary>database server machine</tertiary>
3228 </indexterm> <indexterm>
3229 <primary>adding</primary>
3231 <secondary>entries to BosConfig file</secondary>
3233 <tertiary>database server machine</tertiary>
3238 <para>If you are running a cell which still relies upon
3239 <emphasis role="bold">kaserver</emphasis> see
3240 <link linkend="KAS010">Starting the Authentication Service</link>
3241 for an additional installation step.</para>
3246 <primary>Backup Server</primary>
3247 <secondary>starting</secondary>
3248 <tertiary>new db-server machine</tertiary>
3249 </indexterm> <indexterm>
3250 <primary>starting</primary>
3251 <secondary>Backup Server</secondary>
3252 <tertiary>new db-server machine</tertiary>
3255 <para><anchor id="LIWQ119" />Start the Backup Server (the <emphasis role="bold">buserver</emphasis> process). You must
3256 perform other configuration procedures before actually using the AFS Backup System, as detailed in the <emphasis>OpenAFS
3257 Administration Guide</emphasis>. <programlisting>
3258 % <emphasis role="bold">bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">buserver simple /usr/afs/bin/buserver</emphasis>
3259 </programlisting> <indexterm>
3260 <primary>Protection Server</primary>
3262 <secondary>starting</secondary>
3264 <tertiary>new db-server machine</tertiary>
3265 </indexterm> <indexterm>
3266 <primary>starting</primary>
3268 <secondary>Protection Server</secondary>
3270 <tertiary>new db-server machine</tertiary>
3275 <para><anchor id="LIWQ120" />Start the Protection Server (the <emphasis role="bold">ptserver</emphasis> process).
3277 % <emphasis role="bold">bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">ptserver simple /usr/afs/bin/ptserver</emphasis>
3278 </programlisting> <indexterm>
3279 <primary>VL Server (vlserver process)</primary>
3281 <secondary>starting</secondary>
3283 <tertiary>new db-server machine</tertiary>
3284 </indexterm> <indexterm>
3285 <primary>starting</primary>
3287 <secondary>VL Server</secondary>
3289 <tertiary>new db-server machine</tertiary>
3294 <para><anchor id="LIWQ121" />Start the Volume Location (VL) Server (the <emphasis role="bold">vlserver</emphasis>
3295 process). <programlisting>
3296 % <emphasis role="bold">bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">vlserver simple /usr/afs/bin/vlserver</emphasis>
3297 </programlisting> <indexterm>
3298 <primary>commands</primary>
3300 <secondary>bos restart</secondary>
3302 <tertiary>on new db-server machine</tertiary>
3303 </indexterm> <indexterm>
3304 <primary>bos commands</primary>
3306 <secondary>restart</secondary>
3308 <tertiary>on new db-server machine</tertiary>
3309 </indexterm> <indexterm>
3310 <primary>restarting server process</primary>
3312 <secondary>on new db-server machine</secondary>
3313 </indexterm> <indexterm>
3314 <primary>server process</primary>
3316 <secondary>restarting</secondary>
3318 <tertiary>on new db-server machine</tertiary>
3323 <para><anchor id="LIWQ122" />Issue the <emphasis role="bold">bos restart</emphasis> command on every database server
3324 machine in the cell, including the new machine. The command restarts the Authentication, Backup, Protection, and VL
3325 Servers, which forces an election of a new Ubik coordinator for each process. The new machine votes in the election and is
3326 considered as a potential new coordinator.</para>
3328 <para>A cell-wide service outage is possible during the election of a new coordinator for the VL Server, but it normally
3329 lasts less than five minutes. Such an outage is particularly likely if you are installing your cell's second database
3330 server machine. Messages tracing the progress of the election appear on the console.</para>
3332 <para>Repeat this command on each of your cell's database server machines in quick succession. Begin with the machine with
3333 the lowest IP address.</para>
3336 % <emphasis role="bold">bos restart</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">kaserver buserver ptserver vlserver</emphasis>
3339 <para>If an error occurs, restart all server processes on the database server machines again by using one of the following
3340 methods: <itemizedlist>
3342 <para>Issue the <emphasis role="bold">bos restart</emphasis> command with the <emphasis
3343 role="bold">-bosserver</emphasis> flag for each database server machine</para>
3347 <para>Reboot each database server machine, either using the <emphasis role="bold">bos exec</emphasis> command or at
3350 </itemizedlist></para>
3354 <para><anchor id="LIWQ123" />If you did not update the <emphasis role="bold">CellServDB</emphasis> file on client machines
3355 in Step <link linkend="LIWQ117">6</link>, do so now.</para>
3359 <para><anchor id="LIWQ124" />If you wish to participate in the AFS
3360 global name space, send the new database server machine's name and
3361 IP address to grand.central.org. Do so, by emailing an updated
3362 <emphasis role="bold">CellServDB</emphasis> fragment for your cell
3363 to cellservdb@grand.central.org</para>
3364 <para>More details on the registration procedures for the
3365 CellServDB maintained by grand.central.org are available from
3366 <ulink url="http://grand.central.org/csdb.html">
3367 http://grand.central.org/csdb.html</ulink></para>
3372 <primary>database server machine</primary>
3374 <secondary>removing from service</secondary>
3378 <primary>instructions</primary>
3380 <secondary>database server machine, removing</secondary>
3384 <primary>removing</primary>
3386 <secondary>database server machine from service</secondary>
3390 <primary>overview</primary>
3392 <secondary>removing database server machine</secondary>
3397 <sect1 id="HDRWQ125">
3398 <title>Removing Database Server Functionality</title>
3400 <para>Removing database server machine functionality is nearly the reverse of installing it.</para>
3402 <sect2 id="Header_113">
3403 <title>Summary of Procedures</title>
3405 <para>To decommission a database server machine, perform the following procedures. <orderedlist>
3407 <para>Install the <emphasis role="bold">bos</emphasis> suite of commands locally, as a precaution</para>
3411 <para>If you participate in the global AFS namespace, notify
3412 grand.central.org that you are decommissioning a database server
3417 <para>Update your cell's central <emphasis role="bold">CellServDB</emphasis> source file and the file you make available
3418 to foreign cells</para>
3422 <para>Update every client machine's <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file and kernel memory
3423 list of database server machines</para>
3427 <para>Remove the machine from the <emphasis role="bold">/usr/afs/etc/CellServDB</emphasis> file on file server
3432 <para>Stop the database server processes and remove them from the <emphasis
3433 role="bold">/usr/afs/local/BosConfig</emphasis> file if desired</para>
3437 <para>Restart the database server processes on the remaining database server machines</para>
3439 </orderedlist></para>
3442 <sect2 id="Header_114">
3443 <title>Instructions</title>
3446 <para>It is assumed that your PATH environment variable includes the directory that houses the AFS command binaries. If not,
3447 you possibly need to precede the command names with the appropriate pathname.</para>
3452 <para>You can perform the following instructions on either a server or client machine. Login as an AFS administrator who
3453 is listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file on all server machines.
3455 % <emphasis role="bold">kinit</emphasis> <replaceable>admin_user</replaceable>
3456 Password: <replaceable>admin_password</replaceable>
3457 % <emphasis role="bold">aklog</emphasis>
3458 </programlisting></para>
3462 <para>If you are working on a client machine configured in the conventional manner, the <emphasis
3463 role="bold">bos</emphasis> command suite resides in the <emphasis role="bold">/usr/afsws/bin</emphasis> directory, a
3464 symbolic link to an AFS directory. An error during installation can potentially block access to AFS, in which case it is
3465 helpful to have a copy of the <emphasis role="bold">bos</emphasis> binary on the local disk. This step is not necessary if
3466 you are working on a server machine, where the binary resides in the local <emphasis role="bold">/usr/afs/bin</emphasis>
3467 directory. <programlisting>
3468 % <emphasis role="bold">cp /usr/afsws/bin/bos /tmp</emphasis>
3469 </programlisting></para>
3473 <para><anchor id="LIWQ126" />If your cell is included in the global
3474 <emphasis role="bold">CellServDB</emphasis>, send the revised list of
3475 your cell's database server machines to grand.central.org</para>
3477 <para>If the administrators in foreign cells do not learn about the change in your cell,
3478 they cannot update the <emphasis role="bold">CellServDB</emphasis> file on their client machines. Users in foreign cells
3479 continue to send database requests to the decommissioned machine, which creates needless network traffic and activity on
3480 the machine. Also, the users experience time-out delays while their request is forwarded to a valid database server
3485 <para><anchor id="LIWQ127" />Remove the decommissioned machine from your cell's central <emphasis
3486 role="bold">CellServDB</emphasis> source file, if you use one. The conventional location is <emphasis
3487 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3488 role="bold">/common/etc/CellServDB</emphasis>.</para>
3490 <para>If you maintain a file that users in foreign cells can access to learn about your cell's database server machines,
3491 update it also. The conventional location is <emphasis
3492 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
3493 role="bold">/service/etc/CellServDB.local</emphasis>. <indexterm>
3494 <primary>database server machine</primary>
3496 <secondary>entry in client CellServDB file</secondary>
3498 <tertiary>removing</tertiary>
3499 </indexterm> <indexterm>
3500 <primary>CellServDB file (client)</primary>
3502 <secondary>removing entry</secondary>
3503 </indexterm> <indexterm>
3504 <primary>client machine</primary>
3506 <secondary>CellServDB file</secondary>
3508 <tertiary>removing entry</tertiary>
3509 </indexterm> <indexterm>
3510 <primary>removing</primary>
3512 <secondary>entry from CellServDB file</secondary>
3517 <para><anchor id="LIWQ128" />Update every client machine's <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file
3518 and kernel memory list to exclude this machine. Altering the <emphasis role="bold">CellServDB</emphasis> file and kernel
3519 memory list before stopping the actual database server processes avoids possible time-out delays that result when users
3520 send requests to a decommissioned database server machine that is still listed in the file.</para>
3522 <para>There are several ways to update the <emphasis role="bold">CellServDB</emphasis> file on client machines, as
3523 detailed in the chapter of the <emphasis>OpenAFS Administration Guide</emphasis> about administering client machines. One
3524 option is to copy over the central update source (which you updated in Step <link linkend="LIWQ116">5</link>), with or
3525 without using the <emphasis role="bold">package</emphasis> program. To update the machine's kernel memory list, you can
3526 either reboot after changing the <emphasis role="bold">CellServDB</emphasis> file or issue the <emphasis role="bold">fs
3527 newcell</emphasis> command. <indexterm>
3528 <primary>bos commands</primary>
3530 <secondary>removehost</secondary>
3531 </indexterm> <indexterm>
3532 <primary>commands</primary>
3534 <secondary>bos removehost</secondary>
3535 </indexterm> <indexterm>
3536 <primary>CellServDB file (server)</primary>
3538 <secondary>removing entry</secondary>
3539 </indexterm> <indexterm>