1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter id="HDRWQ133">
3 <title>Installing Additional Client Machines</title>
7 <primary>instructions</primary>
9 <secondary>client machine</secondary>
13 <primary>installing</primary>
15 <secondary>client functionality</secondary>
17 <tertiary>client machine</tertiary>
20 This chapter describes how to install AFS client machines after you have installed the first AFS machine. Some parts of the
21 installation differ depending on whether or not the new client is of the same AFS system type (uses the same AFS binaries) as a
22 previously installed client machine. <indexterm>
23 <primary>overview</primary>
25 <secondary>installing client machine</secondary>
28 <sect1 id="Header_116">
29 <title>Summary of Procedures</title>
33 <para>Incorporate AFS into the machine's kernel</para>
37 <para>Define the machine's cell membership</para>
41 <para>Define cache location and size</para>
45 <para>Create the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file, which determines which foreign cells the
46 client can access in addition to the local cell</para>
50 <para>Create the <emphasis role="bold">/afs</emphasis> directory and start the Cache Manager</para>
54 <para>Create and mount volumes for housing AFS client binaries (necessary only for clients of a new system type)</para>
58 <para>Create a link from the local <emphasis role="bold">/usr/afsws</emphasis> directory to the AFS directory housing the
59 AFS client binaries</para>
63 <para>Modify the machine's authentication system to enable AFS users to obtain tokens at login</para>
68 <primary>Binary Distribution</primary>
70 <secondary>creating /tmp/afsdist directory</secondary>
72 <tertiary>client machine</tertiary>
76 <primary>afsdist directory</primary>
78 <secondary>client machine</secondary>
82 <primary>client machine</primary>
84 <secondary>/tmp/afsdist directory</secondary>
88 <primary>creating</primary>
90 <secondary>/tmp/afsdist directory</secondary>
92 <tertiary>client machine</tertiary>
96 <primary>usr/vice/etc directory</primary>
98 <secondary>client machine</secondary>
102 <primary>client machine</primary>
104 <secondary>/usr/vice/etc directory</secondary>
108 <primary>creating</primary>
110 <secondary>/usr/vice/etc directory</secondary>
112 <tertiary>client machine</tertiary>
116 <sect1 id="HDRWQ134">
117 <title>Creating AFS Directories on the Local Disk</title>
119 <para>If you are not installing from a packaged distribution, create the <emphasis role="bold">/usr/vice/etc</emphasis> directory on the local disk, to house client binaries and
120 configuration files. Subsequent instructions copy files from the OpenAFS binary distribution into them. Create the <emphasis
121 role="bold">/tmp/afsdist</emphasis> directory as a location to uncompress this distribution, if it does not already exist.</para>
124 # <emphasis role="bold">mkdir /usr/vice</emphasis>
125 # <emphasis role="bold">mkdir /usr/vice/etc</emphasis>
126 # <emphasis role="bold">mkdir /tmp/afsdist</emphasis>
130 <sect1 id="HDRWQ135">
131 <title>Performing Platform-Specific Procedures</title>
133 <para>Every AFS client machine's kernel must incorporate AFS modifications. Some system types use a dynamic kernel loader
134 program, whereas on other system types you build AFS modifications into a static kernel. Some system types support both
137 <para>Also modify the machine's authentication system so that users obtain an AFS token as they log into the local file system.
138 Using AFS is simpler and more convenient for your users if you make the modifications on all client machines. Otherwise, users
139 must perform a two or three step login procedure (login to the local system, obtain Kerberos credentials, and then issue the <emphasis role="bold">klog</emphasis>
140 command). For further discussion of AFS authentication, see the chapter in the <emphasis>OpenAFS Administration Guide</emphasis>
141 about cell configuration and administration issues.</para>
143 <para>For convenience, the following sections group the two procedures by system type. Proceed to the appropriate section.
146 <para><link linkend="HDRWQ136">Getting Started on AIX Systems</link></para>
150 <para><link linkend="HDRWQ143">Getting Started on Linux Systems</link></para>
154 <para><link linkend="HDRWQ144">Getting Started on Solaris Systems</link></para>
156 </itemizedlist></para>
159 <primary>incorporating AFS kernel extensions</primary>
161 <secondary>client machine</secondary>
163 <tertiary>AIX</tertiary>
167 <primary>AFS kernel extensions</primary>
169 <secondary>on client machine</secondary>
171 <tertiary>AIX</tertiary>
175 <primary>client machine</primary>
177 <secondary>AFS kernel extensions</secondary>
179 <tertiary>on AIX</tertiary>
183 <primary>AIX</primary>
185 <secondary>AFS kernel extensions</secondary>
187 <tertiary>on client machine</tertiary>
191 <primary>enabling AFS login</primary>
193 <secondary>client machine</secondary>
195 <tertiary>AIX</tertiary>
199 <primary>AFS login</primary>
201 <secondary>on client machine</secondary>
203 <tertiary>AIX</tertiary>
207 <primary>client machine</primary>
209 <secondary>AFS login</secondary>
211 <tertiary>on AIX</tertiary>
215 <primary>AIX</primary>
217 <secondary>AFS login</secondary>
219 <tertiary>on client machine</tertiary>
223 <primary>secondary authentication system (AIX)</primary>
225 <secondary>client machine</secondary>
229 <sect1 id="HDRWQ136">
230 <title>Getting Started on AIX Systems</title>
232 <para>In this section you load AFS into the AIX kernel. Then incorporate AFS modifications into the machine's secondary
233 authentication system, if you wish to enable AFS login.</para>
235 <sect2 id="Header_120">
236 <title>Loading AFS into the AIX Kernel</title>
238 <para>The AIX kernel extension facility is the dynamic kernel loader provided by IBM Corporation. AIX does not support
239 incorporation of AFS modifications during a kernel build.</para>
241 <para>For AFS to function correctly, the kernel extension facility must run each time the machine reboots, so the AFS
242 initialization script (included in the AFS distribution) invokes it automatically. In this section you copy the script to the
243 conventional location and edit it to select the appropriate options depending on whether NFS is also to run.</para>
245 <para>After editing the script, you run it to incorporate AFS into the kernel. In a later section you verify that the script
246 correctly initializes the Cache Manager, then configure the AIX <emphasis role="bold">inittab</emphasis> file so that the
247 script runs automatically at reboot. <orderedlist>
249 <para>Unpack the distribution tarball. The examples below assume
250 that you have unpacked the files into the
251 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
252 pick a different location, substitute this in all of the following
253 examples. Once you have unpacked the distribution,
254 change directory as indicated.
256 # <emphasis role="bold">cd /tmp/afsdist/rs_aix42/dest/root.client/usr/vice/etc</emphasis>
257 </programlisting></para>
260 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/dkload</emphasis> directory,
261 and the AFS initialization script to the <emphasis role="bold">/etc</emphasis> directory. <programlisting>
262 # <emphasis role="bold">cp -rp dkload /usr/vice/etc</emphasis>
263 # <emphasis role="bold">cp -p rc.afs /etc/rc.afs</emphasis>
264 </programlisting></para>
268 <para>Edit the <emphasis role="bold">/etc/rc.afs</emphasis> script, setting the <computeroutput>NFS</computeroutput>
269 variable as indicated.</para>
271 <para>If the machine is not to function as an NFS/AFS Translator, set the <computeroutput>NFS</computeroutput> variable
278 <para>If the machine is to function as an NFS/AFS Translator and is running AIX 4.2.1 or higher, set the
279 <computeroutput>NFS</computeroutput> variable as follows. Note that NFS must already be loaded into the kernel, which
280 happens automatically on systems running AIX 4.1.1 and later, as long as the file <emphasis
281 role="bold">/etc/exports</emphasis> exists.</para>
289 <para>Invoke the <emphasis role="bold">/etc/rc.afs</emphasis> script to load AFS modifications into the kernel. You can
290 ignore any error messages about the inability to start the BOS Server or the Cache Manager or AFS client.
292 # <emphasis role="bold">/etc/rc.afs</emphasis>
293 </programlisting></para>
295 </orderedlist></para>
298 <sect2 id="Header_121">
299 <title>Enabling AFS Login on AIX Systems</title>
301 <para>In modern AFS installations, you should be using Kerberos v5
302 for user login, and obtaining AFS tokens following this authentication
305 <para>There are currently no instructions available on configuring AIX to
306 automatically obtain AFS tokens at login. Following login, users can
307 obtain tokens by running the <emphasis role="bold">aklog</emphasis>
310 <para>Sites which still require <emphasis role="bold">kaserver</emphasis>
311 or external Kerberos v4 authentication should consult
312 <link linkend="KAS012">Enabling kaserver based AFS Login on AIX Systems</link>
313 for details of how to enable AIX login.</para>
317 <para>Proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
322 <primary>incorporating AFS kernel extensions</primary>
324 <secondary>client machine</secondary>
326 <tertiary>Linux</tertiary>
327 </indexterm> <indexterm>
328 <primary>AFS kernel extensions</primary>
330 <secondary>on client machine</secondary>
332 <tertiary>Linux</tertiary>
333 </indexterm> <indexterm>
334 <primary>client machine</primary>
336 <secondary>AFS kernel extensions</secondary>
338 <tertiary>on Linux</tertiary>
339 </indexterm> <indexterm>
340 <primary>Linux</primary>
342 <secondary>AFS kernel extensions</secondary>
344 <tertiary>on client machine</tertiary>
345 </indexterm> <indexterm>
346 <primary>enabling AFS login</primary>
348 <secondary>client machine</secondary>
350 <tertiary>Linux</tertiary>
351 </indexterm> <indexterm>
352 <primary>AFS login</primary>
354 <secondary>on client machine</secondary>
356 <tertiary>Linux</tertiary>
357 </indexterm> <indexterm>
358 <primary>client machine</primary>
360 <secondary>AFS login</secondary>
362 <tertiary>on Linux</tertiary>
363 </indexterm> <indexterm>
364 <primary>Linux</primary>
366 <secondary>AFS login</secondary>
368 <tertiary>on client machine</tertiary>
369 </indexterm> <indexterm>
370 <primary>PAM</primary>
372 <secondary>on Linux</secondary>
374 <tertiary>client machine</tertiary>
380 <sect1 id="HDRWQ143">
381 <title>Getting Started on Linux Systems</title>
383 <para>In this section you load AFS into the Linux kernel. Then incorporate AFS modifications into the machine's Pluggable
384 Authentication Module (PAM) system, if you wish to enable AFS login.</para>
386 <sect2 id="Header_133">
387 <title>Loading AFS into the Linux Kernel</title>
389 <para>The <emphasis role="bold">modprobe</emphasis> program is the dynamic kernel loader for Linux. Linux does not support
390 incorporation of AFS modifications during a kernel build.</para>
392 <para>For AFS to function correctly, the <emphasis role="bold">modprobe</emphasis> program must run each time the machine
393 reboots, so your distributions's AFS initialization script invokes it automatically. The script also includes
394 commands that select the appropriate AFS library file automatically. In this section you run the script.</para>
396 <para>In a later section you also verify that the script correctly initializes the Cache Manager, then activate a
397 configuration variable, which results in the script being incorporated into the Linux startup and shutdown sequence.</para>
399 <para>The procedure for starting up OpenAFS depends upon your distribution</para>
401 <title>Fedora and RedHat Enterprise Linux</title>
402 <para>OpenAFS ships RPMS for all current Fedora and RHEL releases.
405 <para>Download and install the RPM set for your operating system.
406 RPMs are available from the OpenAFS web site. You will need the
407 <emphasis role="bold">openafs</emphasis>, <emphasis role="bold">openafs-server</emphasis>,
408 <emphasis role="bold">openafs-client</emphasis> and
409 <emphasis role="bold">openafs-krb5</emphasis> packages, along
410 with an <emphasis role="bold">kmod-openafs</emphasis> package
411 matching your current, running ,kernel.</para>
413 <para>You can find the version of your current kernel by running
416 <replaceable>2.6.20-1.2933.fc6</replaceable>
417 </programlisting></para>
419 <para>Once downloaded, the packages may be installed with the
420 <emphasis role="bold">rpm</emphasis> command
422 # rpm -U openafs-* openafs-client-* openafs-server-* openafs-krb5-* kmod-openafs-*
423 </programlisting></para>
429 <title>Systems packaged as tar files</title>
430 <para>If you are running a system where the OpenAFS Binary Distribution
431 is provided as a tar file, or where you have built the system from
432 source yourself, you need to install the relevant components by hand
436 <para>Unpack the distribution tarball. The examples below assume
437 that you have unpacked the files into the
438 <emphasis role="bold">/tmp/afsdist</emphasis>directory. If you
439 pick a different location, substitute this in all of the following
440 examples. Once you have unpacked the distribution,
441 change directory as indicated.
443 # <emphasis role="bold">cd /tmp/afsdist/linux/dest/root.client/usr/vice/etc</emphasis>
444 </programlisting></para>
448 <para>Copy the AFS kernel library files to the local <emphasis role="bold">/usr/vice/etc/modload</emphasis> directory.
449 The filenames for the libraries have the format <emphasis
450 role="bold">libafs-</emphasis><replaceable>version</replaceable><emphasis role="bold">.o</emphasis>, where
451 <replaceable>version</replaceable> indicates the kernel build level. The string <emphasis role="bold">.mp</emphasis> in
452 the <replaceable>version</replaceable> indicates that the file is appropriate for machines running a multiprocessor
453 kernel. <programlisting>
454 # <emphasis role="bold">cp -rp modload /usr/vice/etc</emphasis>
455 </programlisting></para>
459 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
460 role="bold">/etc/rc.d/init.d</emphasis> on Linux machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
461 extension as you copy the script. <programlisting>
462 # <emphasis role="bold">cp -p afs.rc /etc/rc.d/init.d/afs</emphasis>
463 </programlisting></para>
468 <para>Run the AFS initialization script to load AFS extensions into the kernel. You can ignore any error messages about
469 the inability to start the BOS Server or the Cache Manager or AFS client. <programlisting>
470 # <emphasis role="bold">/etc/rc.d/init.d/afs start</emphasis>
471 </programlisting></para>
478 <sect2 id="Header_134">
479 <title>Enabling AFS Login on Linux Systems</title>
481 <para>At this point you incorporate AFS into the operating system's Pluggable Authentication Module (PAM) scheme. PAM
482 integrates all authentication mechanisms on the machine, including login, to provide the security infrastructure for
483 authenticated access to and from the machine.</para>
485 <para>At this time, we recommend that new sites requiring AFS credentials
486 to be gained as part of PAM authentication use Russ Alberry's
487 pam_afs_session, rather than utilising the bundled pam_afs2 module.
488 A typical PAM stack should authenticate the user using an external
489 Kerberos V service, and then use the AFS PAM module to obtain AFS
490 credentials in the <computeroutput>session</computeroutput> section</para>
492 <para>If you are at a site which still requires
493 <emphasis role="bold">kaserver</emphasis> or external Kerberos v4 based
494 authentication, please consult
495 <link linkend="KAS015">Enabling kaserver based AFS Login on Linux Systems</link>
496 for further installation instructions.</para>
499 <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
502 <primary>incorporating AFS kernel extensions</primary>
504 <secondary>client machine</secondary>
506 <tertiary>Solaris</tertiary>
510 <primary>AFS kernel extensions</primary>
512 <secondary>on client machine</secondary>
514 <tertiary>Solaris</tertiary>
518 <primary>client machine</primary>
520 <secondary>AFS kernel extensions</secondary>
522 <tertiary>on Solaris</tertiary>
526 <primary>Solaris</primary>
528 <secondary>AFS kernel extensions</secondary>
530 <tertiary>on client machine</tertiary>
534 <primary>enabling AFS login</primary>
536 <secondary>client machine</secondary>
538 <tertiary>Solaris</tertiary>
542 <primary>AFS login</primary>
544 <secondary>on client machine</secondary>
546 <tertiary>Solaris</tertiary>
550 <primary>client machine</primary>
552 <secondary>AFS login</secondary>
554 <tertiary>on Solaris</tertiary>
558 <primary>Solaris</primary>
560 <secondary>AFS login</secondary>
562 <tertiary>on client machine</tertiary>
566 <primary>PAM</primary>
568 <secondary>on Solaris</secondary>
570 <tertiary>client machine</tertiary>
574 <primary>Solaris</primary>
576 <secondary>file systems clean-up script</secondary>
578 <tertiary>on client machine</tertiary>
582 <primary>file systems clean-up script (Solaris)</primary>
584 <secondary>client machine</secondary>
588 <primary>scripts</primary>
590 <secondary>file systems clean-up (Solaris)</secondary>
592 <tertiary>client machine</tertiary>
597 <sect1 id="HDRWQ144">
598 <title>Getting Started on Solaris Systems</title>
600 <para>In this section you load AFS into the Solaris kernel. Then incorporate AFS modifications into the machine's Pluggable
601 Authentication Module (PAM) system, if you wish to enable AFS login.</para>
603 <sect2 id="Header_136">
604 <title>Loading AFS into the Solaris Kernel</title>
606 <para>The <emphasis role="bold">modload</emphasis> program is the dynamic kernel loader provided by Sun Microsystems for
607 Solaris systems. Solaris does not support incorporation of AFS modifications during a kernel build.</para>
609 <para>For AFS to function correctly, the <emphasis role="bold">modload</emphasis> program must run each time the machine
610 reboots, so the AFS initialization script (included on the AFS CD-ROM) invokes it automatically. In this section you copy the
611 appropriate AFS library file to the location where the <emphasis role="bold">modload</emphasis> program accesses it and then
612 run the script.</para>
614 <para>In a later section you verify that the script correctly initializes the Cache Manager, then create the links that
615 incorporate AFS into the Solaris startup and shutdown sequence. <orderedlist>
617 <para>Unpack the OpenAFS Solaris distribution tarball. The examples
618 below assume that you have unpacked the files into the
619 <emphasis role="bold">/tmp/afsdist</emphasis> directory. If you
620 pick a diferent location, substitute this in all of the following
621 exmaples. Once you have unpacked the distribution, change directory
624 # <emphasis role="bold">cd /tmp/afsdist/sun4x_56/dest/root.client/usr/vice/etc</emphasis>
625 </programlisting></para>
629 <para>Copy the AFS initialization script to the local directory for initialization files (by convention, <emphasis
630 role="bold">/etc/init.d</emphasis> on Solaris machines). Note the removal of the <emphasis role="bold">.rc</emphasis>
631 extension as you copy the script. <programlisting>
632 # <emphasis role="bold">cp -p afs.rc /etc/init.d/afs</emphasis>
633 </programlisting></para>
637 <para>Copy the appropriate AFS kernel library file to the local file <emphasis
638 role="bold">/kernel/fs/afs</emphasis>.</para>
640 <para>If the machine is running Solaris 11 on the x86_64 platform:</para>
643 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/drv/amd64/afs</emphasis>
646 <para>If the machine is running Solaris 10 on the x86_64 platform:</para>
649 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/fs/amd64/afs</emphasis>
652 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, its kernel supports NFS server
653 functionality, and the <emphasis role="bold">nfsd</emphasis> process is running:</para>
656 # <emphasis role="bold">cp -p modload/libafs.o /kernel/fs/afs</emphasis>
659 <para>If the machine is running Solaris 2.6 or the 32-bit version of Solaris 7, and its kernel does not support NFS
660 server functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
663 # <emphasis role="bold">cp -p modload/libafs.nonfs.o /kernel/fs/afs</emphasis>
666 <para>If the machine is running the 64-bit version of Solaris 7, its kernel supports NFS server functionality, and the
667 <emphasis role="bold">nfsd</emphasis> process is running:</para>
670 # <emphasis role="bold">cp -p modload/libafs64.o /kernel/fs/sparcv9/afs</emphasis>
673 <para>If the machine is running the 64-bit version of Solaris 7, and its kernel does not support NFS server
674 functionality or the <emphasis role="bold">nfsd</emphasis> process is not running:</para>
677 # <emphasis role="bold">cp -p modload/libafs64.nonfs.o /kernel/fs/sparcv9/afs</emphasis>
682 <para>Run the AFS initialization script to load AFS modifications into the kernel. You can ignore any error messages
683 about the inability to start the BOS Server or the Cache Manager or AFS client. <programlisting>
684 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
685 </programlisting></para>
687 <para>When an entry called <computeroutput>afs</computeroutput> does not already exist in the local <emphasis
688 role="bold">/etc/name_to_sysnum</emphasis> file, the script automatically creates it and reboots the machine to start
689 using the new version of the file. If this happens, log in again as the superuser <emphasis role="bold">root</emphasis>
690 after the reboot and run the initialization script again. This time the required entry exists in the <emphasis
691 role="bold">/etc/name_to_sysnum</emphasis> file, and the <emphasis role="bold">modload</emphasis> program runs.</para>
694 login: <emphasis role="bold">root</emphasis>
695 Password: <replaceable>root_password</replaceable>
696 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
699 </orderedlist></para>
702 <sect2 id="Header_137">
703 <title>Enabling AFS Login on Solaris Systems</title>
705 <para>At this point you incorporate AFS into the operating system's Pluggable Authentication Module (PAM) scheme. PAM
706 integrates all authentication mechanisms on the machine, including login, to provide the security infrastructure for
707 authenticated access to and from the machine.</para>
709 <para>In modern AFS installations, you should be using Kerberos v5
710 for user login, and obtaining AFS tokens subsequent to this authentication
711 step. OpenAFS does not currently distribute a PAM module allowing AFS
712 tokens to be automatically gained at login. Some of these, such as
713 pam-krb5 and pam-afs-session from http://www.eyrie.org/~eagle/software/
714 or pam_afs2 from ftp://achilles.ctd.anl.gov/pub/DEE/pam_afs2-0.1.tar,
715 have been tested with Solaris.</para>
717 <para>If you are at a site which still requires
718 <emphasis role="bold">kaserver</emphasis> or external Kerberos v4 based
719 authentication, please consult
720 <link linkend="KAS016">Enabling kaserver based AFS Login on Solaris Systems</link>
721 for further installation instructions.</para>
723 <sect2 id="Header_137a">
724 <title>Editing the File Systems Clean-up Script on Solaris Systems</title>
728 <para>Some Solaris distributions include a script that locates
729 and removes unneeded files from various file systems. Its
730 conventional location is
731 <emphasis role="bold">/usr/lib/fs/nfs/nfsfind</emphasis>. The
732 script generally uses an argument to the
733 <emphasis role="bold">find</emphasis> command to define which file
734 systems to search. In this step you modify the
735 command to exclude the <emphasis role="bold">/afs</emphasis>
736 directory. Otherwise, the command traverses the AFS
737 filespace of every cell that is accessible from the machine, which can take many hours. The following alterations are
738 possibilities, but you must verify that they are appropriate for your cell.</para>
740 <para>The first possible alteration is to add the <emphasis role="bold">-local</emphasis> flag to the existing command,
741 so that it looks like the following:</para>
744 find $dir -local -name .nfs\* -mtime +7 -mount -exec rm -f {} \;
747 <para>Another alternative is to exclude any directories whose names begin with the lowercase letter <emphasis
748 role="bold">a</emphasis> or a non-alphabetic character.</para>
751 find /[A-Zb-z]* <replaceable>remainder of existing command</replaceable>
754 <para>Do not use the following command, which still searches under the <emphasis role="bold">/afs</emphasis> directory,
755 looking for a subdirectory of type <emphasis role="bold">4.2</emphasis>.</para>
758 find / -fstype 4.2 /* <replaceable>do not use</replaceable> */
763 <para>Proceed to <link linkend="HDRWQ145">Loading and Creating Client Files</link>.</para>
765 </orderedlist></para>
768 <primary>Binary Distribution</primary>
770 <secondary>copying client files from</secondary>
772 <tertiary>client machine</tertiary>
776 <primary>client machine</primary>
778 <secondary>copying client files to local disk</secondary>
782 <primary>copying</primary>
784 <secondary>client files to local disk</secondary>
786 <tertiary>client machine</tertiary>
790 <primary>cell name</primary>
792 <secondary>setting in client ThisCell file</secondary>
794 <tertiary>client machine</tertiary>
798 <primary>setting</primary>
800 <secondary>cell name in client ThisCell file</secondary>
802 <tertiary>client machine</tertiary>
806 <primary>client machine</primary>
808 <secondary>cell membership</secondary>
812 <primary>client machine</primary>
814 <secondary>ThisCell file</secondary>
818 <primary>ThisCell file (client)</primary>
820 <secondary>client machine</secondary>
824 <primary>CellServDB file (client)</primary>
826 <secondary>creating</secondary>
828 <tertiary>on client machine</tertiary>
832 <primary>database server machine</primary>
834 <secondary>entry in client CellServDB file</secondary>
836 <tertiary>on client machine</tertiary>
840 <primary>creating</primary>
842 <secondary>CellServDB file (client)</secondary>
844 <tertiary>client machine</tertiary>
848 <primary>client machine</primary>
850 <secondary>CellServDB file</secondary>
852 <tertiary>creating during initial installation</tertiary>
857 <sect1 id="HDRWQ145">
858 <title>Loading and Creating Client Files</title>
860 <para>If you are using a non-packaged distribution (that is, one provided as
861 a tarball) you should now copy files from the istribution to the
862 <emphasis role="bold">/usr/vice/etc</emphasis> directory. On some platforms
863 that use a dynamic loader program to incorporate AFS modifications into the
864 kernel, you have already copied over some the files.
865 Copying them again does no harm.</para>
867 <para>Every AFS client machine has a copy of the <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> file on its local disk
868 to define the machine's cell membership for the AFS client programs that run on it. Among other functions, this file determines
869 the following: <itemizedlist>
871 <para>The cell in which users authenticate when they log onto the machine, assuming it is using an AFS-modified login
876 <para>The cell in which users authenticate by default when they issue the <emphasis role="bold">aklog</emphasis>
881 <para>The cell membership of the AFS server processes that the AFS command interpreters on this machine contact by
884 </itemizedlist></para>
886 <para>Similarly, the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file on a client machine's local disk lists the
887 database server machines in each cell that the local Cache Manager can contact. If there is no entry in the file for a cell, or
888 the list of database server machines is wrong, then users working on this machine cannot access the cell. The chapter in the
889 <emphasis>OpenAFS Administration Guide</emphasis> about administering client machines explains how to maintain the file after
890 creating it. A version of the client <emphasis role="bold">CellServDB</emphasis> file was created during the installation of
891 your cell's first machine (in <link linkend="HDRWQ66">Creating the Client CellServDB File</link>). It is probably also
892 appropriate for use on this machine.</para>
894 <para>Remember that the Cache Manager consults the <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file only at
895 reboot, when it copies the information into the kernel. For the Cache Manager to perform properly, the <emphasis
896 role="bold">CellServDB</emphasis> file must be accurate at all times. Refer to the chapter in the <emphasis>OpenAFS
897 Administration Guide</emphasis> about administering client machines for instructions on updating this file, with or without
898 rebooting. <orderedlist>
900 <para>If you have not already done so, unpack the distribution
901 tarball for this machine's system type into a suitable location on
902 the filesystem, such as <emphasis role="bold">/tmp/afsdist</emphasis>.
903 If you use a different location, substitue that in the examples that
908 <para>Copy files to the local <emphasis role="bold">/usr/vice/etc</emphasis> directory.</para>
910 <para>This step places a copy of the AFS initialization script (and related files, if applicable) into the <emphasis
911 role="bold">/usr/vice/etc</emphasis> directory. In the preceding instructions for incorporating AFS into the kernel, you
912 copied the script directly to the operating system's conventional location for initialization files. When you incorporate
913 AFS into the machine's startup sequence in a later step, you can choose to link the two files.</para>
915 <para>On some system types that use a dynamic kernel loader program, you previously copied AFS library files into a
916 subdirectory of the <emphasis role="bold">/usr/vice/etc</emphasis> directory. On other system types, you copied the
917 appropriate AFS library file directly to the directory where the operating system accesses it. The following commands do
918 not copy or recopy the AFS library files into the <emphasis role="bold">/usr/vice/etc</emphasis> directory, because on
919 some system types the library files consume a large amount of space. If you want to copy them, add the <emphasis
920 role="bold">-r</emphasis> flag to the first <emphasis role="bold">cp</emphasis> command and skip the second <emphasis
921 role="bold">cp</emphasis> command.</para>
924 # <emphasis role="bold">cd /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis>
925 # <emphasis role="bold">cp -p * /usr/vice/etc</emphasis>
926 # <emphasis role="bold">cp -rp C /usr/vice/etc</emphasis>
931 <para>Create the <emphasis role="bold">/usr/vice/etc/ThisCell</emphasis> file. <programlisting>
932 # <emphasis role="bold">echo "</emphasis><replaceable>cellname</replaceable><emphasis role="bold">" > /usr/vice/etc/ThisCell</emphasis>
933 </programlisting></para>
938 <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file. Use a
939 network file transfer program such as
940 <emphasis role="bold">sftp</emphasis> or
941 <emphasis role="bold">scp</emphasis> to copy it from one of the
942 following sources, which are listed in decreasing order of
943 preference: <itemizedlist>
945 <para>Your cell's central <emphasis role="bold">CellServDB</emphasis> source file (the conventional location is
946 <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
947 role="bold">/common/etc/CellServDB</emphasis>)</para>
951 <para>The global <emphasis role="bold">CellServDB</emphasis>
952 file maintained at grand.central.org</para>
956 <para>An existing client machine in your cell</para>
960 <para>The <emphasis role="bold">CellServDB.sample</emphasis>
962 <replaceable>sysname</replaceable><emphasis role="bold">/root.client/usr/vice/etc</emphasis>
963 directory of each OpenAFS distribution; add an entry for the
964 local cell by following the instructions in
965 <link linkend="HDRWQ66">Creating the Client CellServDB File</link>
968 </itemizedlist></para>
970 </orderedlist></para>
973 <primary>client cache</primary>
979 <primary>AFS cache</primary>
985 <primary>disk cache</primary>
991 <primary>memory cache</primary>
997 <primary>cache</primary>
999 <secondary>requirements</secondary>
1003 <primary>cache</primary>
1005 <secondary>choosing size</secondary>
1009 <primary>requirements</primary>
1011 <secondary>cache</secondary>
1015 <primary>usr/vice/etc/cacheinfo</primary>
1017 <see>cacheinfo file</see>
1021 <primary>cacheinfo file</primary>
1025 <primary>files</primary>
1027 <secondary>cacheinfo</secondary>
1031 <primary>usr/vice/cache directory</primary>
1035 <primary>directories</primary>
1037 <secondary>/usr/vice/cache</secondary>
1041 <primary>cache</primary>
1043 <secondary>configuring</secondary>
1045 <tertiary>client machine</tertiary>
1049 <primary>configuring</primary>
1051 <secondary>cache</secondary>
1053 <tertiary>client machine</tertiary>
1057 <primary>setting</primary>
1059 <secondary>cache size and location</secondary>
1061 <tertiary>client machine</tertiary>
1065 <primary>client machine</primary>
1067 <secondary>cache size and location</secondary>
1071 <sect1 id="HDRWQ146">
1072 <title>Configuring the Cache</title>
1074 <para>The Cache Manager uses a cache on the local disk or in machine memory to store local copies of files fetched from file
1075 server machines. As the <emphasis role="bold">afsd</emphasis> program initializes the Cache Manager, it sets basic cache
1076 configuration parameters according to definitions in the local <emphasis role="bold">/usr/vice/etc/cacheinfo</emphasis> file.
1077 The file has three fields: <orderedlist>
1079 <para>The first field names the local directory on which to mount the AFS filespace. The conventional location is the
1080 <emphasis role="bold">/afs</emphasis> directory.</para>
1084 <para>The second field defines the local disk directory to use for the disk cache. The conventional location is the
1085 <emphasis role="bold">/usr/vice/cache</emphasis> directory, but you can specify an alternate directory if another
1086 partition has more space available. There must always be a value in this field, but the Cache Manager ignores it if the
1087 machine uses a memory cache.</para>
1091 <para>The third field specifies the number of kilobyte (1024 byte) blocks to allocate for the cache.</para>
1093 </orderedlist></para>
1095 <para>The values you define must meet the following requirements. <itemizedlist>
1097 <para>On a machine using a disk cache, the Cache Manager expects always to be able to use the amount of space specified in
1098 the third field. Failure to meet this requirement can cause serious problems, some of which can be repaired only by
1099 rebooting. You must prevent non-AFS processes from filling up the cache partition. The simplest way is to devote a
1100 partition to the cache exclusively.</para>
1104 <para>The amount of space available in memory or on the partition housing the disk cache directory imposes an absolute
1105 limit on cache size.</para>
1109 <para>The maximum supported cache size can vary in each AFS release; see the <emphasis>OpenAFS Release Notes</emphasis>
1110 for the current version.</para>
1114 <para>For a disk cache, you cannot specify a value in the third field that exceeds 95% of the space available on the
1115 partition mounted at the directory named in the second field. If you violate this restriction, the <emphasis
1116 role="bold">afsd</emphasis> program exits without starting the Cache Manager and prints an appropriate message on the
1117 standard output stream. A value of 90% is more appropriate on most machines. Some operating systems (such as AIX) do not
1118 automatically reserve some space to prevent the partition from filling completely; for them, a smaller value (say, 80% to
1119 85% of the space available) is more appropriate.</para>
1123 <para>For a memory cache, you must leave enough memory for other processes and applications to run. If you try to allocate
1124 more memory than is actually available, the <emphasis role="bold">afsd</emphasis> program exits without initializing the
1125 Cache Manager and produces the following message on the standard output stream. <programlisting>
1126 afsd: memCache allocation failure at <replaceable>number</replaceable> KB
1127 </programlisting></para>
1129 <para>The <replaceable>number</replaceable> value is how many kilobytes were allocated just before the failure, and so
1130 indicates the approximate amount of memory available.</para>
1132 </itemizedlist></para>
1134 <para>Within these hard limits, the factors that determine appropriate cache size include the number of users working on the
1135 machine, the size of the files with which they work, and (for a memory cache) the number of processes that run on the machine.
1136 The higher the demand from these factors, the larger the cache needs to be to maintain good performance.</para>
1138 <para>Disk caches smaller than 10 MB do not generally perform well. Machines serving multiple users usually perform better with
1139 a cache of at least 60 to 70 MB. The point at which enlarging the cache further does not really improve performance depends on
1140 the factors mentioned previously and is difficult to predict.</para>
1142 <para>Memory caches smaller than 1 MB are nonfunctional, and the performance of caches smaller than 5 MB is usually
1143 unsatisfactory. Suitable upper limits are similar to those for disk caches but are probably determined more by the demands on
1144 memory from other sources on the machine (number of users and processes). Machines running only a few processes possibly can use
1145 a smaller memory cache.</para>
1147 <sect2 id="HDRWQ147">
1148 <title>Configuring a Disk Cache</title>
1151 <para>Not all file system types that an operating system supports are necessarily supported for use as the cache partition.
1152 For possible restrictions, see the <emphasis>OpenAFS Release Notes</emphasis>.</para>
1155 <para>To configure the disk cache, perform the following procedures: <orderedlist>
1157 <para>Create the local directory to use for caching. The following instruction shows the conventional location,
1158 <emphasis role="bold">/usr/vice/cache</emphasis>. If you are devoting a partition exclusively to caching, as
1159 recommended, you must also configure it, make a file system on it, and mount it at the directory created in this step.
1161 # <emphasis role="bold">mkdir /usr/vice/cache</emphasis>
1162 </programlisting></para>
1166 <para>Create the <emphasis role="bold">cacheinfo</emphasis> file to define the configuration parameters discussed
1167 previously. The following instruction shows the standard mount location, <emphasis role="bold">/afs</emphasis>, and the
1168 standard cache location, <emphasis role="bold">/usr/vice/cache</emphasis>. <programlisting>
1169 # <emphasis role="bold">echo "/afs:/usr/vice/cache:</emphasis><replaceable>#blocks</replaceable><emphasis role="bold">" > /usr/vice/etc/cacheinfo</emphasis>
1170 </programlisting></para>
1172 <para>The following example defines the disk cache size as 50,000 KB:</para>
1175 # <emphasis role="bold">echo "/afs:/usr/vice/cache:50000" > /usr/vice/etc/cacheinfo</emphasis>
1178 </orderedlist></para>
1181 <sect2 id="HDRWQ148">
1182 <title>Configuring a Memory Cache</title>
1184 <para>To configure a memory cache, create the <emphasis role="bold">cacheinfo</emphasis> file to define the configuration
1185 parameters discussed previously. The following instruction shows the standard mount location, <emphasis
1186 role="bold">/afs</emphasis>, and the standard cache location, <emphasis role="bold">/usr/vice/cache</emphasis> (though the
1187 exact value of the latter is irrelevant for a memory cache).</para>
1190 # <emphasis role="bold">echo "/afs:/usr/vice/cache:</emphasis><replaceable>#blocks</replaceable><emphasis role="bold">" > /usr/vice/etc/cacheinfo</emphasis>
1193 <para>The following example allocates 25,000 KB of memory for the cache.</para>
1196 # <emphasis role="bold">echo "/afs:/usr/vice/cache:25000" > /usr/vice/etc/cacheinfo</emphasis>
1200 <primary>afs (/afs) directory</primary>
1202 <secondary>creating</secondary>
1204 <tertiary>client machine</tertiary>
1208 <primary>afs (/afs) directory</primary>
1210 <secondary>as root of AFS filespace</secondary>
1214 <primary>AFS filespace</primary>
1216 <secondary>root at /afs directory</secondary>
1220 <primary>directories</primary>
1222 <secondary>/afs</secondary>
1226 <primary>afsd</primary>
1228 <secondary>options file (Linux)</secondary>
1232 <primary>files</primary>
1234 <secondary>afsd options file (Linux)</secondary>
1238 <primary>files</primary>
1240 <secondary>afs</secondary>
1242 <tertiary>afsd options file (Linux)</tertiary>
1246 <primary>afs file</primary>
1248 <secondary>afsd options file (Linux)</secondary>
1252 <primary>etc/sysconfig/afs</primary>
1258 <primary>Linux</primary>
1260 <secondary>afsd options file</secondary>
1264 <primary>client machine</primary>
1266 <secondary>afsd options file (Linux)</secondary>
1270 <primary>afsd</primary>
1272 <secondary>command in AFS init. script</secondary>
1276 <primary>commands</primary>
1278 <secondary>afsd</secondary>
1282 <primary>OPTIONS variable in AFS initialization file</primary>
1286 <primary>files</primary>
1288 <secondary>AFS initialization</secondary>
1290 <see>AFS initialization script</see>
1294 <primary>scripts</primary>
1296 <secondary>AFS initialization</secondary>
1298 <see>AFS initialization script</see>
1302 <primary>AFS initialization script</primary>
1304 <secondary>setting afsd parameters</secondary>
1306 <tertiary>client machine</tertiary>
1310 <primary>client machine</primary>
1312 <secondary>afsd command parameters</secondary>
1316 <primary>variables</primary>
1318 <secondary>OPTIONS (in AFS initialization file)</secondary>
1322 <primary>environment variables</primary>
1324 <see>variables</see>
1328 <primary>Cache Manager</primary>
1330 <secondary>client machine</secondary>
1334 <primary>configuring</primary>
1336 <secondary>Cache Manager</secondary>
1338 <tertiary>client machine</tertiary>
1342 <primary>client machine</primary>
1344 <secondary>Cache Manager</secondary>
1348 <primary>files</primary>
1350 <secondary>vfs (AIX)</secondary>
1354 <primary>vfs file</primary>
1358 <primary>etc/vfs file</primary>
1362 <primary>AIX</primary>
1364 <secondary>editing /etc/vfs file</secondary>
1368 <primary>client machine</primary>
1370 <secondary>vfs file (AIX)</secondary>
1375 <sect1 id="HDRWQ149">
1376 <title>Configuring the Cache Manager</title>
1378 <para>By convention, the Cache Manager mounts the AFS filespace on the local <emphasis role="bold">/afs</emphasis> directory. In
1379 this section you create that directory.</para>
1381 <para>The <emphasis role="bold">afsd</emphasis> program sets several cache configuration parameters as it initializes the Cache
1382 Manager, and starts daemons that improve performance. You can use the <emphasis role="bold">afsd</emphasis> command's arguments
1383 to override the parameters' default values and to change the number of some of the daemons. Depending on the machine's cache
1384 size, its amount of RAM, and how many people work on it, you can sometimes improve Cache Manager performance by overriding the
1385 default values. For a discussion of all of the <emphasis role="bold">afsd</emphasis> command's arguments, see its reference page
1386 in the <emphasis>OpenAFS Administration Reference</emphasis>.</para>
1388 <para>On platforms using the standard 'afs' initialisation script (this does
1389 not apply to Fedora or RHEL based distributions), the
1390 <emphasis role="bold">afsd</emphasis> command line in the AFS
1391 initialization script on each system type includes an
1392 <computeroutput>OPTIONS</computeroutput> variable. You can use it to set
1393 nondefault values for the command's arguments, in one
1394 of the following ways: <itemizedlist>
1396 <para>You can create an <emphasis role="bold">afsd</emphasis> <emphasis>options file</emphasis> that sets values for
1397 arguments to the <emphasis role="bold">afsd</emphasis> command. If the file exists, its contents are automatically
1398 substituted for the <computeroutput>OPTIONS</computeroutput> variable in the AFS initialization script. The AFS
1399 distribution for some system types includes an options file; on other system types, you must create it.</para>
1401 <para>You use two variables in the AFS initialization script to specify the path to the options file:
1402 <computeroutput>CONFIG</computeroutput> and <computeroutput>AFSDOPT</computeroutput>. On system types that define a
1403 conventional directory for configuration files, the <computeroutput>CONFIG</computeroutput> variable indicates it by
1404 default; otherwise, the variable indicates an appropriate location.</para>
1406 <para>List the desired <emphasis role="bold">afsd</emphasis> options on a single line in the options file, separating each
1407 option with one or more spaces. The following example sets the <emphasis role="bold">-stat</emphasis> argument to 2500,
1408 the <emphasis role="bold">-daemons</emphasis> argument to 4, and the <emphasis role="bold">-volumes</emphasis> argument to
1412 -stat 2500 -daemons 4 -volumes 100
1417 <para>On a machine that uses a disk cache, you can set the <computeroutput>OPTIONS</computeroutput> variable in the AFS
1418 initialization script to one of <computeroutput>$SMALL</computeroutput>, <computeroutput>$MEDIUM</computeroutput>, or
1419 <computeroutput>$LARGE</computeroutput>. The AFS initialization script uses one of these settings if the <emphasis
1420 role="bold">afsd</emphasis> options file named by the <computeroutput>AFSDOPT</computeroutput> variable does not exist. In
1421 the script as distributed, the <computeroutput>OPTIONS</computeroutput> variable is set to the value
1422 <computeroutput>$MEDIUM</computeroutput>.</para>
1425 <para>Do not set the <computeroutput>OPTIONS</computeroutput> variable to <computeroutput>$SMALL</computeroutput>,
1426 <computeroutput>$MEDIUM</computeroutput>, or <computeroutput>$LARGE</computeroutput> on a machine that uses a memory
1427 cache. The arguments it sets are appropriate only on a machine that uses a disk cache.</para>
1430 <para>The script (or on some system types the <emphasis role="bold">afsd</emphasis> options file named by the
1431 <computeroutput>AFSDOPT</computeroutput> variable) defines a value for each of <computeroutput>SMALL</computeroutput>,
1432 <computeroutput>MEDIUM</computeroutput>, and <computeroutput>LARGE</computeroutput> that sets <emphasis
1433 role="bold">afsd</emphasis> command arguments appropriately for client machines of different sizes: <itemizedlist>
1435 <para><computeroutput>SMALL</computeroutput> is suitable for a small machine that serves one or two users and has
1436 approximately 8 MB of RAM and a 20-MB cache</para>
1440 <para><computeroutput>MEDIUM</computeroutput> is suitable for a medium-sized machine that serves two to six users
1441 and has 16 MB of RAM and a 40-MB cache</para>
1445 <para><computeroutput>LARGE</computeroutput> is suitable for a large machine that serves five to ten users and has
1446 32 MB of RAM and a 100-MB cache</para>
1448 </itemizedlist></para>
1452 <para>You can choose not to create an <emphasis role="bold">afsd</emphasis> options file and to set the
1453 <computeroutput>OPTIONS</computeroutput> variable in the initialization script to a null value rather than to the default
1454 <computeroutput>$MEDIUM</computeroutput> value. You can then either set arguments directly on the <emphasis
1455 role="bold">afsd</emphasis> command line in the script, or set no arguments (and so accept default values for all Cache
1456 Manager parameters).</para>
1461 <para>If you are running on a Fedora or RHEL based system, the
1462 openafs-client initialization script behaves differently from that
1463 described above. It sources
1464 <emphasis role="bold">/etc/sysconfig/openafs</emphasis>, in which the
1465 AFSD_ARGS variable may be set to contain any, or all, of the afsd
1466 options detailed above. Note that this script does not support setting
1467 an <computeroutput>OPTIONS</computeroutput> variable, or the
1468 <computeroutput>SMALL</computeroutput>,
1469 <computeroutput>MEDIUM</computeroutput> and
1470 <computeroutput>LARGE</computeroutput> methods of defining cache size.
1476 <para>Create the local directory on which to mount the AFS filespace, by convention <emphasis role="bold">/afs</emphasis>.
1477 If the directory already exists, verify that it is empty. <programlisting>
1478 # <emphasis role="bold">mkdir /afs</emphasis>
1479 </programlisting></para>
1483 <para>On AIX systems, add the following line to the <emphasis role="bold">/etc/vfs</emphasis> file. It enables AIX to
1484 unmount AFS correctly during shutdown. <programlisting>
1486 </programlisting></para>
1490 <para>On non-package based Linux systems, copy the <emphasis role="bold">afsd</emphasis> options file from the <emphasis
1491 role="bold">/usr/vice/etc</emphasis> directory to the <emphasis role="bold">/etc/sysconfig</emphasis> directory, removing
1492 the <emphasis role="bold">.conf</emphasis> extension as you do so. <programlisting>
1493 # <emphasis role="bold">cp /usr/vice/etc/afs.conf /etc/sysconfig/afs</emphasis>
1494 </programlisting></para>
1498 <para>Edit the machine's AFS initialization script or <emphasis role="bold">afsd</emphasis> options file to set
1499 appropriate values for <emphasis role="bold">afsd</emphasis> command parameters. The appropriate file for each system type
1500 is as follows: <itemizedlist>
1502 <para>On AIX systems, <emphasis role="bold">/etc/rc.afs</emphasis></para>
1506 <para>On Fedora and RHEL systems, <emphasis role="bold">/etc/sysconfig/openafs</emphasis></para>
1510 <para>On Linux systems, <emphasis role="bold">/etc/sysconfig/afs</emphasis> (the <emphasis
1511 role="bold">afsd</emphasis> options file)</para>
1515 <para>On Solaris systems, <emphasis role="bold">/etc/init.d/afs</emphasis></para>
1517 </itemizedlist></para>
1519 <para>Use one of the methods described in the introduction to this section to add the following flags to the <emphasis
1520 role="bold">afsd</emphasis> command line. Also set any performance-related arguments you wish. <itemizedlist>
1522 <para>Add the <emphasis role="bold">-memcache</emphasis> flag if the machine is to use a memory cache.</para>
1526 <para>Add the <emphasis role="bold">-verbose</emphasis> flag to display a trace of the Cache Manager's
1527 initialization on the standard output stream.</para>
1529 </itemizedlist></para>
1531 </orderedlist></para>
1534 <primary>AFS initialization script</primary>
1536 <secondary>running</secondary>
1538 <tertiary>client machine</tertiary>
1542 <primary>client machine</primary>
1544 <secondary>AFS initialization script</secondary>
1548 <primary>running AFS init. script</primary>
1550 <secondary>client machine</secondary>
1554 <primary>installing</primary>
1556 <secondary>AFS initialization script</secondary>
1558 <tertiary>client machine</tertiary>
1562 <primary>AFS initialization script</primary>
1564 <secondary>adding to machine startup sequence</secondary>
1566 <tertiary>client machine</tertiary>
1570 <sect1 id="HDRWQ150">
1571 <title>Starting the Cache Manager and Installing the AFS Initialization Script</title>
1573 <para>In this section you run the AFS initialization script to start the Cache Manager. If the script works correctly, perform
1574 the steps that incorporate it into the machine's startup and shutdown sequence. If there are problems during the initialization,
1575 attempt to resolve them. The AFS Product Support group can provide assistance if necessary.</para>
1577 <para>On machines that use a disk cache, it can take a while for the <emphasis role="bold">afsd</emphasis> program to run the
1578 first time on a machine, because it must create all of the <emphasis role="bold">V</emphasis><replaceable>n</replaceable> files
1579 in the cache directory. Subsequent Cache Manager initializations do not take nearly as long, because the <emphasis
1580 role="bold">V</emphasis><replaceable>n</replaceable> files already exist.</para>
1582 <para>On system types that use a dynamic loader program, you must reboot the machine before running the initialization script,
1583 so that it can freshly load AFS modifications into the kernel.</para>
1585 <para>Proceed to the instructions for your system type:</para>
1589 <para><link linkend="HDRWQ151">Running the Script on AIX Systems</link></para>
1593 <para><link linkend="HDRWQ155">Running the Script on Linux Systems</link></para>
1597 <para><link linkend="HDRWQ156">Running the Script on Solaris Systems</link></para>
1602 <primary>AIX</primary>
1604 <secondary>AFS initialization script</secondary>
1606 <tertiary>on client machine</tertiary>
1610 <primary>rc.afs file (AFS init. file for AIX)</primary>
1614 <primary>files</primary>
1616 <secondary>rc.afs</secondary>
1620 <primary>etc/rc.afs</primary>
1622 <see>rc.afs file</see>
1625 <sect2 id="HDRWQ151">
1626 <title>Running the Script on AIX Systems</title>
1630 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
1631 # <emphasis role="bold">cd /</emphasis>
1632 # <emphasis role="bold">shutdown -r now</emphasis>
1633 login: <emphasis role="bold">root</emphasis>
1634 Password: <replaceable>root_password</replaceable>
1635 </programlisting></para>
1639 <para>Run the AFS initialization script. <programlisting>
1640 # <emphasis role="bold">/etc/rc.afs</emphasis>
1641 </programlisting></para>
1645 <para>Edit the AIX initialization file, <emphasis role="bold">/etc/inittab</emphasis>, adding the following line to invoke
1646 the AFS initialization script. Place it just after the line that starts NFS daemons. <programlisting>
1647 rcafs:2:wait:/etc/rc.afs > /dev/console 2>&1 # Start AFS services
1648 </programlisting></para>
1652 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
1653 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc</emphasis> directories. If you want to avoid
1654 potential confusion by guaranteeing that they are always the same, create a link between them. You can always retrieve the
1655 original script from the AFS CD-ROM if necessary. <programlisting>
1656 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
1657 # <emphasis role="bold">rm rc.afs</emphasis>
1658 # <emphasis role="bold">ln -s /etc/rc.afs</emphasis>
1659 </programlisting></para>
1663 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
1664 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
1670 <primary>afs file</primary>
1672 <secondary>AFS initialization file</secondary>
1676 <primary>files</primary>
1678 <secondary>afs</secondary>
1680 <tertiary>AFS initialization file</tertiary>
1684 <primary>etc/rc.d/init.d/afs</primary>
1690 <primary>Linux</primary>
1692 <secondary>AFS initialization script</secondary>
1694 <tertiary>on client machine</tertiary>
1699 <title>Running the Script on Fedora / RHEL Systems</title>
1703 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
1704 # <emphasis role="bold">cd /</emphasis>
1705 # <emphasis role="bold">shutdown -r now</emphasis>
1706 login: <emphasis role="bold">root</emphasis>
1707 Password: <replaceable>root_password</replaceable>
1708 </programlisting></para>
1712 <para>Run the AFS initialization script.
1714 # <emphasis role="bold">/etc/rc.d/init.d/openafs-client start</emphasis>
1715 </programlisting></para>
1719 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis role="bold">openafs-client</emphasis>
1720 configuration variable. Based on the instruction in the AFS initialization file that begins with the string
1721 <computeroutput>#chkconfig</computeroutput>, the command automatically creates the symbolic links that incorporate the
1722 script into the Linux startup and shutdown sequence. <programlisting>
1723 # <emphasis role="bold">/sbin/chkconfig --add openafs-client</emphasis>
1724 </programlisting></para>
1729 <sect2 id="HDRWQ155">
1730 <title>Running the Script on other Linux Systems</title>
1734 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
1735 # <emphasis role="bold">cd /</emphasis>
1736 # <emphasis role="bold">shutdown -r now</emphasis>
1737 login: <emphasis role="bold">root</emphasis>
1738 Password: <replaceable>root_password</replaceable>
1739 </programlisting></para>
1743 <para>Run the AFS initialization script. <programlisting>
1744 # <emphasis role="bold">/etc/rc.d/init.d/afs start</emphasis>
1745 </programlisting></para>
1749 <para>Issue the <emphasis role="bold">chkconfig</emphasis> command to activate the <emphasis role="bold">afs</emphasis>
1750 configuration variable. Based on the instruction in the AFS initialization file that begins with the string
1751 <computeroutput>#chkconfig</computeroutput>, the command automatically creates the symbolic links that incorporate the
1752 script into the Linux startup and shutdown sequence. <programlisting>
1753 # <emphasis role="bold">/sbin/chkconfig --add afs</emphasis>
1754 </programlisting></para>
1758 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
1759 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/rc.d/init.d</emphasis> directories, and
1760 copies of the <emphasis role="bold">afsd</emphasis> options file in both the <emphasis
1761 role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/sysconfig</emphasis> directories. If you want to avoid
1762 potential confusion by guaranteeing that the two copies of each file are always the same, create a link between them. You
1763 can always retrieve the original script or options file from the AFS CD-ROM if necessary. <programlisting>
1764 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
1765 # <emphasis role="bold">rm afs.rc afs.conf</emphasis>
1766 # <emphasis role="bold">ln -s /etc/rc.d/init.d/afs afs.rc</emphasis>
1767 # <emphasis role="bold">ln -s /etc/sysconfig/afs afs.conf</emphasis>
1768 </programlisting></para>
1772 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
1773 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
1779 <primary>afs file</primary>
1781 <secondary>AFS initialization file</secondary>
1785 <primary>files</primary>
1787 <secondary>afs</secondary>
1789 <tertiary>AFS initialization file</tertiary>
1793 <primary>Solaris</primary>
1795 <secondary>AFS initialization script</secondary>
1797 <tertiary>on client machine</tertiary>
1801 <sect2 id="HDRWQ156">
1802 <title>Running the Script on Solaris Systems</title>
1806 <para>Reboot the machine and log in again as the local superuser <emphasis role="bold">root</emphasis>. <programlisting>
1807 # <emphasis role="bold">cd /</emphasis>
1808 # <emphasis role="bold">shutdown -i6 -g0 -y</emphasis>
1809 login: <emphasis role="bold">root</emphasis>
1810 Password: <replaceable>root_password</replaceable>
1811 </programlisting></para>
1815 <para>Run the AFS initialization script. <programlisting>
1816 # <emphasis role="bold">/etc/init.d/afs start</emphasis>
1817 </programlisting></para>
1821 <para>Change to the <emphasis role="bold">/etc/init.d</emphasis> directory and issue the <emphasis role="bold">ln
1822 -s</emphasis> command to create symbolic links that incorporate the AFS initialization script into the Solaris startup and
1823 shutdown sequence. <programlisting>
1824 # <emphasis role="bold">cd /etc/init.d</emphasis>
1825 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc3.d/S99afs</emphasis>
1826 # <emphasis role="bold">ln -s ../init.d/afs /etc/rc0.d/K66afs</emphasis>
1827 </programlisting></para>
1831 <para><emphasis role="bold">(Optional)</emphasis> There are now copies of the AFS initialization file in both the
1832 <emphasis role="bold">/usr/vice/etc</emphasis> and <emphasis role="bold">/etc/init.d</emphasis> directories. If you want
1833 to avoid potential confusion by guaranteeing that they are always the same, create a link between them. You can always
1834 retrieve the original script from the OpenAFS Binary Distribution if necessary. <programlisting>
1835 # <emphasis role="bold">cd /usr/vice/etc</emphasis>
1836 # <emphasis role="bold">rm afs.rc</emphasis>
1837 # <emphasis role="bold">ln -s /etc/init.d/afs afs.rc</emphasis>
1838 </programlisting></para>
1842 <para>If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to <link
1843 linkend="HDRWQ157">Setting Up Volumes and Loading Binaries into AFS</link>. Otherwise, the installation is
1849 <primary>storing</primary>
1851 <secondary>AFS binaries in volumes</secondary>
1855 <primary>creating</primary>
1857 <secondary>volume</secondary>
1859 <tertiary>for AFS binaries</tertiary>
1863 <primary>volume</primary>
1865 <secondary>for AFS binaries</secondary>
1869 <primary>binaries</primary>
1871 <secondary>storing AFS in volume</secondary>
1875 <primary>usr/afsws directory</primary>
1879 <primary>directories</primary>
1881 <secondary>/usr/afsws</secondary>
1886 <sect1 id="HDRWQ157">
1887 <title>Setting Up Volumes and Loading Binaries into AFS</title>
1889 <note><para>If you are using an operating system which uses packaged
1890 binaries, such as .rpms or .debs, you should allow these package management
1891 systems to maintain your AFS binaries, rather than following the
1892 instructions in this section.</para></note>
1894 <para>In this section, you link <emphasis role="bold">/usr/afsws</emphasis> on the local disk to the directory in AFS that
1895 houses AFS binaries for this system type. The conventional name for the AFS directory is <emphasis
1896 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
1897 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis>.</para>
1899 <para>If this machine is an existing system type, the AFS directory presumably already exists. You can simply create a link from
1900 the local <emphasis role="bold">/usr/afsws</emphasis> directory to it. Follow the instructions in <link
1901 linkend="HDRWQ158">Linking /usr/afsws on an Existing System Type</link>.</para>
1903 <para>If this machine is a new system type (there are no AFS machines of this type in your cell), you must first create and
1904 mount volumes to store its AFS binaries, and then create the link from <emphasis role="bold">/usr/afsws</emphasis> to the new
1905 directory. See <link linkend="HDRWQ159">Creating Binary Volumes for a New System Type</link>.</para>
1907 <para>You can also store UNIX system binaries (the files normally stored in local disk directories such as <emphasis
1908 role="bold">/bin</emphasis>, <emphasis role="bold">/etc</emphasis>, and <emphasis role="bold">/lib</emphasis>) in volumes
1909 mounted under <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
1910 role="bold">/</emphasis><replaceable>sysname</replaceable>. See <link linkend="HDRWQ88">Storing System Binaries in AFS</link>
1913 <sect2 id="HDRWQ158">
1914 <title>Linking /usr/afsws on an Existing System Type</title>
1916 <para>If this client machine is an existing system type, there is already a volume mounted in the AFS filespace that houses
1917 AFS client binaries for it. <orderedlist>
1919 <para>Create <emphasis role="bold">/usr/afsws</emphasis> on the local disk as a symbolic link to the directory <emphasis
1920 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/@sys/usr/afsws</emphasis>. You can
1921 specify the actual system name instead of <emphasis role="bold">@sys</emphasis> if you wish, but the advantage of using
1922 <emphasis role="bold">@sys</emphasis> is that it remains valid if you upgrade this machine to a different system type.
1924 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/@sys/usr/afsws /usr/afsws</emphasis>
1925 </programlisting></para>
1929 <para><emphasis role="bold">(Optional)</emphasis> If you believe it is helpful to your users to access the AFS documents
1930 in a certain format via a local disk directory, create <emphasis role="bold">/usr/afsdoc</emphasis> on the local disk as
1931 a symbolic link to the documentation directory in AFS (<emphasis
1932 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
1933 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable>). <programlisting>
1934 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> <emphasis
1935 role="bold">/usr/afsdoc</emphasis>
1936 </programlisting></para>
1938 <para>An alternative is to create a link in each user's home directory to the <emphasis
1939 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
1940 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> directory.</para>
1942 </orderedlist></para>
1945 <sect2 id="HDRWQ159">
1946 <title>Creating Binary Volumes for a New System Type</title>
1948 <para>If this client machine is a new system type, you must create and mount volumes for its binaries before you can link the
1949 local <emphasis role="bold">/usr/afsws</emphasis> directory to an AFS directory.</para>
1951 <para>To create and mount the volumes, you use the
1952 <emphasis role="bold">kinit</emphasis> command to authenticate as an
1953 administrator, followed by the <emphasis role="bold">aklog</emphasis>
1954 command to gain tokens, and then issue commands from the
1955 <emphasis role="bold">vos</emphasis> and
1956 <emphasis role="bold">fs</emphasis> command suites. However, the
1957 command binaries are not yet available on this machine (by convention,
1958 they are accessible via the <emphasis role="bold">/usr/afsws</emphasis>
1959 link that you are about to create). You have two choices:
1962 <para>Perform all steps except the last one (Step <link linkend="LIWQ162">10</link>) on an existing AFS machine. On a
1963 file server machine, the <emphasis role="bold">aklog</emphasis>, <emphasis role="bold">fs</emphasis> and <emphasis
1964 role="bold">vos</emphasis> binaries reside in the <emphasis role="bold">/usr/afs/bin</emphasis> directory. On client
1965 machines, the <emphasis role="bold">aklog</emphasis> and <emphasis role="bold">fs</emphasis> binaries reside in the
1966 <emphasis role="bold">/usr/afsws/bin</emphasis> directory and the <emphasis role="bold">vos</emphasis> binary in the
1967 <emphasis role="bold">/usr/afsws/etc</emphasis> directory. Depending on how your PATH environment variable is set, you
1968 possibly need to precede the command names with a pathname.</para>
1970 <para>If you work on another AFS machine, be sure to substitute the new system type name for the
1971 <replaceable>sysname</replaceable> argument in the following commands, not the system type of the machine on which you
1972 are issuing the commands.</para>
1976 <para>Copy the necessary command binaries to a temporary location on the local disk, which enables you to perform the
1977 steps on the local machine. The following procedure installs them in the <emphasis role="bold">/tmp</emphasis> directory
1978 and removes them at the end. Depending on how your PATH environment variable is set, you possibly need to precede the
1979 command names with a pathname.</para>
1981 </itemizedlist></para>
1983 <para>Perform the following steps to create a volume for housing AFS binaries. <orderedlist>
1985 <para>Working either on the local machine or another AFS machine,
1986 extract the Open AFS distribtion tarball onto a directory on that
1987 machine. The following instructions assume that you are using the
1988 <emphasis role="bold">/tmp/afsdist</emphasis> directory.</para>
1992 <para>If working on the local machine, copy the necessary binaries to a temporary location on the local disk. Substitute
1993 a different directory name for <emphasis role="bold">/tmp</emphasis> if you wish. <programlisting>
1994 # <emphasis role="bold">cd /tmp/afsdist/</emphasis><replaceable>new_sysname</replaceable><emphasis role="bold">/root.server/usr/afs/bin</emphasis>
1995 # <emphasis role="bold">cp -p aklog /tmp</emphasis>
1996 # <emphasis role="bold">cp -p fs /tmp</emphasis>
1997 # <emphasis role="bold">cp -p vos /tmp</emphasis>
1998 </programlisting></para>
2002 <para>Authenticate as the user <emphasis role="bold">admin</emphasis>.
2004 # <emphasis role="bold">kinit admin</emphasis>
2005 Password: <replaceable>admin_password</replaceable>
2006 # <emphasis role="bold">aklog</emphasis>
2007 </programlisting></para>
2010 <listitem id="LIWQ160">
2011 <para>Issue the <emphasis role="bold">vos create</emphasis> command to create volumes for storing
2012 the AFS client binaries for this system type. The following example instruction creates volumes called
2013 <replaceable>sysname</replaceable>, <replaceable>sysname</replaceable>.<emphasis role="bold">usr</emphasis>, and
2014 <replaceable>sysname</replaceable>.<emphasis role="bold">usr.afsws</emphasis>. Refer to the <emphasis>OpenAFS Release
2015 Notes</emphasis> to learn the proper value of <replaceable>sysname</replaceable> for this system type. <programlisting>
2016 # <emphasis role="bold">vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <replaceable>sysname</replaceable>
2017 # <emphasis role="bold">vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <replaceable>sysname</replaceable><emphasis
2018 role="bold">.usr</emphasis>
2019 # <emphasis role="bold">vos create</emphasis> <<replaceable>machine name</replaceable>> <<replaceable>partition name</replaceable>> <replaceable>sysname</replaceable><emphasis
2020 role="bold">.usr.afsws</emphasis>
2021 </programlisting></para>
2025 <para>Issue the <emphasis role="bold">fs mkmount</emphasis> command to mount the newly created volumes. Because the
2026 <emphasis role="bold">root.cell</emphasis> volume is replicated, you must precede the <emphasis>cellname</emphasis> part
2027 of the pathname with a period to specify the read/write mount point, as shown. Then issue the <emphasis role="bold">vos
2028 release</emphasis> command to release a new replica of the <emphasis role="bold">root.cell</emphasis> volume, and the
2029 <emphasis role="bold">fs checkvolumes</emphasis> command to force the local Cache Manager to access them.
2031 # <emphasis role="bold">fs mkmount -dir /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable> <emphasis
2032 role="bold">-vol</emphasis> <replaceable>sysname</replaceable>
2033 # <emphasis role="bold">fs mkmount -dir /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
2034 role="bold">/usr</emphasis> <emphasis role="bold">-vol</emphasis> <replaceable>sysname</replaceable><emphasis
2035 role="bold">.usr</emphasis>
2036 # <emphasis role="bold">fs mkmount -dir /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
2037 role="bold">/usr/afsws</emphasis> <emphasis role="bold">-vol</emphasis> <replaceable>sysname</replaceable><emphasis
2038 role="bold">.usr.afsws</emphasis>
2039 # <emphasis role="bold">vos release root.cell</emphasis>
2040 # <emphasis role="bold">fs checkvolumes</emphasis>
2041 </programlisting></para>
2045 <para>Issue the <emphasis role="bold">fs setacl</emphasis> command to grant the <emphasis role="bold">l</emphasis>
2046 (<emphasis role="bold">lookup</emphasis>) and <emphasis role="bold">r</emphasis> (<emphasis role="bold">read</emphasis>)
2047 permissions to the <emphasis role="bold">system:anyuser</emphasis> group on each new directory's ACL. <programlisting>
2048 # <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable>
2049 # <emphasis role="bold">fs setacl -dir . usr usr/afsws -acl system:anyuser rl</emphasis>
2050 </programlisting></para>
2054 <para>Issue the <emphasis role="bold">fs setquota</emphasis> command to set an unlimited quota on the volume mounted at
2055 the <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2056 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis> directory. This
2057 enables you to copy all of the appropriate files from the CD-ROM into the volume without exceeding the volume's
2060 <para>If you wish, you can set the volume's quota to a finite value after you complete the copying operation. At that
2061 point, use the <emphasis role="bold">vos examine</emphasis> command to determine how much space the volume is occupying.
2062 Then issue the <emphasis role="bold">fs setquota</emphasis> command to set a quota that is slightly larger.</para>
2065 # <emphasis role="bold">fs setquota /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
2066 role="bold">/usr/afsws 0</emphasis>
2070 <listitem id="LIWQ161">
2071 <para>Copy the contents of the indicated
2072 directories from the OpenAFS binary distribution into the
2073 <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2074 role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/usr/afsws</emphasis> directory.
2076 # <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
2077 role="bold">/usr/afsws</emphasis>
2078 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/bin .</emphasis>
2079 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/etc .</emphasis>
2080 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/include .</emphasis>
2081 # <emphasis role="bold">cp -rp /cdrom/</emphasis><replaceable>sysname</replaceable><emphasis role="bold">/lib .</emphasis>
2082 </programlisting></para>
2086 <para>Issue the <emphasis role="bold">fs setacl</emphasis> command
2087 to set the ACL on each directory appropriately. If you wish to
2088 enable access to the software for locally authenticated users only,
2089 set the ACL on the <emphasis role="bold">etc</emphasis>,
2090 <emphasis role="bold">include</emphasis>, and
2091 <emphasis role="bold">lib</emphasis> subdirectories to grant the
2092 <emphasis role="bold">l</emphasis> and
2093 <emphasis role="bold">r</emphasis> permissions to the
2094 <emphasis role="bold">system:authuser</emphasis> group rather than
2095 the <emphasis role="bold">system:anyuser</emphasis> group. The
2096 <emphasis role="bold">system:anyuser</emphasis> group must retain
2097 the <emphasis role="bold">l</emphasis> and
2098 <emphasis role="bold">r</emphasis> permissions on the
2099 <emphasis role="bold">bin</emphasis> subdirectory to enable
2100 unauthenticated users to access the
2101 <emphasis role="bold">aklog</emphasis> binary.
2103 # <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/</emphasis><replaceable>sysname</replaceable><emphasis
2104 role="bold">/usr/afsws</emphasis>
2105 # <emphasis role="bold">fs setacl -dir etc include lib -acl system:authuser rl</emphasis> \
2106 <emphasis role="bold">system:anyuser none</emphasis>
2107 </programlisting></para>
2110 <listitem id="LIWQ162">
2111 <para>Perform this step on the new client machine even if you have performed the previous steps
2112 on another machine. Create <emphasis role="bold">/usr/afsws</emphasis> on the local disk as a symbolic link to the
2113 directory <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2114 role="bold">/@sys/usr/afsws</emphasis>. You can specify the actual system name instead of <emphasis
2115 role="bold">@sys</emphasis> if you wish, but the advantage of using <emphasis role="bold">@sys</emphasis> is that it
2116 remains valid if you upgrade this machine to a different system type. <programlisting>
2117 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/@sys/usr/afsws /usr/afsws</emphasis>
2118 </programlisting></para>
2122 <para><emphasis role="bold">(Optional)</emphasis> To enable users to issue commands from the AFS suites (such as
2123 <emphasis role="bold">fs</emphasis>) without having to specify a pathname to their binaries, include the <emphasis
2124 role="bold">/usr/afsws/bin</emphasis> and <emphasis role="bold">/usr/afsws/etc</emphasis> directories in the PATH
2125 environment variable you define in each user's shell initialization file (such as <emphasis
2126 role="bold">.cshrc</emphasis>).</para>
2130 <para><emphasis role="bold">(Optional)</emphasis> If you believe it is helpful to your users to access the AFS documents
2131 in a certain format via a local disk directory, create <emphasis role="bold">/usr/afsdoc</emphasis> on the local disk as
2132 a symbolic link to the documentation directory in AFS (<emphasis
2133 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2134 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable>). <programlisting>
2135 # <emphasis role="bold">ln -s /afs/</emphasis><replaceable>cellname</replaceable><emphasis role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> <emphasis
2136 role="bold">/usr/afsdoc</emphasis>
2137 </programlisting></para>
2139 <para>An alternative is to create a link in each user's home directory to the <emphasis
2140 role="bold">/afs/</emphasis><replaceable>cellname</replaceable><emphasis
2141 role="bold">/afsdoc/</emphasis><replaceable>format_name</replaceable> directory.</para>
2145 <para><emphasis role="bold">(Optional)</emphasis> If working on the local machine, remove the AFS binaries from the
2146 temporary location. They are now accessible in the <emphasis role="bold">/usr/afsws</emphasis> directory.
2148 # <emphasis role="bold">cd /tmp</emphasis>
2149 # <emphasis role="bold">rm klog fs vos</emphasis>
2150 </programlisting></para>
2152 </orderedlist></para>