1 <?xml version="1.0" encoding="UTF-8"?>
3 <title>Installing the First AFS Machine</title>
7 <primary>file server machine</primary>
9 <seealso>first AFS machine</seealso>
11 <seealso>file server machine, additional</seealso>
15 <primary>instructions</primary>
17 <secondary>first AFS machine</secondary>
21 <primary>installing</primary>
23 <secondary>first AFS machine</secondary>
26 This chapter describes how to install the first AFS machine in your cell, configuring it as both a file server machine and a
27 client machine. After completing all procedures in this chapter, you can remove the client functionality if you wish, as described
28 in <link linkend="HDRWQ98">Removing Client Functionality</link>.</para>
30 <para>To install additional file server machines after completing this chapter, see <link linkend="HDRWQ99">Installing Additional
31 Server Machines</link>.</para>
33 <para>To install additional client machines after completing this chapter, see <link linkend="HDRWQ133">Installing Additional
34 Client Machines</link>. <indexterm>
35 <primary>requirements</primary>
37 <secondary>first AFS machine</secondary>
40 <sect1 id="Header_29">
41 <title>Requirements and Configuration Decisions</title>
43 <para>The instructions in this chapter assume that you meet the following requirements.
46 <para>You are logged onto the machine's console as the local superuser <emphasis role="bold">root</emphasis></para>
50 <para>A standard version of one of the operating systems supported by the current version of AFS is running on the
55 <para>You have either installed the provided OpenAFS packages for
56 your system, have access to a binary distribution tarball, or have
57 successfully built OpenAFS from source</para>
61 <para>You have a Kerberos v5 realm running for your site. If you are
62 working with an existing cell which uses
63 <emphasis role="bold">kaserver</emphasis> or Kerberos v4 for
64 authentication, please see
65 <link linkend="KAS001">kaserver and Legacy Kerberos v4 Authentication</link>
66 for the modifications required to this installation procedure.</para>
70 <para>You have NTP or a similar time service deployed to ensure
71 rough clock syncronistation between your clients and servers.</para>
73 </itemizedlist></para>
75 <para>You must make the following configuration decisions while installing the first AFS machine. To speed the installation
76 itself, it is best to make the decisions before beginning. See the chapter in the <emphasis>OpenAFS Administration
77 Guide</emphasis> about issues in cell administration and configuration for detailed guidelines. <indexterm>
78 <primary>cell name</primary>
80 <secondary>choosing</secondary>
81 </indexterm> <indexterm>
82 <primary>AFS filespace</primary>
84 <secondary>deciding how to configure</secondary>
85 </indexterm> <indexterm>
86 <primary>filespace</primary>
88 <see>AFS filespace</see>
89 </indexterm> <itemizedlist>
91 <para>Select the first AFS machine</para>
95 <para>Select the cell name</para>
99 <para>Decide which partitions or logical volumes to configure as AFS server partitions, and choose the directory names on
100 which to mount them</para>
104 <para>Decide how big to make the client cache</para>
108 <para>Decide how to configure the top levels of your cell's AFS filespace</para>
110 </itemizedlist></para>
112 <para>This chapter is divided into three large sections corresponding to the three parts of installing the first AFS machine.
113 Perform all of the steps in the order they appear. Each functional section begins with a summary of the procedures to perform.
114 The sections are as follows: <itemizedlist>
116 <para>Installing server functionality (begins in <link linkend="HDRWQ18">Overview: Installing Server
117 Functionality</link>)</para>
121 <para>Installing client functionality (begins in <link linkend="HDRWQ63">Overview: Installing Client
122 Functionality</link>)</para>
126 <para>Configuring your cell's filespace, establishing further security mechanisms, and enabling access to foreign cells
127 (begins in <link linkend="HDRWQ71">Overview: Completing the Installation of the First AFS Machine</link>)</para>
129 </itemizedlist></para>
132 <primary>overview</primary>
134 <secondary>installing server functionality on first AFS machine</secondary>
138 <primary>first AFS machine</primary>
140 <secondary>server functionality</secondary>
144 <primary>installing</primary>
146 <secondary>server functionality</secondary>
148 <tertiary>first AFS machine</tertiary>
153 <title>Overview: Installing Server Functionality</title>
155 <para>In the first phase of installing your cell's first AFS machine, you install file server and database server functionality
156 by performing the following procedures:
159 <para>Choose which machine to install as the first AFS machine</para>
163 <para>Create AFS-related directories on the local disk</para>
167 <para>Incorporate AFS modifications into the machine's kernel</para>
171 <para>Configure partitions or logical volumes for storing AFS volumes</para>
175 <para>On some system types, install and configure an AFS-modified version of the <emphasis role="bold">fsck</emphasis>
180 <para>If the machine is to remain a client machine, incorporate AFS into its authentication system</para>
184 <para>Start the Basic OverSeer (BOS) Server</para>
188 <para>Define the cell name and the machine's cell membership</para>
192 <para>Start the database server processes: Backup Server, Protection Server, and Volume Location
197 <para>Configure initial security mechanisms</para>
201 <para>Start the <emphasis role="bold">fs</emphasis> process, which incorporates three component processes: the File
202 Server, Volume Server, and Salvager</para>
206 <para>Optionally, start the server portion of the Update Server</para>
209 </orderedlist></para>
213 <title>Choosing the First AFS Machine</title>
215 <para>The first AFS machine you install must have sufficient disk space to store AFS volumes. To take best advantage of AFS's
216 capabilities, store client-side binaries as well as user files in volumes. When you later install additional file server
217 machines in your cell, you can distribute these volumes among the different machines as you see fit.</para>
219 <para>These instructions configure the first AFS machine as a <emphasis>database server machine</emphasis>, the <emphasis>binary
220 distribution machine</emphasis> for its system type, and the cell's <emphasis>system control machine</emphasis>. For a
221 description of these roles, see the <emphasis>OpenAFS Administration Guide</emphasis>.</para>
223 <para>Installation of additional machines is simplest if the first machine has the lowest IP address of any database server
224 machine you currently plan to install. If you later install database server functionality on a machine with a lower IP address,
225 you must first update the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file on all of your cell's client machines.
226 For more details, see <link linkend="HDRWQ114">Installing Database Server Functionality</link>.</para>
229 <sect1 id="Header_32">
230 <title>Creating AFS Directories</title>
233 <primary>usr/afs directory</primary>
235 <secondary>first AFS machine</secondary>
239 <primary>first AFS machine</primary>
241 <secondary>/usr/afs directory</secondary>
245 <primary>creating</primary>
247 <secondary>/usr/afs directory</secondary>
249 <tertiary>first AFS machine</tertiary>
253 <primary>usr/vice/etc directory</primary>
255 <secondary>first AFS machine</secondary>
259 <primary>first AFS machine</primary>
261 <secondary>/usr/vice/etc directory</secondary>
265 <primary>creating</primary>
267 <secondary>/usr/vice/etc directory</secondary>
269 <tertiary>first AFS machine</tertiary>
273 <primary>/ as start to file and directory names</primary>
275 <secondary>see alphabetized entries without initial slash</secondary>
278 <para>If you are installing from packages (such as Debian .deb or
279 Fedora/SuSe .rpm files), you should now install all of the available
280 OpenAFS packages for your system type. Typically, these will include
281 packages for client and server functionality, and a seperate package
282 containing a suitable kernel module for your running kernel. Consult
283 the package lists on the OpenAFS website to determine the packages
284 appropriate for your system.</para>
286 <para>If you are installing from a tarfile, or from a locally compiled
287 source tree you should create the <emphasis role="bold">/usr/afs</emphasis>
288 and <emphasis role="bold">/usr/vice/etc</emphasis> directories on the
289 local disk, to house server and client files respectively. Subsequent
290 instructions copy files from the distribution tarfile into them. </para>
292 # <emphasis role="bold">mkdir /usr/afs</emphasis>
293 # <emphasis role="bold">mkdir /usr/vice</emphasis>
294 # <emphasis role="bold">mkdir /usr/vice/etc</emphasis>
299 <title>Performing Platform-Specific Procedures</title>
301 <para>Several of the initial procedures for installing a file server machine differ for each system type. For convenience, the
302 following sections group them together for each system type: <itemizedlist>
304 <primary>kernel extensions</primary>
306 <see>AFS kernel extensions</see>
310 <primary>loading AFS kernel extensions</primary>
312 <see>incorporating</see>
316 <primary>building</primary>
318 <secondary>AFS extensions into kernel</secondary>
320 <see>incorporating AFS kernel extensions</see>
324 <para>Incorporate AFS modifications into the kernel.</para>
326 <para>The kernel on every AFS client machine and, on some systems,
327 the AFS fileservers, must incorporate AFS extensions. On machines
328 that use a dynamic kernel module loader, it is conventional to
329 alter the machine's initialization script to load the AFS extensions
330 at each reboot. <indexterm>
331 <primary>AFS server partition</primary>
333 <secondary>mounted on /vicep directory</secondary>
334 </indexterm> <indexterm>
335 <primary>partition</primary>
337 <see>AFS server partition</see>
338 </indexterm> <indexterm>
339 <primary>logical volume</primary>
341 <see>AFS server partition</see>
342 </indexterm> <indexterm>
343 <primary>requirements</primary>
345 <secondary>AFS server partition name and location</secondary>
346 </indexterm> <indexterm>
347 <primary>naming conventions for AFS server partition</primary>
348 </indexterm> <indexterm>
349 <primary>vicep<emphasis>xx</emphasis> directory</primary>
351 <see>AFS server partition</see>
352 </indexterm> <indexterm>
353 <primary>directories</primary>
355 <secondary>/vicep<emphasis>xx</emphasis></secondary>
357 <see>AFS server partition</see>
362 <para>Configure server partitions or logical volumes to house AFS volumes.</para>
364 <para>Every AFS file server machine must have at least one partition or logical volume dedicated to storing AFS volumes
365 (for convenience, the documentation hereafter refers to partitions only). Each server partition is mounted at a directory
366 named <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>, where <replaceable>xx</replaceable> is one or
367 two lowercase letters. By convention, the first 26 partitions are mounted on the directories called <emphasis
368 role="bold">/vicepa</emphasis> through <emphasis role="bold">/vicepz</emphasis>, the 27th one is mounted on the <emphasis
369 role="bold">/vicepaa</emphasis> directory, and so on through <emphasis role="bold">/vicepaz</emphasis> and <emphasis
370 role="bold">/vicepba</emphasis>, continuing up to the index corresponding to the maximum number of server partitions
371 supported in the current version of AFS (which is specified in the <emphasis>OpenAFS Release Notes</emphasis>).</para>
373 <para>The <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> directories must reside in the file server
374 machine's root directory, not in one of its subdirectories (for example, <emphasis role="bold">/usr/vicepa</emphasis> is
375 not an acceptable directory location).
377 The <emphasis role="bold">fileserver</emphasis> will refuse to
379 any <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>
380 folders that are not separate partitions. </para>
383 <para>The separate partition requirement may be overridden by
384 creating a file named
385 <emphasis role="bold">/vicep<replaceable>xx</replaceable>/AlwaysAttach</emphasis>;
386 however, mixed-use partitions, whether cache or fileserver,
387 have the risk that a non-AFS use will fill the partition and
388 not leave enough free space for AFS. Even though it is
389 allowed, be wary of configuring a mixed-use partition
390 without understanding the ramifications of doing so with the
391 workload on your filesystem.
393 <primary>AFS server partition</primary>
394 <secondary>AlwaysAttach</secondary>
399 <para>You can also add or remove server partitions on an existing file server machine. For instructions, see the chapter
400 in the <emphasis>OpenAFS Administration Guide</emphasis> about maintaining server machines.</para>
403 <para>Not all file system types supported by an operating system are necessarily supported as AFS server partitions. For
404 possible restrictions, see the <emphasis>OpenAFS Release Notes</emphasis>.</para>
409 <para>On system types using the <emphasis role="bold">inode</emphasis> storage format, install and configure a modified <emphasis role="bold">fsck</emphasis> program which
410 recognizes the structures that the File Server uses to organize volume data on AFS server partitions. The <emphasis
411 role="bold">fsck</emphasis> program provided with the operating system does not understand the AFS data structures, and so
412 removes them to the <emphasis role="bold">lost+found</emphasis> directory.</para>
416 <para>If the machine is to remain an AFS client machine, modify the machine's authentication system so that users obtain
417 an AFS token as they log into the local file system. Using AFS is simpler and more convenient for your users if you make
418 the modifications on all client machines. Otherwise, users must perform a two or three step login procedure (login to the local
419 system, then obtain Kerberos credentials, and then issue the <emphasis role="bold">aklog</emphasis> command). For further discussion of AFS
420 authentication, see the chapter in the <emphasis>OpenAFS Administration Guide</emphasis> about cell configuration and
421 administration issues.</para>
423 </itemizedlist></para>
425 <para>To continue, proceed to the appropriate section: <itemizedlist>
427 <para><link linkend="HDRWQ41">Getting Started on Linux Systems</link></para>
431 <para><link linkend="HDRWQ45">Getting Started on Solaris Systems</link></para>
435 <para><link linkend="HDRWQ21">Getting Started on AIX Systems</link></para>
437 </itemizedlist></para>
441 <title>Getting Started on Linux Systems</title>
444 <primary>replacing fsck program</primary>
446 <secondary>not necessary on Linux</secondary>
450 <primary>fsck program</primary>
452 <secondary>on first AFS machine</secondary>
454 <tertiary>Linux</tertiary>
458 <primary>first AFS machine</primary>
460 <secondary>fsck program</secondary>
462 <tertiary>on Linux</tertiary>
466 <primary>Linux</primary>
468 <secondary>fsck program replacement not necessary</secondary>
471 <para>Since this guide was originally written, the procedure for starting
472 OpenAFS has diverged significantly between different Linux distributions.
473 The instructions that follow are appropriate for both the Fedora and
474 RedHat Enterprise Linux packages distributed by OpenAFS. Additional
475 instructions are provided for those building from source.</para>
477 <para>Begin by running the AFS client startup scripts, which call the
478 <emphasis role="bold">modprobe</emphasis> program to dynamically
479 load the AFS modifications into the kernel. Then create partitions for
480 storing AFS volumes. You do not need to replace the Linux <emphasis
481 role="bold">fsck</emphasis> program. If the machine is to remain an
482 AFS client machine, incorporate AFS into the machine's Pluggable
483 Authentication Module (PAM) scheme. <indexterm>
484 <primary>incorporating AFS kernel extensions</primary>
486 <secondary>first AFS machine</secondary>
488 <tertiary>Linux</tertiary>
489 </indexterm> <indexterm>
490 <primary>AFS kernel extensions</primary>
492 <secondary>on first AFS machine</secondary>
494 <tertiary>Linux</tertiary>
495 </indexterm> <indexterm>
496 <primary>first AFS machine</primary>
498 <secondary>AFS kernel extensions</secondary>
500 <tertiary>on Linux</tertiary>
501 </indexterm> <indexterm>
502 <primary>Linux</primary>
504 <secondary>AFS kernel extensions</secondary>
506 <tertiary>on first AFS machine</tertiary>
510 <title>Loading AFS into the Linux Kernel</title>
512 <para>The <emphasis role="bold">modprobe</emphasis> program is the dynamic kernel loader for Linux. Linux does not support
513 incorporation of AFS modifications during a kernel build.</para>
515 <para>For AFS to function correctly, the <emphasis role="bold">modprobe</emphasis> program must run each time the machine
516 reboots, so your distribution's AFS initialization script invokes it automatically. The script also includes
517 commands that select the appropriate AFS library file automatically. In this section you run the script.</para>
519 <para>In later sections you verify that the script correctly initializes all AFS components, then activate a configuration
520 variable, which results in the script being incorporated into the Linux startup and shutdown sequence.</para>
522 <para>The procedure for starting up OpenAFS depends upon your distribution</para>
524 <title>Fedora and RedHat Enterprise Linux</title>
525 <para>OpenAFS provides RPMS for all current Fedora and RedHat Enterprise Linux (RHEL) releases on the OpenAFS web site and the OpenAFS yum repository.
529 http://dl.openafs.org/dl/openafs/<replaceable>VERSION</replaceable>,
530 where VERSION is the latest stable release of
531 OpenAFS. Download the
532 openafs-repository-<replaceable>VERSION</replaceable>.noarch.rpm
533 file for Fedora systems or the
534 openafs-repository-rhel-<replaceable>VERSION</replaceable>.noarch.rpm
535 file for RedHat-based systems.
539 <para>Install the downloaded RPM file using the following command:
541 # rpm -U openafs-repository*.rpm
546 <para>Install the RPM set for your operating system using the yum command as follows:
548 # yum -y install openafs-client openafs-server openafs-krb5 kmod-openafs
552 <para>Alternatively, you may use dynamically-compiled kernel
553 modules if you have the kernel headers, a compiler, and the
555 <ulink url="http://fedoraproject.org/wiki/EPEL"><citetitle>EPEL</citetitle></ulink> installed.
558 <para>To use dynamically-compiled kernel modules instead of statically compiled modules, use the following command instead of the kmod-openafs as shown above:
560 # yum install openafs-client openafs-server openafs-krb5 dkms-openafs
564 <!-- If you do this with current RHEL and Fedora releases you end up with
565 a dynroot'd client running - this breaks setting up the root.afs volume
566 as described later in this guide
568 <para>Run the AFS initialization script to load AFS extensions into
569 the kernel. You can ignore any error messages about the inability
570 to start the BOS Server or the Cache Manager or AFS client.</para>
572 # <emphasis role="bold">/etc/rc.d/init.d/openafs-client start</emphasis>
580 <title>Systems packaged as tar files</title>
581 <para>If you are running a system where the OpenAFS Binary Distribution
582 is provided as a tar file, or where you have built the system from
583 source yourself, you need to install the relevant components by hand
588 <para>Unpack the distribution tarball. The examples below assume
589 that you have unpacked the files into the
590 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
591 pick a different location, substitute this in all of the following
592 examples. Once you have unpacked the distribution,
593 change directory as indicated.
595 # <emphasis role="bold">cd /tmp/afsdist/linux/dest/root.client/usr/vice/etc</emphasis>
596 </programlisting></para>
600 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/modload</emphasis> directory.
601 The filenames for the libraries have the format <emphasis
602 role="bold">libafs-</emphasis><replaceable>version</replaceable><emphasis role="bold">.o</emphasis>, where
603 <replaceable>version</replaceable> indicates the kernel build level. The string <emphasis role="bold">.mp</emphasis> in
604 the <replaceable>version</replaceable> indicates that the file is appropriate for machines running a multiprocessor
605 kernel. <programlisting>
606 # <emphasis role="bold">cp -rp modload /usr/vice/etc</emphasis>
607 </programlisting></para>
611 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
612 role="bold">/etc/rc.d/init.d</emphasis> on Linux machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
613 extension as you copy the script. <programlisting>
614 # <emphasis role="bold">cp -p afs.rc /etc/rc.d/init.d/afs</emphasis>
615 </programlisting></para>
618 <!-- I don't think we need to do this for Linux, and it complicates things if
619 dynroot is enabled ...
621 <para>Run the AFS initialization script to load AFS extensions into the kernel. You can ignore any error messages about
622 the inability to start the BOS Server or the Cache Manager or AFS client.</para>
624 # <emphasis role="bold">/etc/rc.d/init.d/afs start</emphasis>
631 <primary>configuring</primary>
633 <secondary>AFS server partition on first AFS machine</secondary>
635 <tertiary>Linux</tertiary>
639 <primary>AFS server partition</primary>
641 <secondary>configuring on first AFS machine</secondary>
643 <tertiary>Linux</tertiary>
647 <primary>first AFS machine</primary>
649 <secondary>AFS server partition</secondary>
651 <tertiary>on Linux</tertiary>
655 <primary>Linux</primary>
657 <secondary>AFS server partition</secondary>
659 <tertiary>on first AFS machine</tertiary>
665 <title>Configuring Server Partitions on Linux Systems</title>
667 <para>Every AFS file server machine must have at least one partition or logical volume dedicated to storing AFS volumes. Each
668 server partition is mounted at a directory named <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>, where
669 <replaceable>xx</replaceable> is one or two lowercase letters. The <emphasis
670 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directories must reside in the file server machine's root
671 directory, not in one of its subdirectories (for example, <emphasis role="bold">/usr/vicepa</emphasis> is not an acceptable
672 directory location). For additional information, see <link linkend="HDRWQ20">Performing Platform-Specific Procedures</link>.
675 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS server
676 partition you are configuring (there must be at least one). Repeat the command for each partition. <programlisting>
677 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
678 </programlisting></para>
682 <para>Add a line with the following format to the file systems registry file, <emphasis
683 role="bold">/etc/fstab</emphasis>, for each directory just created. The entry maps the directory name to the disk
684 partition to be mounted on it. <programlisting>
685 /dev/<replaceable>disk</replaceable> /vicep<replaceable>xx</replaceable> ext2 defaults 0 2
686 </programlisting></para>
688 <para>The following is an example for the first partition being configured.</para>
691 /dev/sda8 /vicepa ext2 defaults 0 2
696 <para>Create a file system on each partition that is to be mounted at a <emphasis
697 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directory. The following command is probably appropriate, but
698 consult the Linux documentation for more information. <programlisting>
699 # <emphasis role="bold">mkfs -v /dev/</emphasis><replaceable>disk</replaceable>
700 </programlisting></para>
704 <para>Mount each partition by issuing either the <emphasis role="bold">mount -a</emphasis> command to mount all
705 partitions at once or the <emphasis role="bold">mount</emphasis> command to mount each partition in turn.</para>
709 <para>If you plan to retain client functionality on this machine after completing the installation, proceed to <link
710 linkend="HDRWQ44">Enabling AFS Login on Linux Systems</link>. Otherwise, proceed to <link linkend="HDRWQ50">Starting the
711 BOS Server</link>.</para>
713 </orderedlist></para>
716 <primary>enabling AFS login</primary>
718 <secondary>file server machine</secondary>
720 <tertiary>Linux</tertiary>
724 <primary>AFS login</primary>
726 <secondary>on file server machine</secondary>
728 <tertiary>Linux</tertiary>
732 <primary>first AFS machine</primary>
734 <secondary>AFS login</secondary>
736 <tertiary>on Linux</tertiary>
740 <primary>Linux</primary>
742 <secondary>AFS login</secondary>
744 <tertiary>on file server machine</tertiary>
748 <primary>PAM</primary>
750 <secondary>on Linux</secondary>
752 <tertiary>file server machine</tertiary>
757 <title>Enabling AFS Login on Linux Systems</title>
760 <para>If you plan to remove client functionality from this machine
761 after completing the installation, skip this section and proceed
762 to <link linkend="HDRWQ50">Starting the BOS Server</link>.</para>
765 <para>At this point you incorporate AFS into the operating system's
766 Pluggable Authentication Module (PAM) scheme. PAM integrates all
767 authentication mechanisms on the machine, including login, to provide
768 the security infrastructure for authenticated access to and from the
771 <para>You should first configure your system to obtain Kerberos v5
772 tickets as part of the authentication process, and then run an AFS PAM
773 module to obtain tokens from those tickets after authentication. Many
774 Linux distributions come with a Kerberos v5 PAM module (usually called
775 pam-krb5 or pam_krb5), or you can download and install <ulink
776 url="http://www.eyrie.org/~eagle/software/pam-krb5">Russ Allbery's
777 Kerberos v5 PAM module</ulink>, which is tested regularly with AFS.
778 See the instructions of whatever PAM module you use for how to
781 <para>Some Kerberos v5 PAM modules do come with native AFS support
782 (usually requiring the Heimdal Kerberos implementation rather than the
783 MIT Kerberos implementation). If you are using one of those PAM
784 modules, you can configure it to obtain AFS tokens. It's more common,
785 however, to separate the AFS token acquisition into a separate PAM
788 <para>The recommended AFS PAM module is <ulink
789 url="http://www.eyrie.org/~eagle/software/pam-afs-session/">Russ
790 Allbery's pam-afs-session module</ulink>. It should work with any of
791 the Kerberos v5 PAM modules. To add it to the PAM configuration, you
792 often only need to add configuration to the session group:</para>
795 <title>Linux PAM session example</title>
796 <literallayout>session required pam_afs_session.so</literallayout>
799 <para>If you also want to obtain AFS tokens for <command>scp</command>
800 and similar commands that don't open a session, you will also need to
801 add the AFS PAM module to the auth group so that the PAM
802 <function>setcred</function> call will obtain tokens. The
803 <literal>pam_afs_session</literal> module will always return success
804 for authentication so that it can be added to the auth group only for
805 <function>setcred</function>, so make sure that it's not marked as
806 <literal>sufficient</literal>.</para>
809 <title>Linux PAM auth example</title>
810 <literallayout>auth [success=ok default=1] pam_krb5.so
811 auth [default=done] pam_afs_session.so
812 auth required pam_unix.so try_first_pass</literallayout>
815 <para>This example will work if you want to try Kerberos v5 first and
816 then fall back to regular Unix authentication.
817 <literal>success=ok</literal> for the Kerberos PAM module followed by
818 <literal>default=done</literal> for the AFS PAM module will cause a
819 successful Kerberos login to run the AFS PAM module and then skip the
820 Unix authentication module. <literal>default=1</literal> on the
821 Kerberos PAM module causes failure of that module to skip the next
822 module (the AFS PAM module) and fall back to the Unix module. If you
823 want to try Unix authentication first and rearrange the order, be sure
824 to use <literal>default=die</literal> instead.</para>
826 <para>The PAM configuration is stored in different places in different
827 Linux distributions. On Red Hat, look in
828 <filename>/etc/pam.d/system-auth</filename>. On Debian and
829 derivatives, look in <filename>/etc/pam.d/common-session</filename>
830 and <filename>/etc/pam.d/common-auth</filename>.</para>
832 <para>For additional configuration examples and the configuration
833 options of the AFS PAM module, see its documentation. For more
834 details on the available options for the PAM configuration, see the
835 Linux PAM documentation.</para>
837 <para>Sites which still require <command>kaserver</command> or
838 external Kerberos v4 authentication should consult <link
839 linkend="KAS015">Enabling kaserver based AFS Login on Linux
840 Systems</link> for details of how to enable AFS login on Linux.</para>
842 <para>Proceed to <link linkend="HDRWQ50">Starting the BOS
843 Server</link> (or if referring to these instructions while installing
844 an additional file server machine, return to <link
845 linkend="HDRWQ108">Starting Server Programs</link>).</para>
850 <title>Getting Started on Solaris Systems</title>
852 <para>Begin by running the AFS initialization script to call the <emphasis role="bold">modload</emphasis> program distributed by
853 Sun Microsystems, which dynamically loads AFS modifications into the kernel. Then create partitions for storing AFS volumes, and
854 install and configure the AFS-modified <emphasis role="bold">fsck</emphasis> program to run on AFS server partitions. If the
855 machine is to remain an AFS client machine, incorporate AFS into the machine's Pluggable Authentication Module (PAM) scheme.
857 <primary>incorporating AFS kernel extensions</primary>
859 <secondary>first AFS machine</secondary>
861 <tertiary>Solaris</tertiary>
862 </indexterm> <indexterm>
863 <primary>AFS kernel extensions</primary>
865 <secondary>on first AFS machine</secondary>
867 <tertiary>Solaris</tertiary>
868 </indexterm> <indexterm>
869 <primary>first AFS machine</primary>
871 <secondary>AFS kernel extensions</secondary>
873 <tertiary>on Solaris</tertiary>
874 </indexterm> <indexterm>
875 <primary>Solaris</primary>
877 <secondary>AFS kernel extensions</secondary>
879 <tertiary>on first AFS machine</tertiary>
883 <title>Loading AFS into the Solaris Kernel</title>
885 <para>The <emphasis role="bold">modload</emphasis> program is the dynamic kernel loader provided by Sun Microsystems for
886 Solaris systems. Solaris does not support incorporation of AFS modifications during a kernel build.</para>
888 <para>For AFS to function correctly, the <emphasis role="bold">modload</emphasis> program must run each time the machine
889 reboots, so the AFS initialization script (included on the AFS CD-ROM) invokes it automatically. In this section you copy the
890 appropriate AFS library file to the location where the <emphasis role="bold">modload</emphasis> program accesses it and then
891 run the script.</para>
893 <para>In later sections you verify that the script correctly initializes all AFS components, then create the links that
894 incorporate AFS into the Solaris startup and shutdown sequence. <orderedlist>
896 <para>Unpack the OpenAFS Solaris distribution tarball. The examples
897 below assume that you have unpacked the files into the
898 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
899 pick a diferent location, substitute this in all of the following
900 exmaples. Once you have unpacked the distribution, change directory
903 # <emphasis role="bold">cd /tmp/afsdist/sun4x_56/dest/root.client/usr/vice/etc</emphasis>
904 </programlisting></para>
908 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
909 role="bold">/etc/init.d</emphasis> on Solaris machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
910 extension as you copy the script. <programlisting>
911 # <emphasis role="bold">cp -p afs.rc /etc/init.d/afs</emphasis>
912 </programlisting></para>
916 <para>Copy the appropriate AFS kernel library file to the local file <emphasis
917 role="bold">/kernel/fs/afs</emphasis>.</para>
919 <para>If the machine is running Solaris 11 on the x86_64 platform:</para>
922 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/drv/amd64/afs</emphasis>
925 <para>If the machine is running Solaris 10 on the x86_64 platform:</para>
928 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/fs/amd64/afs</emphasis>
931 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, its kernel supports NFS server
932 functionality, and the <emphasis role="bold">nfsd</emphasis> process is running:</para>
935 # <emphasis role="bold">cp -p modload/libafs.o /kernel/fs/afs</emphasis>
938 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, and its kernel does not support NFS
939 server functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
942 # <emphasis role="bold">cp -p modload/libafs.nonfs.o /kernel/fs/afs</emphasis>
945 <para>If the machine is running the 64-bit version of Solaris 7, its kernel supports NFS server functionality, and the
946 <emphasis role="bold">nfsd</emphasis> process is running:</para>
949 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/fs/sparcv9/afs</emphasis>
952 <para>If the machine is running the 64-bit version of Solaris 7, and its kernel does not support NFS server
953 functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
956 # <emphasis role="bold">cp -p modload/libafs64.nonfs.o /kernel/fs/sparcv9/afs</emphasis>
961 <para>Run the AFS initialization script to load AFS modifications into the kernel. You can ignore any error messages
962 about the inability to start the BOS Server or the Cache Manager or AFS client. <programlisting>
963 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
964 </programlisting></para>
966 <para>When an entry called <computeroutput>afs</computeroutput> does not already exist in the local <emphasis
967 role="bold">/etc/name_to_sysnum</emphasis> file, the script automatically creates it and reboots the machine to start
968 using the new version of the file. If this happens, log in again as the superuser <emphasis role="bold">root</emphasis>
969 after the reboot and run the initialization script again. This time the required entry exists in the <emphasis
970 role="bold">/etc/name_to_sysnum</emphasis> file, and the <emphasis role="bold">modload</emphasis> program runs.</para>
973 login: <emphasis role="bold">root</emphasis>
974 Password: <replaceable>root_password</replaceable>
975 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
978 </orderedlist></para>
981 <primary>replacing fsck program</primary>
983 <secondary>first AFS machine</secondary>
985 <tertiary>Solaris</tertiary>
989 <primary>fsck program</primary>
991 <secondary>on first AFS machine</secondary>
993 <tertiary>Solaris</tertiary>
997 <primary>first AFS machine</primary>
999 <secondary>fsck program</secondary>
1001 <tertiary>on Solaris</tertiary>
1005 <primary>Solaris</primary>
1007 <secondary>fsck program</secondary>
1009 <tertiary>on first AFS machine</tertiary>
1013 <sect2 id="HDRWQ47">
1014 <title>Configuring the AFS-modified fsck Program on Solaris Systems</title>
1016 <para>In this section, you make modifications to guarantee that the appropriate <emphasis role="bold">fsck</emphasis> program
1017 runs on AFS server partitions. The <emphasis role="bold">fsck</emphasis> program provided with the operating system must never
1018 run on AFS server partitions. Because it does not recognize the structures that the File Server uses to organize volume data,
1019 it removes all of the data. To repeat:</para>
1021 <para><emphasis role="bold">Never run the standard fsck program on AFS server partitions. It discards AFS volumes.</emphasis>
1024 <para>Create the <emphasis role="bold">/usr/lib/fs/afs</emphasis> directory to house the AFS-modified <emphasis
1025 role="bold">fsck</emphasis> program and related files. <programlisting>
1026 # <emphasis role="bold">mkdir /usr/lib/fs/afs</emphasis>
1027 # <emphasis role="bold">cd /usr/lib/fs/afs</emphasis>
1028 </programlisting></para>
1032 <para>Copy the <emphasis role="bold">vfsck</emphasis> binary to the newly created directory, changing the name as you do
1033 so. <programlisting>
1034 # <emphasis role="bold">cp /tmp/afsdist/sun4x_56/dest/root.server/etc/vfsck fsck</emphasis>
1035 </programlisting></para>
1039 <para>Working in the <emphasis role="bold">/usr/lib/fs/afs</emphasis> directory, create the following links to Solaris
1040 libraries: <programlisting>
1041 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/clri</emphasis>
1042 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/df</emphasis>
1043 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/edquota</emphasis>
1044 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ff</emphasis>
1045 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/fsdb</emphasis>
1046 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/fsirand</emphasis>
1047 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/fstyp</emphasis>
1048 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/labelit</emphasis>
1049 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/lockfs</emphasis>
1050 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/mkfs</emphasis>
1051 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/mount</emphasis>
1052 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ncheck</emphasis>
1053 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/newfs</emphasis>
1054 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quot</emphasis>
1055 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quota</emphasis>
1056 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quotaoff</emphasis>
1057 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/quotaon</emphasis>
1058 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/repquota</emphasis>
1059 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/tunefs</emphasis>
1060 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ufsdump</emphasis>
1061 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/ufsrestore</emphasis>
1062 # <emphasis role="bold">ln -s /usr/lib/fs/ufs/volcopy</emphasis>
1063 </programlisting></para>
1067 <para>Append the following line to the end of the file <emphasis role="bold">/etc/dfs/fstypes</emphasis>.
1070 </programlisting></para>
1074 <para>Edit the <emphasis role="bold">/sbin/mountall</emphasis> file, making two changes. <itemizedlist>
1076 <para>Add an entry for AFS to the <computeroutput>case</computeroutput> statement for option 2, so that it reads
1077 as follows: <programlisting>
1079 ufs) foptions="-o p"
1081 afs) foptions="-o p"
1083 s5) foptions="-y -t /var/tmp/tmp$$ -D"
1087 </programlisting></para>
1091 <para>Edit the file so that all AFS and UFS partitions are checked in parallel. Replace the following section of
1092 code: <programlisting>
1093 # For fsck purposes, we make a distinction between ufs and
1094 # other file systems
1096 if [ "$fstype" = "ufs" ]; then
1097 ufs_fscklist="$ufs_fscklist $fsckdev"
1098 saveentry $fstype "$OPTIONS" $special $mountp
1101 </programlisting></para>
1103 <para>with the following section of code:</para>
1106 # For fsck purposes, we make a distinction between ufs/afs
1107 # and other file systems.
1109 if [ "$fstype" = "ufs" -o "$fstype" = "afs" ]; then
1110 ufs_fscklist="$ufs_fscklist $fsckdev"
1111 saveentry $fstype "$OPTIONS" $special $mountp
1116 </itemizedlist></para>
1118 </orderedlist></para>
1121 <primary>configuring</primary>
1123 <secondary>AFS server partition on first AFS machine</secondary>
1125 <tertiary>Solaris</tertiary>
1129 <primary>AFS server partition</primary>
1131 <secondary>configuring on first AFS machine</secondary>
1133 <tertiary>Solaris</tertiary>
1137 <primary>first AFS machine</primary>
1139 <secondary>AFS server partition</secondary>
1141 <tertiary>on Solaris</tertiary>
1145 <primary>Solaris</primary>
1147 <secondary>AFS server partition</secondary>
1149 <tertiary>on first AFS machine</tertiary>
1153 <sect2 id="HDRWQ48">
1154 <title>Configuring Server Partitions on Solaris Systems</title>
1156 <para>Every AFS file server machine must have at least one partition or logical volume dedicated to storing AFS volumes. Each
1157 server partition is mounted at a directory named <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>, where
1158 <replaceable>xx</replaceable> is one or two lowercase letters. The <emphasis
1159 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directories must reside in the file server machine's root
1160 directory, not in one of its subdirectories (for example, <emphasis role="bold">/usr/vicepa</emphasis> is not an acceptable
1161 directory location). For additional information, see <link linkend="HDRWQ20">Performing Platform-Specific Procedures</link>.
1164 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS server
1165 partition you are configuring (there must be at least one). Repeat the command for each partition. <programlisting>
1166 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
1167 </programlisting></para>
1171 <para>Add a line with the following format to the file systems registry file, <emphasis
1172 role="bold">/etc/vfstab</emphasis>, for each partition to be mounted on a directory created in the previous step. Note
1173 the value <computeroutput>afs</computeroutput> in the fourth field, which tells Solaris to use the AFS-modified
1174 <emphasis role="bold">fsck</emphasis> program on this partition. <programlisting>
1175 /dev/dsk/<replaceable>disk</replaceable> /dev/rdsk/<replaceable>disk</replaceable> /vicep<replaceable>xx</replaceable> afs <replaceable>boot_order</replaceable> yes
1176 </programlisting></para>
1178 <para>The following is an example for the first partition being configured.</para>
1181 /dev/dsk/c0t6d0s1 /dev/rdsk/c0t6d0s1 /vicepa afs 3 yes
1186 <para>Create a file system on each partition that is to be mounted at a <emphasis
1187 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directory. The following command is probably appropriate, but
1188 consult the Solaris documentation for more information. <programlisting>
1189 # <emphasis role="bold">newfs -v /dev/rdsk/</emphasis><replaceable>disk</replaceable>
1190 </programlisting></para>
1194 <para>Issue the <emphasis role="bold">mountall</emphasis> command to mount all partitions at once.</para>
1198 <para>If you plan to retain client functionality on this machine after completing the installation, proceed to <link
1199 linkend="HDRWQ49">Enabling AFS Login and Editing the File Systems Clean-up Script on Solaris Systems</link>. Otherwise,
1200 proceed to <link linkend="HDRWQ50">Starting the BOS Server</link>.</para>
1202 </orderedlist></para>
1205 <sect2 id="HDRWQ49">
1206 <title>Enabling AFS Login on Solaris Systems</title>
1208 <primary>enabling AFS login</primary>
1210 <secondary>file server machine</secondary>
1212 <tertiary>Solaris</tertiary>
1216 <primary>AFS login</primary>
1218 <secondary>on file server machine</secondary>
1220 <tertiary>Solaris</tertiary>
1224 <primary>first AFS machine</primary>
1226 <secondary>AFS login</secondary>
1228 <tertiary>on Solaris</tertiary>
1232 <primary>Solaris</primary>
1234 <secondary>AFS login</secondary>
1236 <tertiary>on file server machine</tertiary>
1240 <primary>PAM</primary>
1242 <secondary>on Solaris</secondary>
1244 <tertiary>file server machine</tertiary>
1248 <para>If you plan to remove client functionality from this machine after completing the installation, skip this section and
1249 proceed to <link linkend="HDRWQ50">Starting the BOS Server</link>.</para>
1252 <para>At this point you incorporate AFS into the operating system's
1253 Pluggable Authentication Module (PAM) scheme. PAM integrates all
1254 authentication mechanisms on the machine, including login, to provide
1255 the security infrastructure for authenticated access to and from the
1258 <para>Explaining PAM is beyond the scope of this document. It is
1259 assumed that you understand the syntax and meanings of settings in the
1260 PAM configuration file (for example, how the
1261 <computeroutput>other</computeroutput> entry works, the effect of
1262 marking an entry as <computeroutput>required</computeroutput>,
1263 <computeroutput>optional</computeroutput>, or
1264 <computeroutput>sufficient</computeroutput>, and so on).</para>
1266 <para>You should first configure your system to obtain Kerberos v5
1267 tickets as part of the authentication process, and then run an AFS PAM
1268 module to obtain tokens from those tickets after authentication.
1269 Current versions of Solaris come with a Kerberos v5 PAM module that
1270 will work, or you can download and install <ulink
1271 url="http://www.eyrie.org/~eagle/software/pam-krb5">Russ Allbery's
1272 Kerberos v5 PAM module</ulink>, which is tested regularly with AFS.
1273 See the instructions of whatever PAM module you use for how to
1274 configure it.</para>
1276 <para>Some Kerberos v5 PAM modules do come with native AFS support
1277 (usually requiring the Heimdal Kerberos implementation rather than the
1278 MIT Kerberos implementation). If you are using one of those PAM
1279 modules, you can configure it to obtain AFS tokens. It's more common,
1280 however, to separate the AFS token acquisition into a separate PAM
1283 <para>The recommended AFS PAM module is <ulink
1284 url="http://www.eyrie.org/~eagle/software/pam-afs-session/">Russ
1285 Allbery's pam-afs-session module</ulink>. It should work with any of
1286 the Kerberos v5 PAM modules. To add it to the PAM configuration, you
1287 often only need to add configuration to the session group in
1288 <filename>pam.conf</filename>:</para>
1291 <title>Solaris PAM session example</title>
1292 <literallayout>login session required pam_afs_session.so</literallayout>
1295 <para>This example enables PAM authentication only for console login.
1296 You may want to add a similar line for the ssh service and for any
1297 other login service that you use, including possibly the
1298 <literal>other</literal> service (which serves as a catch-all). You
1299 may also want to add options to the AFS PAM session module
1300 (particularly <literal>retain_after_close</literal>, which is
1301 necessary for some versions of Solaris.</para>
1303 <para>For additional configuration examples and the configuration
1304 options of the AFS PAM module, see its documentation. For more
1305 details on the available options for the PAM configuration, see the
1306 <filename>pam.conf</filename> manual page.</para>
1308 <para>Sites which still require <emphasis
1309 role="bold">kaserver</emphasis> or external Kerberos v4 authentication
1310 should consult <link linkend="KAS016">"Enabling kaserver based AFS
1311 Login on Solaris Systems"</link> for details of how to enable AFS
1312 login on Solaris.</para>
1314 <para>Proceed to <link linkend="HDRWQ49a">Editing the File Systems
1315 Clean-up Script on Solaris Systems</link></para>
1317 <sect2 id="HDRWQ49a">
1318 <title>Editing the File Systems Clean-up Script on Solaris Systems</title>
1320 <primary>Solaris</primary>
1322 <secondary>file systems clean-up script</secondary>
1324 <tertiary>on file server machine</tertiary>
1328 <primary>file systems clean-up script (Solaris)</primary>
1330 <secondary>file server machine</secondary>
1334 <primary>scripts</primary>
1336 <secondary>file systems clean-up (Solaris)</secondary>
1338 <tertiary>file server machine</tertiary>
1344 <para>Some Solaris distributions include a script that locates and removes unneeded files from various file systems. Its
1345 conventional location is <emphasis role="bold">/usr/lib/fs/nfs/nfsfind</emphasis>. The script generally uses an argument
1346 to the <emphasis role="bold">find</emphasis> command to define which file systems to search. In this step you modify the
1347 command to exclude the <emphasis role="bold">/afs</emphasis> directory. Otherwise, the command traverses the AFS
1348 filespace of every cell that is accessible from the machine, which can take many hours. The following alterations are
1349 possibilities, but you must verify that they are appropriate for your cell.</para>
1351 <para>The first possible alteration is to add the <emphasis role="bold">-local</emphasis> flag to the existing command,
1352 so that it looks like the following:</para>
1355 find $dir -local -name .nfs\* -mtime +7 -mount -exec rm -f {} \;
1358 <para>Another alternative is to exclude any directories whose names begin with the lowercase letter <emphasis
1359 role="bold">a</emphasis> or a non-alphabetic character.</para>
1362 find /[A-Zb-z]* <replaceable>remainder of existing command</replaceable>
1365 <para>Do not use the following command, which still searches under the <emphasis role="bold">/afs</emphasis> directory,
1366 looking for a subdirectory of type <emphasis role="bold">4.2</emphasis>.</para>
1369 find / -fstype 4.2 /* <replaceable>do not use</replaceable> */
1374 <para>Proceed to <link linkend="HDRWQ50">Starting the BOS Server</link> (or if referring to these instructions while
1375 installing an additional file server machine, return to <link linkend="HDRWQ108">Starting Server
1376 Programs</link>).</para>
1381 <primary>Basic OverSeer Server</primary>
1383 <see>BOS Server</see>
1387 <primary>BOS Server</primary>
1389 <secondary>starting</secondary>
1391 <tertiary>first AFS machine</tertiary>
1395 <primary>starting</primary>
1397 <secondary>BOS Server</secondary>
1399 <tertiary>first AFS machine</tertiary>
1403 <primary>first AFS machine</primary>
1405 <secondary>BOS Server</secondary>
1409 <primary>authorization checking (disabling)</primary>
1411 <secondary>first AFS machine</secondary>
1415 <primary>disabling authorization checking</primary>
1417 <secondary>first AFS machine</secondary>
1421 <primary>first AFS machine</primary>
1423 <secondary>authorization checking (disabling)</secondary>
1428 <sect1 id="HDRWQ21">
1429 <title>Getting Started on AIX Systems</title>
1431 <para>Begin by running the AFS initialization script to call the AIX kernel extension facility, which dynamically loads AFS
1432 modifications into the kernel. Then use the <emphasis role="bold">SMIT</emphasis> program to configure partitions for storing
1433 AFS volumes, and replace the AIX <emphasis role="bold">fsck</emphasis> program helper with a version that correctly handles AFS
1434 volumes. If the machine is to remain an AFS client machine, incorporate AFS into the AIX secondary authentication system.
1436 <primary>incorporating AFS kernel extensions</primary>
1438 <secondary>first AFS machine</secondary>
1440 <tertiary>AIX</tertiary>
1441 </indexterm> <indexterm>
1442 <primary>AFS kernel extensions</primary>
1444 <secondary>on first AFS machine</secondary>
1446 <tertiary>AIX</tertiary>
1447 </indexterm> <indexterm>
1448 <primary>first AFS machine</primary>
1450 <secondary>AFS kernel extensions</secondary>
1452 <tertiary>on AIX</tertiary>
1453 </indexterm> <indexterm>
1454 <primary>AIX</primary>
1456 <secondary>AFS kernel extensions</secondary>
1458 <tertiary>on first AFS machine</tertiary>
1461 <sect2 id="HDRWQ22">
1462 <title>Loading AFS into the AIX Kernel</title>
1464 <para>The AIX kernel extension facility is the dynamic kernel loader
1465 provided by IBM Corporation. AIX does not support incorporation of
1466 AFS modifications during a kernel build.</para>
1468 <para>For AFS to function correctly, the kernel extension facility must run each time the machine reboots, so the AFS
1469 initialization script (included in the AFS distribution) invokes it automatically. In this section you copy the script to the
1470 conventional location and edit it to select the appropriate options depending on whether NFS is also to run.</para>
1472 <para>After editing the script, you run it to incorporate AFS into the kernel. In later sections you verify that the script
1473 correctly initializes all AFS components, then configure the AIX <emphasis role="bold">inittab</emphasis> file so that the
1474 script runs automatically at reboot. <orderedlist>
1476 <para>Unpack the distribution tarball. The examples below assume
1477 that you have unpacked the files into the
1478 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
1479 pick a different location, substitute this in all of the following
1480 examples. Once you have unpacked the distribution,
1481 change directory as indicated.
1483 # <emphasis role="bold">cd /tmp/afsdist/rs_aix42/dest/root.client/usr/vice/etc</emphasis>
1484 </programlisting></para>
1488 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/dkload</emphasis> directory,
1489 and the AFS initialization script to the <emphasis role="bold">/etc</emphasis> directory. <programlisting>
1490 # <emphasis role="bold">cp -rp dkload /usr/vice/etc</emphasis>
1491 # <emphasis role="bold">cp -p rc.afs /etc/rc.afs</emphasis>
1492 </programlisting></para>
1496 <para>Edit the <emphasis role="bold">/etc/rc.afs</emphasis> script, setting the <computeroutput>NFS</computeroutput>
1497 variable as indicated.</para>
1499 <para>If the machine is not to function as an NFS/AFS Translator, set the <computeroutput>NFS</computeroutput> variable
1506 <para>If the machine is to function as an NFS/AFS Translator and is running AIX 4.2.1 or higher, set the
1507 <computeroutput>NFS</computeroutput> variable as follows. Note that NFS must already be loaded into the kernel, which
1508 happens automatically on systems running AIX 4.1.1 and later, as long as the file <emphasis
1509 role="bold">/etc/exports</emphasis> exists.</para>
1517 <para>Invoke the <emphasis role="bold">/etc/rc.afs</emphasis> script to load AFS modifications into the kernel. You can
1518 ignore any error messages about the inability to start the BOS Server or the Cache Manager or AFS client.
1520 # <emphasis role="bold">/etc/rc.afs</emphasis>
1521 </programlisting></para>
1523 </orderedlist></para>
1526 <primary>configuring</primary>
1528 <secondary>AFS server partition on first AFS machine</secondary>
1530 <tertiary>AIX</tertiary>
1534 <primary>AFS server partition</primary>
1536 <secondary>configuring on first AFS machine</secondary>
1538 <tertiary>AIX</tertiary>
1542 <primary>first AFS machine</primary>
1544 <secondary>AFS server partition</secondary>
1546 <tertiary>on AIX</tertiary>
1550 <primary>AIX</primary>
1552 <secondary>AFS server partition</secondary>
1554 <tertiary>on first AFS machine</tertiary>
1558 <sect2 id="HDRWQ23">
1559 <title>Configuring Server Partitions on AIX Systems</title>
1561 <para>Every AFS file server machine must have at least one partition or logical volume dedicated to storing AFS volumes. Each
1562 server partition is mounted at a directory named <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>, where
1563 <replaceable>xx</replaceable> is one or two lowercase letters. The <emphasis
1564 role="bold">/vicep</emphasis><replaceable>xx</replaceable> directories must reside in the file server machine's root
1565 directory, not in one of its subdirectories (for example, <emphasis role="bold">/usr/vicepa</emphasis> is not an acceptable
1566 directory location). For additional information, see <link linkend="HDRWQ20">Performing Platform-Specific
1567 Procedures</link>.</para>
1569 <para>To configure server partitions on an AIX system, perform the following procedures: <orderedlist>
1571 <para>Create a directory called <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable> for each AFS server
1572 partition you are configuring (there must be at least one). Repeat the command for each partition. <programlisting>
1573 # <emphasis role="bold">mkdir /vicep</emphasis><replaceable>xx</replaceable>
1574 </programlisting></para>
1578 <para>Use the <emphasis role="bold">SMIT</emphasis> program to create a journaling file system on each partition to be
1579 configured as an AFS server partition.</para>
1583 <para>Mount each partition at one of the <emphasis role="bold">/vicep</emphasis><replaceable>xx</replaceable>
1584 directories. Choose one of the following three methods: <itemizedlist>
1586 <para>Use the <emphasis role="bold">SMIT</emphasis> program</para>
1590 <para>Use the <emphasis role="bold">mount -a</emphasis> command to mount all partitions at once</para>
1594 <para>Use the <emphasis role="bold">mount</emphasis> command on each partition in turn</para>
1596 </itemizedlist></para>
1598 <para>Also configure the partitions so that they are mounted automatically at each reboot. For more information, refer
1599 to the AIX documentation.</para>
1601 </orderedlist></para>
1604 <primary>replacing fsck program</primary>
1606 <secondary>first AFS machine</secondary>
1608 <tertiary>AIX</tertiary>
1612 <primary>fsck program</primary>
1614 <secondary>on first AFS machine</secondary>
1616 <tertiary>AIX</tertiary>
1620 <primary>first AFS machine</primary>
1622 <secondary>fsck program</secondary>
1624 <tertiary>on AIX</tertiary>
1628 <primary>AIX</primary>
1630 <secondary>fsck program</secondary>
1632 <tertiary>on first AFS machine</tertiary>
1636 <sect2 id="HDRWQ24">
1637 <title>Replacing the fsck Program Helper on AIX Systems</title>
1639 <note><para>The AFS modified fsck program is not required on AIX 5.1
1640 systems, and the <emphasis role="bold">v3fshelper</emphasis> program
1641 refered to below is not shipped for these systems.</para></note>
1643 <para>In this section, you make modifications to guarantee that the appropriate <emphasis role="bold">fsck</emphasis> program
1644 runs on AFS server partitions. The <emphasis role="bold">fsck</emphasis> program provided with the operating system must never
1645 run on AFS server partitions. Because it does not recognize the structures that the File Server uses to organize volume data,
1646 it removes all of the data. To repeat:</para>
1648 <para><emphasis role="bold">Never run the standard fsck program on AFS server partitions. It discards AFS
1649 volumes.</emphasis></para>
1651 <para>On AIX systems, you do not replace the <emphasis role="bold">fsck</emphasis> binary itself, but rather the
1652 <emphasis>program helper</emphasis> file included in the AIX distribution as <emphasis
1653 role="bold">/sbin/helpers/v3fshelper</emphasis>. <orderedlist>
1655 <para>Move the AIX <emphasis role="bold">fsck</emphasis> program helper to a safe location and install the version from
1656 the AFS distribution in its place.
1658 # <emphasis role="bold">cd /sbin/helpers</emphasis>
1659 # <emphasis role="bold">mv v3fshelper v3fshelper.noafs</emphasis>
1660 # <emphasis role="bold">cp -p /tmp/afsdist/rs_aix42/dest/root.server/etc/v3fshelper v3fshelper</emphasis>
1661 </programlisting></para>
1665 <para>If you plan to retain client functionality on this machine after completing the installation, proceed to <link
1666 linkend="HDRWQ25">Enabling AFS Login on AIX Systems</link>. Otherwise, proceed to <link linkend="HDRWQ50">Starting the
1667 BOS Server</link>.</para>
1669 </orderedlist></para>
1672 <primary>enabling AFS login</primary>
1674 <secondary>file server machine</secondary>
1676 <tertiary>AIX</tertiary>
1680 <primary>AFS login</primary>
1682 <secondary>on file server machine</secondary>
1684 <tertiary>AIX</tertiary>
1688 <primary>first AFS machine</primary>
1690 <secondary>AFS login</secondary>
1692 <tertiary>on AIX</tertiary>
1696 <primary>AIX</primary>
1698 <secondary>AFS login</secondary>
1700 <tertiary>on file server machine</tertiary>
1704 <primary>secondary authentication system (AIX)</primary>
1706 <secondary>server machine</secondary>
1710 <sect2 id="HDRWQ25">
1711 <title>Enabling AFS Login on AIX Systems</title>
1714 <para>If you plan to remove client functionality from this machine after completing the installation, skip this section and
1715 proceed to <link linkend="HDRWQ50">Starting the BOS Server</link>.</para>
1718 <para>In modern AFS installations, you should be using Kerberos v5
1719 for user login, and obtaining AFS tokens following this authentication
1722 <para>There are currently no instructions available on configuring AIX to
1723 automatically obtain AFS tokens at login. Following login, users can
1724 obtain tokens by running the <emphasis role="bold">aklog</emphasis>
1727 <para>Sites which still require <emphasis role="bold">kaserver</emphasis>
1728 or external Kerberos v4 authentication should consult
1729 <link linkend="KAS012">Enabling kaserver based AFS login on AIX systems</link>
1730 for details of how to enable AIX login.</para>
1732 <para>Proceed to <link linkend="HDRWQ50">Starting the BOS Server</link>
1733 (or if referring to these instructions while installing an additional
1734 file server machine, return to <link linkend="HDRWQ108">Starting Server
1735 Programs</link>).</para>
1738 <sect1 id="HDRWQ50">
1739 <title>Starting the BOS Server</title>
1741 <para>You are now ready to start the AFS server processes on this machine.
1742 If you are not working from a packaged distribution, begin by copying the
1743 AFS server binaries from the distribution to the conventional local disk
1744 location, the <emphasis role="bold">/usr/afs/bin</emphasis> directory. The
1745 following instructions also create files in other subdirectories of the
1746 <emphasis role="bold">/usr/afs</emphasis> directory.</para>
1748 <para>Then issue the <emphasis role="bold">bosserver</emphasis> command to initialize the Basic OverSeer (BOS) Server, which
1749 monitors and controls other AFS server processes on its server machine. Include the <emphasis role="bold">-noauth</emphasis>
1750 flag to disable authorization checking. Because you have not yet configured your cell's AFS authentication and authorization
1751 mechanisms, the BOS Server cannot perform authorization checking as it does during normal operation. In no-authorization mode,
1752 it does not verify the identity or privilege of the issuer of a <emphasis role="bold">bos</emphasis> command, and so performs
1753 any operation for anyone.</para>
1755 <para>Disabling authorization checking gravely compromises cell security. You must complete all subsequent steps in one
1756 uninterrupted pass and must not leave the machine unattended until you restart the BOS Server with authorization checking
1757 enabled, in <link linkend="HDRWQ72">Verifying the AFS Initialization Script</link>.</para>
1759 <para>As it initializes for the first time, the BOS Server creates the following directories and files, setting the owner to the
1760 local superuser <emphasis role="bold">root</emphasis> and the mode bits to limit the ability to write (and in some cases, read)
1761 them. For a description of the contents and function of these directories and files, see the chapter in the <emphasis>OpenAFS
1762 Administration Guide</emphasis> about administering server machines. For further discussion of the mode bit settings, see <link
1763 linkend="HDRWQ96">Protecting Sensitive AFS Directories</link>. <indexterm>
1764 <primary>Binary Distribution</primary>
1766 <secondary>copying server files from</secondary>
1768 <tertiary>first AFS machine</tertiary>
1769 </indexterm> <indexterm>
1770 <primary>first AFS machine</primary>
1772 <secondary>subdirectories of /usr/afs</secondary>
1773 </indexterm> <indexterm>
1774 <primary>creating</primary>
1776 <secondary>/usr/afs/bin directory</secondary>
1778 <tertiary>first AFS machine</tertiary>
1779 </indexterm> <indexterm>
1780 <primary>creating</primary>
1782 <secondary>/usr/afs/etc directory</secondary>
1784 <tertiary>first AFS machine</tertiary>
1785 </indexterm> <indexterm>
1786 <primary>copying</primary>
1788 <secondary>server files to local disk</secondary>
1790 <tertiary>first AFS machine</tertiary>
1791 </indexterm> <indexterm>
1792 <primary>first AFS machine</primary>
1794 <secondary>copying</secondary>
1796 <tertiary>server files to local disk</tertiary>
1797 </indexterm> <indexterm>
1798 <primary>usr/afs/bin directory</primary>
1800 <secondary>first AFS machine</secondary>
1801 </indexterm> <indexterm>
1802 <primary>usr/afs/etc directory</primary>
1804 <secondary>first AFS machine</secondary>
1805 </indexterm> <indexterm>
1806 <primary>usr/afs/db directory</primary>
1807 </indexterm> <indexterm>
1808 <primary>usr/afs/local directory</primary>
1809 </indexterm> <indexterm>
1810 <primary>usr/afs/logs directory</primary>
1811 </indexterm> <itemizedlist>
1813 <para><emphasis role="bold">/usr/afs/db</emphasis></para>
1817 <para><emphasis role="bold">/usr/afs/etc/CellServDB</emphasis></para>
1821 <para><emphasis role="bold">/usr/afs/etc/ThisCell</emphasis></para>
1825 <para><emphasis role="bold">/usr/afs/local</emphasis></para>
1829 <para><emphasis role="bold">/usr/afs/logs</emphasis></para>
1831 </itemizedlist></para>
1833 <para>The BOS Server also creates symbolic links called <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> and <emphasis
1834 role="bold">/usr/vice/etc/CellServDB</emphasis> to the corresponding files in the <emphasis role="bold">/usr/afs/etc</emphasis>
1835 directory. The AFS command interpreters consult the <emphasis role="bold">CellServDB</emphasis> and <emphasis
1836 role="bold">ThisCell</emphasis> files in the <emphasis role="bold">/usr/vice/etc</emphasis> directory because they generally run
1837 on client machines. On machines that are AFS servers only (as this machine currently is), the files reside only in the <emphasis
1838 role="bold">/usr/afs/etc</emphasis> directory; the links enable the command interpreters to retrieve the information they need.
1839 Later instructions for installing the client functionality replace the links with actual files. <orderedlist>
1841 <para>If you are not working from a packaged distribution, you may need to copy files from the distribution media to the local <emphasis role="bold">/usr/afs</emphasis> directory.
1843 # <emphasis role="bold">cd /tmp/afsdist/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/root.server/usr/afs</emphasis>
1844 # <emphasis role="bold">cp -rp * /usr/afs</emphasis>
1845 </programlisting> <indexterm>
1846 <primary>commands</primary>
1848 <secondary>bosserver</secondary>
1849 </indexterm> <indexterm>
1850 <primary>bosserver command</primary>
1855 <para>Issue the <emphasis role="bold">bosserver</emphasis> command. Include the <emphasis role="bold">-noauth</emphasis>
1856 flag to disable authorization checking. <programlisting>
1857 # <emphasis role="bold">/usr/afs/bin/bosserver -noauth &</emphasis>
1858 </programlisting></para>
1862 <para>Verify that the BOS Server created <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> and <emphasis
1863 role="bold">/usr/vice/etc/CellServDB</emphasis> as symbolic links to the corresponding files in the <emphasis
1864 role="bold">/usr/afs/etc</emphasis> directory. <programlisting>
1865 # <emphasis role="bold">ls -l /usr/vice/etc</emphasis>
1866 </programlisting></para>
1868 <para>If either or both of <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> and <emphasis
1869 role="bold">/usr/vice/etc/CellServDB</emphasis> do not exist, or are not links, issue the following commands.</para>
1872 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
1873 # <emphasis role="bold">ln -s /usr/afs/etc/ThisCell</emphasis>
1874 # <emphasis role="bold">ln -s /usr/afs/etc/CellServDB</emphasis>
1877 </orderedlist></para>
1880 <primary>cell name</primary>
1882 <secondary>defining during installation of first machine</secondary>
1886 <primary>defining</primary>
1888 <secondary>cell name during installation of first machine</secondary>
1892 <primary>cell name</primary>
1894 <secondary>setting in server ThisCell file</secondary>
1896 <tertiary>first AFS machine</tertiary>
1900 <primary>setting</primary>
1902 <secondary>cell name in server ThisCell file</secondary>
1904 <tertiary>first AFS machine</tertiary>
1908 <primary>first AFS machine</primary>
1910 <secondary>ThisCell file (server)</secondary>
1914 <primary>usr/afs/etc/ThisCell</primary>
1916 <see>ThisCell file (server)</see>
1920 <primary>ThisCell file (server)</primary>
1922 <secondary>first AFS machine</secondary>
1926 <primary>files</primary>
1928 <secondary>ThisCell (server)</secondary>
1932 <primary>database server machine</primary>
1934 <secondary>entry in server CellServDB file</secondary>
1936 <tertiary>on first AFS machine</tertiary>
1940 <primary>first AFS machine</primary>
1942 <secondary>cell membership, defining</secondary>
1944 <tertiary>for server processes</tertiary>
1948 <primary>usr/afs/etc/CellServDB file</primary>
1950 <see>CellServDB file (server)</see>
1954 <primary>CellServDB file (server)</primary>
1956 <secondary>creating</secondary>
1958 <tertiary>on first AFS machine</tertiary>
1962 <primary>creating</primary>
1964 <secondary>CellServDB file (server)</secondary>
1966 <tertiary>first AFS machine</tertiary>
1970 <primary>files</primary>
1972 <secondary>CellServDB (server)</secondary>
1976 <primary>first AFS machine</primary>
1978 <secondary>CellServDB file (server)</secondary>
1982 <primary>first AFS machine</primary>
1984 <secondary>defining</secondary>
1986 <tertiary>as database server</tertiary>
1990 <primary>defining</primary>
1992 <secondary>first AFS machine as database server</secondary>
1996 <sect1 id="HDRWQ51">
1997 <title>Defining Cell Name and Membership for Server Processes</title>
1999 <para>Now assign your cell's name. The chapter in the <emphasis>OpenAFS Administration Guide</emphasis> about cell configuration
2000 and administration issues discusses the important considerations, explains why changing the name is difficult, and outlines the
2001 restrictions on name format. Two of the most important restrictions are that the name cannot include uppercase letters or more
2002 than 64 characters.</para>
2004 <para>Use the <emphasis role="bold">bos setcellname</emphasis> command to assign the cell name. It creates two files:
2007 <para><emphasis role="bold">/usr/afs/etc/ThisCell</emphasis>, which defines this machine's cell membership</para>
2011 <para><emphasis role="bold">/usr/afs/etc/CellServDB</emphasis>, which lists the cell's database server machines; the
2012 machine named on the command line is placed on the list automatically</para>
2014 </itemizedlist> <note>
2015 <para>In the following and every instruction in this guide, for the <replaceable>machine name</replaceable> argument
2016 substitute the fully-qualified hostname (such as <emphasis role="bold">fs1.example.com</emphasis>) of the machine you are
2017 installing. For the <replaceable>cell name</replaceable> argument substitute your cell's complete name (such as <emphasis
2018 role="bold">example.com</emphasis>).</para>
2022 <primary>commands</primary>
2024 <secondary>bos setcellname</secondary>
2028 <primary>bos commands</primary>
2030 <secondary>setcellname</secondary>
2035 <para>If necessary, add the directory containing the <emphasis role="bold">bos</emphasis> command to your path.
2037 # <emphasis role="bold">export PATH=$PATH:/usr/afs/bin</emphasis>
2043 <para>Issue the <emphasis role="bold">bos setcellname</emphasis> command to set the cell name. <programlisting>
2044 # <emphasis role="bold">bos setcellname</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>cell name</replaceable>> <emphasis
2045 role="bold">-noauth</emphasis>
2046 </programlisting></para>
2048 <para>Because you are not authenticated and authorization checking is disabled, the <emphasis role="bold">bos</emphasis>
2049 command interpreter possibly produces error messages about being unable to obtain tickets and running unauthenticated. You
2050 can safely ignore the messages. <indexterm>
2051 <primary>commands</primary>
2053 <secondary>bos listhosts</secondary>
2054 </indexterm> <indexterm>
2055 <primary>bos commands</primary>
2057 <secondary>listhosts</secondary>
2058 </indexterm> <indexterm>
2059 <primary>CellServDB file (server)</primary>
2061 <secondary>displaying entries</secondary>
2062 </indexterm> <indexterm>
2063 <primary>displaying</primary>
2065 <secondary>CellServDB file (server) entries</secondary>
2070 <para>Issue the <emphasis role="bold">bos listhosts</emphasis> command to verify that the machine you are installing is now
2071 registered as the cell's first database server machine. <programlisting>
2072 # <emphasis role="bold">bos listhosts</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">-noauth</emphasis>
2073 Cell name is <replaceable>cell_name</replaceable>
2074 Host 1 is <replaceable>machine_name</replaceable>
2075 </programlisting></para>
2080 <primary>database server machine</primary>
2082 <secondary>installing</secondary>
2084 <tertiary>first</tertiary>
2088 <primary>instructions</primary>
2090 <secondary>database server machine, installing first</secondary>
2094 <primary>installing</primary>
2096 <secondary>database server machine</secondary>
2098 <tertiary>first</tertiary>
2102 <primary>Backup Server</primary>
2104 <secondary>starting</secondary>
2106 <tertiary>first AFS machine</tertiary>
2110 <primary>buserver process</primary>
2112 <see>Backup Server</see>
2116 <primary>starting</primary>
2118 <secondary>Backup Server</secondary>
2120 <tertiary>first AFS machine</tertiary>
2124 <primary>first AFS machine</primary>
2126 <secondary>Backup Server</secondary>
2130 <primary>Protection Server</primary>
2132 <secondary>starting</secondary>
2134 <tertiary>first AFS machine</tertiary>
2138 <primary>ptserver process</primary>
2140 <see>Protection Server</see>
2144 <primary>starting</primary>
2146 <secondary>Protection Server</secondary>
2148 <tertiary>first AFS machine</tertiary>
2152 <primary>first AFS machine</primary>
2154 <secondary>Protection Server</secondary>
2158 <primary>VL Server (vlserver process)</primary>
2160 <secondary>starting</secondary>
2162 <tertiary>first AFS machine</tertiary>
2166 <primary>Volume Location Server</primary>
2168 <see>VL Server</see>
2172 <primary>starting</primary>
2174 <secondary>VL Server</secondary>
2176 <tertiary>first AFS machine</tertiary>
2180 <primary>first AFS machine</primary>
2182 <secondary>VL Server</secondary>
2186 <primary>usr/afs/local/BosConfig</primary>
2188 <see>BosConfig file</see>
2192 <primary>BosConfig file</primary>
2194 <secondary>adding entries</secondary>
2196 <tertiary>first AFS machine</tertiary>
2200 <primary>adding</primary>
2202 <secondary>entries to BosConfig file</secondary>
2204 <tertiary>first AFS machine</tertiary>
2208 <primary>files</primary>
2210 <secondary>BosConfig</secondary>
2214 <primary>initializing</primary>
2216 <secondary>server process</secondary>
2222 <primary>server process</primary>
2224 <secondary>see also entry for each server's name</secondary>
2228 <sect1 id="HDRWQ52">
2229 <title>Starting the Database Server Processes</title>
2231 <para>Next use the <emphasis role="bold">bos create</emphasis> command to create entries for the three database server processes
2232 in the <emphasis role="bold">/usr/afs/local/BosConfig</emphasis> file and start them running. The three processes run on database
2233 server machines only: <itemizedlist>
2236 <para>The Backup Server (the <emphasis role="bold">buserver</emphasis> process) maintains the Backup Database</para>
2240 <para>The Protection Server (the <emphasis role="bold">ptserver</emphasis> process) maintains the Protection
2245 <para>The Volume Location (VL) Server (the <emphasis role="bold">vlserver</emphasis> process) maintains the Volume
2246 Location Database (VLDB)</para>
2248 </itemizedlist></para>
2251 <primary>Kerberos</primary>
2255 <para>AFS ships with an additional database server named 'kaserver', which
2256 was historically used to provide authentication services to AFS cells.
2257 kaserver was based on <emphasis>Kerberos v4</emphasis>, as such, it is
2258 not recommended for new cells. This guide assumes you have already
2259 configured a Kerberos v5 realm for your site, and details the procedures
2260 required to use AFS with this realm. If you do wish to use
2261 <emphasis role="bold">kaserver</emphasis>, please see the modifications
2262 to these instructions detailed in
2263 <link linkend="KAS006">Starting the kaserver Database Server Process</link>
2267 <para>The remaining instructions in this chapter include the <emphasis role="bold">-cell</emphasis> argument on all applicable
2268 commands. Provide the cell name you assigned in <link linkend="HDRWQ51">Defining Cell Name and Membership for Server
2269 Processes</link>. If a command appears on multiple lines, it is only for legibility. <indexterm>
2270 <primary>commands</primary>
2272 <secondary>bos create</secondary>
2273 </indexterm> <indexterm>
2274 <primary>bos commands</primary>
2276 <secondary>create</secondary>
2277 </indexterm> <orderedlist>
2279 <para>Issue the <emphasis role="bold">bos create</emphasis> command to start the Backup Server. <programlisting>
2280 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">buserver simple /usr/afs/bin/buserver</emphasis> <emphasis role="bold">-noauth</emphasis>
2281 </programlisting></para>
2285 <para>Issue the <emphasis role="bold">bos create</emphasis> command to start the Protection Server. <programlisting>
2286 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">ptserver simple /usr/afs/bin/ptserver</emphasis> <emphasis role="bold">-noauth</emphasis>
2287 </programlisting></para>
2291 <para>Issue the <emphasis role="bold">bos create</emphasis> command to start the VL Server. <programlisting>
2292 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">vlserver simple /usr/afs/bin/vlserver</emphasis> <emphasis role="bold">-noauth</emphasis>
2293 </programlisting></para>
2295 </orderedlist></para>
2298 <primary>admin account</primary>
2300 <secondary>creating</secondary>
2304 <primary>afs entry in Kerberos Database</primary>
2308 <primary>Kerberos Database</primary>
2312 <primary>creating</primary>
2314 <secondary>afs entry in Kerberos Database</secondary>
2318 <primary>creating</primary>
2320 <secondary>admin account in Kerberos Database</secondary>
2324 <primary>security</primary>
2326 <secondary>initializing cell-wide</secondary>
2330 <primary>cell</primary>
2332 <secondary>initializing security mechanisms</secondary>
2336 <primary>initializing</primary>
2338 <secondary>cell security mechanisms</secondary>
2342 <primary>usr/afs/etc/KeyFile</primary>
2344 <see>KeyFile file</see>
2348 <primary>KeyFile file</primary>
2350 <secondary>first AFS machine</secondary>
2354 <primary>files</primary>
2356 <secondary>KeyFile</secondary>
2360 <primary>key</primary>
2362 <see>server encryption key</see>
2366 <primary>encryption key</primary>
2368 <see>server encryption key</see>
2372 <sect1 id="HDRWQ53">
2373 <title>Initializing Cell Security </title>
2375 <para>If you are working with an existing cell which uses
2376 <emphasis role="bold">kaserver</emphasis> or Kerberos v4 for authentication,
2378 <link linkend="HDRWQ53">Initializing Cell Security with kaserver</link>
2379 for installation instructions which replace this section.</para>
2381 <para>Now initialize the cell's security mechanisms. Begin by creating the following two entires in your site's Kerberos database: <itemizedlist>
2383 <para>A generic administrative account, called <emphasis role="bold">admin</emphasis> by convention. If you choose to
2384 assign a different name, substitute it throughout the remainder of this document.</para>
2386 <para>After you complete the installation of the first machine, you can continue to have all administrators use the
2387 <emphasis role="bold">admin</emphasis> account, or you can create a separate administrative account for each of them. The
2388 latter scheme implies somewhat more overhead, but provides a more informative audit trail for administrative
2393 <para>The entry for AFS server processes, called either
2394 <emphasis role="bold">afs</emphasis> or
2395 <emphasis role="bold">afs/<replaceable>cell</replaceable></emphasis>.
2396 The latter form is preferred since it works regardless of whether
2397 your cell name matches your Kerberos realm name and allows multiple
2398 AFS cells to be served from a single Kerberos realm.
2399 No user logs in under this identity, but it is used to encrypt the
2400 server tickets that granted to AFS clients for presentation to
2401 server processes during mutual authentication. (The
2402 chapter in the <emphasis>OpenAFS Administration Guide</emphasis> about cell configuration and administration describes the
2403 role of server encryption keys in mutual authentication.)</para>
2405 <para>In Step <link linkend="LIWQ58">7</link>, you also place the initial AFS server encryption key into the <emphasis
2406 role="bold">/usr/afs/etc/KeyFile</emphasis> file. The AFS server processes refer to this file to learn the server
2407 encryption key when they need to decrypt server tickets.</para>
2409 </itemizedlist></para>
2411 <para>You also issue several commands that enable the new <emphasis role="bold">admin</emphasis> user to issue privileged
2412 commands in all of the AFS suites.</para>
2414 <para>The following instructions do not configure all of the security mechanisms related to the AFS Backup System. See the
2415 chapter in the <emphasis>OpenAFS Administration Guide</emphasis> about configuring the Backup System.</para>
2417 <para>The examples below assume you are using MIT Kerberos. Please refer
2418 to the documentation for your KDC's administrative interface if you are
2419 using a different vendor</para>
2423 <para>Enter <emphasis role="bold">kadmin</emphasis> interactive mode.
2425 # <emphasis role="bold">kadmin</emphasis>
2426 Authenticating as principal <replaceable>you</replaceable>/admin@<replaceable>YOUR REALM</replaceable> with password
2427 Password for <replaceable>you/admin@REALM</replaceable>: <replaceable>your_password</replaceable>
2428 </programlisting> <indexterm>
2429 <primary>server encryption key</primary>
2431 <secondary>in Kerberos Database</secondary>
2432 </indexterm> <indexterm>
2433 <primary>creating</primary>
2435 <secondary>server encryption key</secondary>
2437 <tertiary>Kerberos Database</tertiary>
2441 <listitem id="LIWQ54">
2443 <emphasis role="bold">add_principal</emphasis> command to create
2444 Kerberos Database entries called
2445 <emphasis role="bold">admin</emphasis> and
2446 <emphasis role="bold">afs/<<replaceable>cell name</replaceable>></emphasis>.</para>
2448 <para>You should make the <replaceable>admin_passwd</replaceable> as
2449 long and complex as possible, but keep in mind that administrators
2450 need to enter it often. It must be at least six characters long.</para>
2451 <para>Note that when creating the
2452 <emphasis role="bold">afs/<<replaceable>cell name</replaceable>></emphasis>
2453 entry, the encryption types should be restricted to des-cbc-crc:v4.
2454 For more details regarding encryption types, see the documentation
2455 for your Kerberos installation.
2458 kadmin: <emphasis role="bold">add_principal -randkey -e des-cbc-crc:v4 afs/</emphasis><<replaceable>cell name</replaceable>>
2459 Principal "afs/<replaceable>cell name</replaceable>@<replaceable>REALM</replaceable>" created.
2460 kadmin: <emphasis role="bold">add_principal admin</emphasis>
2461 Enter password for principal "admin@<replaceable>REALM</replaceable>": <emphasis role="bold"><replaceable>admin_password</replaceable></emphasis>
2462 Principal "admin@<replaceable>REALM</replaceable>" created.
2467 <primary>commands</primary>
2469 <secondary>kas examine</secondary>
2473 <primary>kas commands</primary>
2475 <secondary>examine</secondary>
2479 <primary>displaying</primary>
2481 <secondary>server encryption key</secondary>
2483 <tertiary>Authentication Database</tertiary>
2487 <listitem id="LIWQ55">
2488 <para>Issue the <emphasis role="bold">kadmin
2489 get_principal</emphasis> command to display the <emphasis
2490 role="bold">afs/</emphasis><<replaceable>cell name</replaceable>> entry.
2492 kadmin: <emphasis role="bold">get_principal afs/<<replaceable>cell name</replaceable>></emphasis>
2493 Principal: afs/<replaceable>cell</replaceable>
2495 Key: vno 2, DES cbc mode with CRC-32, no salt
2501 <para>Extract the newly created key for <emphasis role="bold">afs/<replaceable>cell</replaceable></emphasis> to a keytab on the local machine. We will use <emphasis role="bold">/etc/afs.keytab</emphasis> as the location for this keytab.</para>
2503 <para>The keytab contains the key material that ensures the security of your AFS cell. You should ensure that it is kept in a secure location at all times.</para>
2506 kadmin: <emphasis role="bold">ktadd -k /etc/afs.keytab -e des-cbc-crc:v4 afs/<<replaceable>cell name</replaceable>></emphasis>
2507 Entry for principal afs/<<replaceable>cell name</replaceable>> with kvno 3, encryption type DES cbc mode with CRC-32 added to keytab WRFILE:/etc/afs.keytab
2509 <para>Make a note of the key version number (kvno) given in the
2510 response, as you will need it to load the key into bos in a later
2513 <note><para>Note that each time you run
2514 <emphasis role="bold">ktadd</emphasis> a new key is generated
2515 for the item being extracted. This means that you cannot run ktadd
2516 multiple times and end up with the same key material each time.
2521 <para>Issue the <emphasis role="bold">quit</emphasis> command to leave <emphasis role="bold">kadmin</emphasis>
2522 interactive mode. <programlisting>
2523 kadmin: <emphasis role="bold">quit</emphasis>
2524 </programlisting> <indexterm>
2525 <primary>commands</primary>
2527 <secondary>bos adduser</secondary>
2528 </indexterm> <indexterm>
2529 <primary>bos commands</primary>
2531 <secondary>adduser</secondary>
2532 </indexterm> <indexterm>
2533 <primary>usr/afs/etc/UserList</primary>
2535 <see>UserList file</see>
2536 </indexterm> <indexterm>
2537 <primary>UserList file</primary>
2539 <secondary>first AFS machine</secondary>
2540 </indexterm> <indexterm>
2541 <primary>files</primary>
2543 <secondary>UserList</secondary>
2544 </indexterm> <indexterm>
2545 <primary>creating</primary>
2547 <secondary>UserList file entry</secondary>
2548 </indexterm> <indexterm>
2549 <primary>admin account</primary>
2551 <secondary>adding</secondary>
2553 <tertiary>to UserList file</tertiary>
2557 <listitem id="LIWQ57">
2558 <para>Issue the <emphasis role="bold">bos adduser</emphasis> command to add the <emphasis
2559 role="bold">admin</emphasis> user to the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. This enables the
2560 <emphasis role="bold">admin</emphasis> user to issue privileged <emphasis role="bold">bos</emphasis> and <emphasis
2561 role="bold">vos</emphasis> commands. <programlisting>
2562 # <emphasis role="bold">./bos adduser</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">admin -noauth</emphasis>
2565 <primary>commands</primary>
2566 <secondary>asetkey</secondary>
2569 <primary>creating</primary>
2570 <secondary>server encryption key</secondary>
2571 <tertiary>KeyFile file</tertiary>
2574 <primary>server encryption key</primary>
2575 <secondary>in KeyFile file</secondary>
2579 <listitem id="LIWQ58">
2581 <emphasis role="bold">asetkey</emphasis> command to set the AFS
2582 server encryption key in the
2583 <emphasis role="bold">/usr/afs/etc/KeyFile</emphasis> file. This key
2584 is created from the <emphasis role="bold">/etc/afs.keytab</emphasis>
2585 file created earlier.</para>
2587 <para>asetkey requires the key version number (or kvno) of the
2588 <emphasis role="bold">afs/</emphasis><replaceable>cell</replaceable>
2589 key. You should have made note of the kvno when creating the key
2590 earlier. The key version number can also be found by running the
2591 <emphasis role="bold">kvno</emphasis> command</para>
2593 # <emphasis role="bold">kvno -k /etc/afs.keytab afs/</emphasis><<replaceable>cell name</replaceable>>
2596 <para>Once the kvno is known, the key can then be extracted using
2599 # <emphasis role="bold">asetkey add</emphasis> <<replaceable>kvno</replaceable>> <emphasis role="bold">/etc/afs.keytab afs/</emphasis><<replaceable>cell name</replaceable>>
2603 <primary>commands</primary>
2604 <secondary>bos listkeys</secondary>
2608 <primary>bos commands</primary>
2609 <secondary>listkeys</secondary>
2613 <primary>displaying</primary>
2614 <secondary>server encryption key</secondary>
2615 <tertiary>KeyFile file</tertiary>
2619 <listitem id="LIWQ59">
2621 <emphasis role="bold">bos listkeys</emphasis> command to verify that
2622 the key version number for the new key in the
2623 <emphasis role="bold">KeyFile</emphasis> file is the same as the key
2624 version number in the Authentication Database's
2625 <emphasis role="bold">afs/<replaceable>cell name</replaceable></emphasis>
2626 entry, which you displayed in Step <link linkend="LIWQ55">3</link>.
2628 # <emphasis role="bold">./bos listkeys</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">-noauth</emphasis>
2629 key 0 has cksum <replaceable>checksum</replaceable>
2630 </programlisting></para>
2632 <para>You can safely ignore any error messages indicating that <emphasis role="bold">bos</emphasis> failed to get tickets
2633 or that authentication failed.</para>
2637 <sect1 id="HDRWQ53a">
2638 <title>Initializing the Protection Database</title>
2640 <para>Now continue to configure your cell's security systems by
2641 populating the Protection Database with the newly created
2642 <emphasis role="bold">admin</emphasis> user, and permitting it
2643 to issue priviledged commands on the AFS filesystem.</para>
2648 <primary>commands</primary>
2649 <secondary>pts createuser</secondary>
2653 <primary>pts commands</primary>
2654 <secondary>createuser</secondary>
2658 <primary>Protection Database</primary>
2660 <para>Issue the <emphasis role="bold">pts createuser</emphasis> command to create a Protection Database entry for the
2661 <emphasis role="bold">admin</emphasis> user.</para>
2663 <para>By default, the Protection Server assigns AFS UID 1 (one) to the <emphasis role="bold">admin</emphasis> user,
2664 because it is the first user entry you are creating. If the local password file (<emphasis
2665 role="bold">/etc/passwd</emphasis> or equivalent) already has an entry for <emphasis role="bold">admin</emphasis> that
2666 assigns it a UNIX UID other than 1, it is best to use the <emphasis role="bold">-id</emphasis> argument to the <emphasis
2667 role="bold">pts createuser</emphasis> command to make the new AFS UID match the existing UNIX UID. Otherwise, it is best
2668 to accept the default.</para>
2671 # <emphasis role="bold">pts createuser -name admin</emphasis> [<emphasis
2672 role="bold">-id</emphasis> <<replaceable>AFS UID</replaceable>>] <emphasis role="bold">-noauth</emphasis>
2673 User admin has id <replaceable>AFS UID</replaceable>
2677 <primary>commands</primary>
2678 <secondary>pts adduser</secondary>
2682 <primary>pts commands</primary>
2683 <secondary>adduser</secondary>
2687 <primary>system:administrators group</primary>
2691 <primary>admin account</primary>
2692 <secondary>adding</secondary>
2693 <tertiary>to system:administrators group</tertiary>
2698 <para>Issue the <emphasis role="bold">pts adduser</emphasis> command to make the <emphasis role="bold">admin</emphasis>
2699 user a member of the <emphasis role="bold">system:administrators</emphasis> group, and the <emphasis role="bold">pts
2700 membership</emphasis> command to verify the new membership. Membership in the group enables the <emphasis
2701 role="bold">admin</emphasis> user to issue privileged <emphasis role="bold">pts</emphasis> commands and some privileged
2702 <emphasis role="bold">fs</emphasis> commands. <programlisting>
2703 # <emphasis role="bold">./pts adduser admin system:administrators</emphasis> <emphasis role="bold">-noauth</emphasis>
2704 # <emphasis role="bold">./pts membership admin</emphasis> <emphasis role="bold">-noauth</emphasis>
2705 Groups admin (id: 1) is a member of:
2706 system:administrators
2707 </programlisting> <indexterm>
2708 <primary>commands</primary>
2709 <secondary>bos restart</secondary>
2710 <tertiary>on first AFS machine</tertiary>
2711 </indexterm> <indexterm>
2712 <primary>bos commands</primary>
2713 <secondary>restart</secondary>
2714 <tertiary>on first AFS machine</tertiary>
2715 </indexterm> <indexterm>
2716 <primary>restarting server process</primary>
2717 <secondary>on first AFS machine</secondary>
2718 </indexterm> <indexterm>
2719 <primary>server process</primary>
2720 <secondary>restarting</secondary>
2721 <tertiary>on first AFS machine</tertiary>
2726 <para>Issue the <emphasis role="bold">bos restart</emphasis> command with the <emphasis role="bold">-all</emphasis> flag
2727 to restart the database server processes, so that they start using the new server encryption key. <programlisting>
2728 # <emphasis role="bold">./bos restart</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">-all</emphasis>
2729 <emphasis role="bold">-noauth</emphasis>
2730 </programlisting></para>
2735 <primary>File Server</primary>
2737 <secondary>first AFS machine</secondary>
2741 <primary>fileserver process</primary>
2743 <see>File Server</see>
2747 <primary>starting</primary>
2749 <secondary>File Server</secondary>
2751 <tertiary>first AFS machine</tertiary>
2755 <primary>first AFS machine</primary>
2757 <secondary>File Server, fs process</secondary>
2761 <primary>Volume Server</primary>
2763 <secondary>first AFS machine</secondary>
2767 <primary>volserver process</primary>
2769 <see>Volume Server</see>
2773 <primary>starting</primary>
2775 <secondary>Volume Server</secondary>
2777 <tertiary>first AFS machine</tertiary>
2781 <primary>first AFS machine</primary>
2783 <secondary>Volume Server</secondary>
2787 <primary>Salvager (salvager process)</primary>
2789 <secondary>first AFS machine</secondary>
2793 <primary>fs process</primary>
2795 <secondary>first AFS machine</secondary>
2799 <primary>starting</primary>
2801 <secondary>fs process</secondary>
2803 <tertiary>first AFS machine</tertiary>
2807 <primary>first AFS machine</primary>
2809 <secondary>Salvager</secondary>
2813 <sect1 id="HDRWQ60">
2814 <title>Starting the File Server processes</title>
2816 <para>Start either the <emphasis role="bold">fs</emphasis> process or, if you want to run the Demand-Attach File Server, the
2817 <emphasis role="bold">dafs</emphasis> process. The <emphasis role="bold">fs</emphasis> process consists of the File Server,
2818 Volume Server, and Salvager (<emphasis role="bold">fileserver</emphasis>, <emphasis role="bold">volserver</emphasis> and
2819 <emphasis role="bold">salvager</emphasis> processes). The <emphasis role="bold">dafs</emphasis> process consists of the
2820 Demand-Attach File Server, Volume Server, Salvage Server, and Salvager (<emphasis role="bold">dafileserver</emphasis>,
2821 <emphasis role="bold"> davolserver</emphasis>, <emphasis role="bold">salvageserver</emphasis>, and <emphasis
2822 role="bold">dasalvager</emphasis> processes). For information about the Demand-Attach File Server and to see whether or not
2823 you should run it, see <link linkend="DAFS">Appendix C, The Demand-Attach File Server</link>.
2826 <para>Issue the <emphasis role="bold">bos create</emphasis> command to start the <emphasis role="bold">fs</emphasis>
2827 process or the <emphasis role="bold">dafs</emphasis> process. The commands appear here on multiple lines only for legibility.
2831 <para>If you are not planning on running the Demand-Attach File Server, create the <emphasis role="bold">fs</emphasis>
2834 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">fs fs /usr/afs/bin/fileserver</emphasis> \
2835 <emphasis role="bold">/usr/afs/bin/volserver /usr/afs/bin/salvager</emphasis> \
2836 <emphasis role="bold">-noauth</emphasis>
2837 </programlisting></para>
2840 <para>If you are planning on running the Demand-Attach File Server, create the <emphasis
2841 role="bold">dafs</emphasis> process:
2843 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">dafs dafs /usr/afs/bin/dafileserver</emphasis> \
2844 <emphasis role="bold">/usr/afs/bin/davolserver /usr/afs/bin/salvageserver</emphasis> \
2845 <emphasis role="bold">/usr/afs/bin/dasalvager</emphasis> <emphasis role="bold">-noauth</emphasis>
2846 </programlisting></para>
2851 <para>Sometimes a message about Volume Location Database (VLDB) initialization appears, along with one or more instances
2852 of an error message similar to the following:</para>
2855 FSYNC_clientInit temporary failure (will retry)
2858 <para>This message appears when the <emphasis role="bold">volserver</emphasis> process tries to start before the <emphasis
2859 role="bold">fileserver</emphasis> process has completed its initialization. Wait a few minutes after the last such message
2860 before continuing, to guarantee that both processes have started successfully. <indexterm>
2861 <primary>commands</primary>
2863 <secondary>bos status</secondary>
2864 </indexterm> <indexterm>
2865 <primary>bos commands</primary>
2867 <secondary>status</secondary>
2870 <para>You can verify that the <emphasis role="bold">fs</emphasis> or <emphasis role="bold">dafs</emphasis> process has started
2871 successfully by issuing the <emphasis role="bold">bos status</emphasis> command. Its output mentions two <computeroutput>proc
2872 starts</computeroutput>.</para>
2876 <para>If you are not running the Demand-Attach File Server:
2879 # <emphasis role="bold">./bos status</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">fs -long -noauth</emphasis>
2880 </programlisting></para></listitem>
2883 <para>If you are running the Demand-Attach File Server:
2885 # <emphasis role="bold">./bos status</emphasis> <<replaceable>machine name</replaceable>> <emphasis role="bold">dafs -long -noauth</emphasis>
2886 </programlisting></para></listitem>
2892 <para>Your next action depends on whether you have ever run AFS file server machines in the cell: <itemizedlist>
2894 <primary>commands</primary>
2896 <secondary>vos create</secondary>
2898 <tertiary>root.afs volume</tertiary>
2902 <primary>vos commands</primary>
2904 <secondary>create</secondary>
2906 <tertiary>root.afs volume</tertiary>
2910 <primary>root.afs volume</primary>
2912 <secondary>creating</secondary>
2916 <primary>volume</primary>
2918 <secondary>creating</secondary>
2920 <tertiary>root.afs</tertiary>
2924 <primary>creating</primary>
2926 <secondary>root.afs volume</secondary>
2930 <para>If you are installing the first AFS server machine ever in the cell (that is, you are not upgrading the AFS
2931 software from a previous version), create the first AFS volume, <emphasis role="bold">root.afs</emphasis>.</para>
2933 <para>For the <replaceable>partition name</replaceable> argument, substitute the name of one of the machine's AFS
2934 server partitions (such as <emphasis role="bold">/vicepa</emphasis>).</para>
2937 # <emphasis role="bold">./vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <emphasis
2938 role="bold">root.afs</emphasis> \
2939 <emphasis role="bold">-noauth</emphasis>
2942 <para>The Volume Server produces a message confirming that it created the volume on the specified partition. You can
2943 ignore error messages indicating that tokens are missing, or that authentication failed. <indexterm>
2944 <primary>commands</primary>
2946 <secondary>vos syncvldb</secondary>
2947 </indexterm> <indexterm>
2948 <primary>vos commands</primary>
2950 <secondary>syncvldb</secondary>
2951 </indexterm> <indexterm>
2952 <primary>commands</primary>
2954 <secondary>vos syncserv</secondary>
2955 </indexterm> <indexterm>
2956 <primary>vos commands</primary>
2958 <secondary>syncserv</secondary>
2963 <para>If there are existing AFS file server machines and volumes in the cell, issue the <emphasis role="bold">vos
2964 syncvldb</emphasis> and <emphasis role="bold">vos syncserv</emphasis> commands to synchronize the VLDB with the
2965 actual state of volumes on the local machine. To follow the progress of the synchronization operation, which can
2966 take several minutes, use the <emphasis role="bold">-verbose</emphasis> flag. <programlisting>
2967 # <emphasis role="bold">./vos syncvldb</emphasis> <<replaceable>machine name</replaceable>> <emphasis
2968 role="bold">-verbose -noauth</emphasis>
2969 # <emphasis role="bold">./vos syncserv</emphasis> <<replaceable>machine name</replaceable>> <emphasis
2970 role="bold">-verbose -noauth</emphasis>
2971 </programlisting></para>
2973 <para>You can ignore error messages indicating that tokens are missing, or that authentication failed.</para>
2975 </itemizedlist></para>
2977 </orderedlist></para>
2980 <primary>Update Server</primary>
2982 <secondary>starting server portion</secondary>
2984 <tertiary>first AFS machine</tertiary>
2988 <primary>upserver process</primary>
2990 <see>Update Server</see>
2994 <primary>starting</primary>
2996 <secondary>Update Server server portion</secondary>
2998 <tertiary>first AFS machine</tertiary>
3002 <primary>first AFS machine</primary>
3004 <secondary>Update Server server portion</secondary>
3008 <primary>first AFS machine</primary>
3010 <secondary>defining</secondary>
3012 <tertiary>as binary distribution machine</tertiary>
3016 <primary>first AFS machine</primary>
3018 <secondary>defining</secondary>
3020 <tertiary>as system control machine</tertiary>
3024 <primary>system control machine</primary>
3028 <primary>binary distribution machine</primary>
3032 <sect1 id="HDRWQ61">
3033 <title>Starting the Server Portion of the Update Server</title>
3035 <para>Start the server portion of the Update Server (the <emphasis role="bold">upserver</emphasis> process), to distribute the
3036 contents of directories on this machine to other server machines in the cell. It becomes active when you configure the client
3037 portion of the Update Server on additional server machines.</para>
3039 <para>Distributing the contents of its <emphasis role="bold">/usr/afs/etc</emphasis> directory makes this machine the cell's
3040 <emphasis>system control machine</emphasis>. The other server machines in the cell run the <emphasis
3041 role="bold">upclientetc</emphasis> process (an instance of the client portion of the Update Server) to retrieve the
3042 configuration files. Use the <emphasis role="bold">-crypt</emphasis> argument to the <emphasis role="bold">upserver</emphasis>
3043 initialization command to specify that the Update Server distributes the contents of the <emphasis
3044 role="bold">/usr/afs/etc</emphasis> directory only in encrypted form, as shown in the following instruction. Several of the
3045 files in the directory, particularly the <emphasis role="bold">KeyFile</emphasis> file, are crucial to cell security and so must
3046 never cross the network unencrypted.</para>
3048 <para>(You can choose not to configure a system control machine, in which case you must update the configuration files in each
3049 server machine's <emphasis role="bold">/usr/afs/etc</emphasis> directory individually. The <emphasis role="bold">bos</emphasis>
3050 commands used for this purpose also encrypt data before sending it across the network.)</para>
3052 <para>Distributing the contents of its <emphasis role="bold">/usr/afs/bin</emphasis> directory to other server machines of its
3053 system type makes this machine a <emphasis>binary distribution machine</emphasis>. The other server machines of its system type
3054 run the <emphasis role="bold">upclientbin</emphasis> process (an instance of the client portion of the Update Server) to
3055 retrieve the binaries. If your platform has a package management system,
3056 such as 'rpm' or 'apt', running the Update Server to distribute binaries
3057 may interfere with this system.</para>
3059 <para>The binaries in the <emphasis role="bold">/usr/afs/bin</emphasis> directory are not sensitive, so it is not necessary to
3060 encrypt them before transfer across the network. Include the <emphasis role="bold">-clear</emphasis> argument to the <emphasis
3061 role="bold">upserver</emphasis> initialization command to specify that the Update Server distributes the contents of the
3062 <emphasis role="bold">/usr/afs/bin</emphasis> directory in unencrypted form unless an <emphasis
3063 role="bold">upclientbin</emphasis> process requests encrypted transfer.</para>
3065 <para>Note that the server and client portions of the Update Server always mutually authenticate with one another, regardless of
3066 whether you use the <emphasis role="bold">-clear</emphasis> or <emphasis role="bold">-crypt</emphasis> arguments. This protects
3067 their communications from eavesdropping to some degree.</para>
3069 <para>For more information on the <emphasis role="bold">upclient</emphasis> and <emphasis role="bold">upserver</emphasis>
3070 processes, see their reference pages in the <emphasis>OpenAFS Administration Reference</emphasis>. The commands appear on
3071 multiple lines here only for legibility. <orderedlist>
3073 <para>Issue the <emphasis role="bold">bos create</emphasis> command to start the <emphasis role="bold">upserver</emphasis>
3074 process. <programlisting>
3075 # <emphasis role="bold">./bos create</emphasis> <<replaceable>machine name></replaceable> <emphasis role="bold">upserver simple</emphasis> \
3076 <emphasis role="bold">"/usr/afs/bin/upserver -crypt /usr/afs/etc</emphasis> \
3077 <emphasis role="bold">-clear /usr/afs/bin"</emphasis> <emphasis role="bold">-noauth</emphasis>
3078 </programlisting></para>
3080 </orderedlist></para>
3083 <sect1 id="HDRWQ62">
3084 <title>Clock Sync Considerations</title>
3086 <para>Keeping the clocks on all server and client machines in your cell synchronized is crucial to several functions, and in
3087 particular to the correct operation of AFS's distributed database technology, Ubik. The chapter in the <emphasis>OpenAFS
3088 Administration Guide</emphasis> about administering server machines explains how time skew can disturb Ubik's performance and
3089 cause service outages in your cell.</para>
3091 <para>You should install and configure your time service independently of
3092 AFS. Your Kerberos realm will also require a reliable time source, so your site
3093 may already have one available.</para>
3096 <primary>overview</primary>
3098 <secondary>installing client functionality on first machine</secondary>
3102 <primary>first AFS machine</primary>
3104 <secondary>client functionality</secondary>
3106 <tertiary>installing</tertiary>
3110 <primary>installing</primary>
3112 <secondary>client functionality</secondary>
3114 <tertiary>first AFS machine</tertiary>
3118 <sect1 id="HDRWQ63">
3119 <title>Overview: Installing Client Functionality</title>
3121 <para>The machine you are installing is now an AFS file server machine,
3122 database server machine, system control machine, and binary distribution
3123 machine. Now make it a client machine by completing the following tasks:
3126 <para>Define the machine's cell membership for client processes</para>
3130 <para>Create the client version of the <emphasis role="bold">CellServDB</emphasis> file</para>
3134 <para>Define cache location and size</para>
3138 <para>Create the <emphasis role="bold">/afs</emphasis> directory and start the Cache Manager</para>
3140 </orderedlist></para>
3143 <primary>Distribution</primary>
3145 <secondary>copying client files from</secondary>
3147 <tertiary>first AFS machine</tertiary>
3151 <primary>first AFS machine</primary>
3153 <secondary>copying</secondary>
3155 <tertiary>client files to local disk</tertiary>
3159 <primary>copying</primary>
3161 <secondary>client files to local disk</secondary>
3163 <tertiary>first AFS machine</tertiary>
3167 <sect1 id="HDRWQ64">
3168 <title>Copying Client Files to the Local Disk</title>
3170 <para>You need only undertake the steps in this section, if you are using
3171 a tar file distribution, or one built from scratch. Packaged distributions,
3172 such as RPMs or DEBs will already have installed the necessary files in
3173 the correct locations.</para>
3175 <para>Before installing and configuring the AFS client, copy the necessary files from the tarball to the local <emphasis
3176 role="bold">/usr/vice/etc</emphasis> directory. <orderedlist>
3178 <para>If you have not already done so, unpack the distribution
3179 tarball for this machine's system type into a suitable location on
3180 the filesystem, such as <emphasis role="bold">/tmp/afsdist</emphasis>.
3181 If you use a different location, substitue that in the examples that
3186 <para>Copy files to the local <emphasis role="bold">/usr/vice/etc</emphasis> directory.</para>
3188 <para>This step places a copy of the AFS initialization script (and related files, if applicable) into the <emphasis
3189 role="bold">/usr/vice/etc</emphasis> directory. In the preceding instructions for incorporating AFS into the kernel, you
3190 copied the script directly to the operating system's conventional location for initialization files. When you incorporate
3191 AFS into the machine's startup sequence in a later step, you can choose to link the two files.</para>
3193 <para>On some system types that use a dynamic kernel loader program, you previously copied AFS library files into a
3194 subdirectory of the <emphasis role="bold">/usr/vice/etc</emphasis> directory. On other system types, you copied the
3195 appropriate AFS library file directly to the directory where the operating system accesses it. The following commands do
3196 not copy or recopy the AFS library files into the <emphasis role="bold">/usr/vice/etc</emphasis> directory, because on
3197 some system types the library files consume a large amount of space. If you want to copy them, add the <emphasis
3198 role="bold">-r</emphasis> flag to the first <emphasis role="bold">cp</emphasis> command and skip the second <emphasis
3199 role="bold">cp</emphasis> command.</para>
3202 # <emphasis role="bold">cd /tmp/afsdist/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis>
3203 # <emphasis role="bold">cp -p * /usr/vice/etc</emphasis>
3204 # <emphasis role="bold">cp -rp C /usr/vice/etc</emphasis>
3207 </orderedlist></para>
3210 <primary>cell name</primary>
3212 <secondary>setting in client ThisCell file</secondary>
3214 <tertiary>first AFS machine</tertiary>
3218 <primary>setting</primary>
3220 <secondary>cell name in client ThisCell file</secondary>
3222 <tertiary>first AFS machine</tertiary>
3226 <primary>first AFS machine</primary>
3228 <secondary>ThisCell file (client)</secondary>
3232 <primary>first AFS machine</primary>
3234 <secondary>cell membership, defining</secondary>
3236 <tertiary>for client processes</tertiary>
3240 <primary>usr/vice/etc/ThisCell</primary>
3242 <see>ThisCell file (client)</see>
3246 <primary>ThisCell file (client)</primary>
3248 <secondary>first AFS machine</secondary>
3252 <primary>files</primary>
3254 <secondary>ThisCell (client)</secondary>
3258 <sect1 id="HDRWQ65">
3259 <title>Defining Cell Membership for Client Processes</title>
3261 <para>Every AFS client machine has a copy of the <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> file on its local disk
3262 to define the machine's cell membership for the AFS client programs that run on it. The <emphasis
3263 role="bold">ThisCell</emphasis> file you created in the <emphasis role="bold">/usr/afs/etc</emphasis> directory (in <link
3264 linkend="HDRWQ51">Defining Cell Name and Membership for Server Processes</link>) is used only by server processes.</para>
3266 <para>Among other functions, the <emphasis role="bold">ThisCell</emphasis> file on a client machine determines the following:
3269 <para>The cell in which users gain tokens when they log onto the
3270 machine, assuming it is using an AFS-modified login utility</para>
3274 <para>The cell in which users gain tokens by default when they issue
3275 the <emphasis role="bold">aklog</emphasis> command</para>
3279 <para>The cell membership of the AFS server processes that the AFS
3280 command interpreters on this machine contact by default</para>
3285 <para>Change to the <emphasis role="bold">/usr/vice/etc</emphasis> directory and remove the symbolic link created in <link
3286 linkend="HDRWQ50">Starting the BOS Server</link>. <programlisting>
3287 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
3288 # <emphasis role="bold">rm ThisCell</emphasis>
3289 </programlisting></para>
3293 <para>Create the <emphasis role="bold">ThisCell</emphasis> file as a copy of the <emphasis
3294 role="bold">/usr/afs/etc/ThisCell</emphasis> file. Defining the same local cell for both server and client processes leads
3295 to the most consistent AFS performance. <programlisting>
3296 # <emphasis role="bold">cp /usr/afs/etc/ThisCell ThisCell</emphasis>
3297 </programlisting></para>
3299 </orderedlist></para>
3302 <primary>database server machine</primary>
3304 <secondary>entry in client CellServDB file</secondary>
3306 <tertiary>on first AFS machine</tertiary>
3310 <primary>usr/vice/etc/CellServDB</primary>
3312 <see>CellServDB file (client)</see>
3316 <primary>CellServDB file (client)</primary>
3318 <secondary>creating</secondary>
3320 <tertiary>on first AFS machine</tertiary>