(no commit message)
[openafs-wiki.git] / AFSLore / InstallingAdditionalClientMachines.mdwn
1 # <a name="Installing Additional Client Mac"></a> Installing Additional Client Machines
2
3 This chapter describes how to install AFS client machines after you have installed the first AFS machine. Some parts of the installation differ depending on whether or not the new client is of the same AFS system type (uses the same AFS binaries) as a previously installed client machine. Summary of Procedures
4
5 1. Incorporate AFS into the machine's kernel
6
7 1. Define the machine's cell membership
8
9 1. Define cache location and size
10
11 1. Create the /usr/vice/etc/CellServDB file, which determines which foreign cells the client can access in addition to the local cell
12
13 1. Create the /afs directory and start the Cache Manager
14
15 1. Create and mount volumes for housing AFS client binaries (necessary only for clients of a new system type)
16
17 1. Create a link from the local /usr/afsws directory to the AFS directory housing the AFS client binaries
18
19 1. Modify the machine's authentication system to enable AFS users to obtain tokens at login
20
21 # <a name="Creating AFS Directories on the"></a><a name="Creating AFS Directories on the "></a> Creating AFS Directories on the Local Disk
22
23 Create the /usr/vice/etc directory on the local disk, to house client binaries and configuration files. Subsequent instructions copy files from the AFS CD-ROM into them. Create the /cdrom directory as a mount point for the CD-ROM, if it does not already exist.
24
25        # mkdir /usr/vice
26
27        # mkdir /usr/vice/etc
28
29        # mkdir /cdrom
30
31 # <a name="Performing Platform-Specific Pro"></a> Performing Platform-Specific Procedures
32
33 Every AFS client machine's kernel must incorporate AFS modifications. Some system types use a dynamic kernel loader program, whereas on other system types you build AFS modifications into a static kernel. Some system types support both methods.
34
35 Also modify the machine's authentication system so that users obtain an AFS token as they log into the local file system. Using AFS is simpler and more convenient for your users if you make the modifications on all client machines. Otherwise, users must perform a two-step login procedure (login to the local file system and then issue the klog command). For further discussion of AFS authentication, see the chapter in the IBM AFS Administration Guide about cell configuration and administration issues.
36
37 For convenience, the following sections group the two procedures by system type. Proceed to the appropriate section.
38
39 \* Getting Started on AIX Systems
40
41 \* Getting Started on Digital UNIX Systems
42
43 \* Getting Started on HP-UX Systems
44
45 \* Getting Started on IRIX Systems
46
47 \* Getting Started on Linux Systems
48
49 \* Getting Started on Solaris Systems
50
51 # <a name="Getting Started on AIX Systems"></a> Getting Started on AIX Systems
52
53 In this section you load AFS into the AIX kernel. Then incorporate AFS modifications into the machine's secondary authentication system, if you wish to enable AFS login.
54
55 ## <a name="Loading AFS into the AIX Kernel"></a> Loading AFS into the AIX Kernel
56
57 [[Loading AFS into the AIX Kernel|Main/LoadingAFSIntoTheAIXKernel]]
58
59 ## <a name="Enabling AFS Login on AIX System"></a> Enabling AFS Login on AIX Systems
60
61 [[Enabling AFS Login on AIX Systems|Main/EnablingAFSLoginOnAIXSystems]]
62
63 Proceed to Loading and Creating Client Files.
64
65 # <a name="Getting Started on Digital UNIX"></a><a name="Getting Started on Digital UNIX "></a> Getting Started on Digital UNIX Systems
66
67 In this section you build AFS into the Digital UNIX kernel. Then incorporate AFS modifications into the machine's Security Integration Architecture (SIA) matrix, if you wish to enable AFS login.
68
69 ## <a name="Building AFS into the Digital UN"></a> Building AFS into the Digital UNIX Kernel
70
71 [[Building AFS into the Digital UNIX Kernel|Main/BuildingAFSIntoTheDigitalUNIXKernel]]
72
73 ## <a name="Enabling AFS Login on Digital UN"></a> Enabling AFS Login on Digital UNIX Systems
74
75 [[Enabling AFS Login on Digital UNIX Systems|Main/EnablingAFSLoginOnDigitalUNIXSystems]]
76
77 Proceed to Loading and Creating Client Files.
78
79 # <a name="Getting Started on HP-UX Systems"></a> Getting Started on HP-UX Systems
80
81 In this section you build AFS into the HP-UX kernel. Then incorporate AFS modifications into the machine's Pluggable Authentication Module (PAM) system, if you wish to enable AFS login.
82
83 ## <a name="Building AFS into the HP-UX Kern"></a> Building AFS into the HP-UX Kernel
84
85 [[Building AFS into the HP-UX Kernel|Main/BuildingAFSIntoTheHP-UXKernel]]
86
87 ## <a name="Enabling AFS Login on HP-UX Syst"></a> Enabling AFS Login on HP-UX Systems
88
89 [[Enabling AFS Login on HP-UX Systems|Main/EnablingAFSLoginOnHP-UXSystems]]
90
91 Proceed to Loading and Creating Client Files.
92
93 # <a name="Getting Started on IRIX Systems"></a> Getting Started on IRIX Systems
94
95 ## <a name="Loading AFS Into The IRIX Kernel"></a> Loading AFS Into The IRIX Kernel
96
97 [[Loading AFS into the IRIX Kernel|Main/LoadingAFSIntoTheIRIXKernel]]
98
99 ## <a name="Enabling AFS Login on IRIX Syste"></a> Enabling AFS Login on IRIX Systems
100
101 [[Enabling AFS Login on IRIX Systems|Main/EnablingAFSLoginOnIRIXSystems]].
102
103 After taking any necessary action, proceed to Loading and Creating Client Files.
104
105 # <a name="Getting Started on Linux Systems"></a> Getting Started on Linux Systems
106
107 In this section you load AFS into the Linux kernel. Then incorporate AFS modifications into the machine's Pluggable Authentication Module (PAM) system, if you wish to enable AFS login.
108
109 ## <a name="Loading AFS into the Linux Kerne"></a> Loading AFS into the Linux Kernel
110
111 [[Loading AFS into the Linux Kernel|Main/LoadingAFSIntoTheLinuxKernel]]
112
113 ## <a name="Enabling AFS Login on Linux Syst"></a> Enabling AFS Login on Linux Systems
114
115 [[Enabling AFS Login on Linux Systems|Main/EnablingAFSLoginOnLinuxSystems]]
116
117 Proceed to Loading and Creating Client Files.
118
119 # <a name="Getting Started on Solaris Syste"></a> Getting Started on Solaris Systems
120
121 In this section you load AFS into the Solaris kernel. Then incorporate AFS modifications into the machine's Pluggable Authentication Module (PAM) system, if you wish to enable AFS login.
122
123 ## <a name="Loading AFS into the Solaris Ker"></a> Loading AFS into the Solaris Kernel
124
125 [[Loading AFS into the Solaris Kernel|Main/LoadingAFSIntoTheSolarisKernel]]
126
127 ## <a name="Enabling AFS Login on Solaris Sy"></a> Enabling AFS Login on Solaris Systems
128
129 [[Enabling AFS Login on Solaris Systems|Main/EnablingAFSLoginOnSolarisSystems]]
130
131 Proceed to Loading and Creating Client Files.
132
133 # <a name="Loading and Creating Client File"></a> Loading and Creating Client Files
134
135 Now copy files from the AFS CD-ROM to the /usr/vice/etc directory. On some platforms that use a dynamic loader program to incorporate AFS modifications into the kernel, you have already copied over some the files. Copying them again does no harm.
136
137 Every AFS client machine has a copy of the /usr/vice/etc/ThisCell file on its local disk to define the machine's cell membership for the AFS client programs that run on it. Among other functions, this file determines the following:
138
139 \* The cell in which users authenticate when they log onto the machine, assuming it is using an AFS-modified login utility
140
141 \* The cell in which users authenticate by default when they issue the klog command
142
143 \* The cell membership of the AFS server processes that the AFS command interpreters on this machine contact by default
144
145 Similarly, the /usr/vice/etc/CellServDB file on a client machine's local disk lists the 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 the list of database server machines is wrong, then users working on this machine cannot access the cell. The chapter in the IBM AFS Administration Guide about administering client machines explains how to maintain the file after creating it. A version of the client [[CellServDB]] file was created during the installation of your cell's first machine (in Creating the Client [[CellServDB]] File). It is probably also appropriate for use on this machine.
146
147 Remember that the Cache Manager consults the /usr/vice/etc/CellServDB file only at reboot, when it copies the information into the kernel. For the Cache Manager to perform properly, the [[CellServDB]] file must be accurate at all times. Refer to the chapter in the IBM AFS Administration Guide about administering client machines for instructions on updating this file, with or without rebooting.
148
149 1. On the local /cdrom directory, mount the AFS CD-ROM for this machine's system type, if it is not already. For instructions on mounting CD-ROMs (either locally or remotely via NFS), consult the operating system documentation.
150
151 1. Copy files to the local /usr/vice/etc directory.
152
153 This step places a copy of the AFS initialization script (and related files, if applicable) into the /usr/vice/etc directory. In the preceding instructions for incorporating AFS into the kernel, you copied the script directly to the operating system's conventional location for initialization files. When you incorporate AFS into the machine's startup sequence in a later step, you can choose to link the two files.
154
155 On some system types that use a dynamic kernel loader program, you previously copied AFS library files into a subdirectory of the /usr/vice/etc directory. On other system types, you copied the appropriate AFS library file directly to the directory where the operating system accesses it. The following commands do not copy or recopy the AFS library files into the /usr/vice/etc directory, because on some system types the library files consume a large amount of space. If you want to copy them, add the -r flag to the first cp command and skip the second cp command.
156
157 # cd /cdrom/sysname/root.client/usr/vice/etc
158
159 # cp -p \* /usr/vice/etc
160
161 # cp -rp C /usr/vice/etc
162
163 1. Create the /usr/vice/etc/ThisCell file.
164
165 # echo "cellname" &gt; /usr/vice/etc/ThisCell
166
167 1. Create the /usr/vice/etc/CellServDB file. Use a network file transfer program such as ftp or NFS to copy it from one of the following sources, which are listed in decreasing order of preference:
168
169 \* Your cell's central [[CellServDB]] source file (the conventional location is /afs/cellname/common/etc/CellServDB)
170
171 \* The global [[CellServDB]] file maintained by the AFS Product Support group
172
173 \* An existing client machine in your cell
174
175 \* The [[CellServDB]].sample file included in the sysname/root.client/usr/vice/etc directory of each AFS CD-ROM; add an entry for the local cell by following the instructions in [[Creating the Client CellServDB File|Main/CreatingTheClientCellServDBFile]]
176
177 ## <a name="Configuring the Cache"></a> Configuring the Cache
178
179 [[Configuring the Cache|Main/ConfiguringTheCache]]
180
181 ## <a name="Configuring the Cache Manager"></a> Configuring the Cache Manager
182
183 [[Configuring the Cache Manager|Main/ConfiguringTheCacheManager]]
184
185 ## <a name="Starting the Cache Manager and I"></a> Starting the Cache Manager and Installing the AFS Initialization Script
186
187 In this section you run the AFS initialization script to start the Cache Manager. If the script works correctly, perform the steps that incorporate it into the machine's startup and shutdown sequence. If there are problems during the initialization, attempt to resolve them. The AFS Product Support group can provide assistance if necessary.
188
189 On machines that use a disk cache, it can take a while for the afsd program to run the first time on a machine, because it must create all of the Vn files in the cache directory. Subsequent Cache Manager initializations do not take nearly as long, because the Vn files already exist.
190
191 On system types that use a dynamic loader program, you must reboot the machine before running the initialization script, so that it can freshly load AFS modifications into the kernel.
192
193 Proceed to the instructions for your system type:
194
195 \* Running the Script on AIX Systems
196
197 \* Running the Script on Digital UNIX Systems
198
199 \* Running the Script on HP-UX Systems
200
201 \* Running the Script on IRIX Systems
202
203 \* Running the Script on Linux Systems
204
205 \* Running the Script on Solaris Systems
206
207 ## <a name="Running the Script on AIX System"></a> Running the Script on AIX Systems
208
209 [[Initialization Script on AIX|Main/InitializationScriptOnAIX]]
210
211 If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to Setting Up Volumes and Loading Binaries into AFS. Otherwise, the installation is complete.
212
213 ## <a name="Running the Script on Digital UN"></a> Running the Script on Digital UNIX Systems
214
215 [[Initialization Script on Digital UNIX|Main/InitializationScriptOnDigitalUNIX]]
216
217 If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to Setting Up Volumes and Loading Binaries into AFS. Otherwise, the installation is complete.
218
219 ## <a name="Running the Script on HP-UX Syst"></a> Running the Script on HP-UX Systems
220
221 [[Initialization Script on HP-UX|Main/InitializationScriptOnHP-UX]]
222
223 If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to Setting Up Volumes and Loading Binaries into AFS. Otherwise, the installation is complete.
224
225 ## <a name="Running the Script on IRIX Syste"></a> Running the Script on IRIX Systems
226
227 [[Initialization Script on IRIX|Main/InitializationScriptOnIRIX]]
228
229 If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to Setting Up Volumes and Loading Binaries into AFS. Otherwise, the installation is complete.
230
231 ## <a name="Running the Script on Linux Syst"></a> Running the Script on Linux Systems
232
233 [[Initialization Script on Linux|Main/InitializationScriptOnLinux]]
234
235 If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to Setting Up Volumes and Loading Binaries into AFS. Otherwise, the installation is complete.
236
237 ## <a name="Running the Script on Solaris Sy"></a> Running the Script on Solaris Systems
238
239 [[Initialization Script on Solaris|Main/InitializationScriptOnSolaris]]
240
241 If a volume for housing AFS binaries for this machine's system type does not already exist, proceed to Setting Up Volumes and Loading Binaries into AFS. Otherwise, the installation is complete.
242
243 # <a name="Setting Up Volumes and Loading B"></a> Setting Up Volumes and Loading Binaries into AFS
244
245 In this section, you link /usr/afsws on the local disk to the directory in AFS that houses AFS binaries for this system type. The conventional name for the AFS directory is /afs/cellname/sysname/usr/afsws.
246
247 If this machine is an existing system type, the AFS directory presumably already exists. You can simply create a link from the local /usr/afsws directory to it. Follow the instructions in Linking /usr/afsws on an Existing System Type.
248
249 If this machine is a new system type (there are no AFS machines of this type in your cell), you must first create and mount volumes to store its AFS binaries, and then create the link from /usr/afsws to the new directory. See Creating Binary Volumes for a New System Type.
250
251 You can also store UNIX system binaries (the files normally stored in local disk directories such as /bin, /etc, and /lib) in volumes mounted under /afs/cellname/sysname. See Storing System Binaries in AFS .
252
253 Linking /usr/afsws on an Existing System Type
254
255 If this client machine is an existing system type, there is already a volume mounted in the AFS filespace that houses AFS client binaries for it.
256
257 1. Create /usr/afsws on the local disk as a symbolic link to the directory /afs/cellname/@sys/usr/afsws. You can specify the actual system name instead of @sys if you wish, but the advantage of using @sys is that it remains valid if you upgrade this machine to a different system type.
258
259 # ln -s /afs/cellname/@sys/usr/afsws /usr/afsws
260
261 1. (Optional) If you believe it is helpful to your users to access the AFS documents in a certain format via a local disk directory, create /usr/afsdoc on the local disk as a symbolic link to the documentation directory in AFS (/afs/cellname/afsdoc/format\_name).
262
263 # ln -s /afs/cellname/afsdoc/format\_name /usr/afsdoc
264
265 An alternative is to create a link in each user's home directory to the /afs/cellname/afsdoc/format\_name directory.
266
267 # <a name="Creating Binary Volumes for a Ne"></a> Creating Binary Volumes for a New System Type
268
269 If this client machine is a new system type, you must create and mount volumes for its binaries before you can link the local /usr/afsws directory to an AFS directory.
270
271 To create and mount the volumes, you use the klog command to authenticate as an administrator and then issue commands from the vos and fs command suites. However, the command binaries are not yet available on this machine (by convention, they are accessible via the /usr/afsws link that you are about to create). You have two choices:
272
273 \* Perform all steps except the last one (Step 10) on an existing AFS machine. On a file server machine, the klog, fs and vos binaries reside in the /usr/afs/bin directory. On client machines, the klog and fs binaries reside in the /usr/afsws/bin directory and the vos binary in the /usr/afsws/etc directory. Depending on how your PATH environment variable is set, you possibly need to precede the command names with a pathname.
274
275 If you work on another AFS machine, be sure to substitute the new system type name for the sysname argument in the following commands, not the system type of the machine on which you are issuing the commands.
276
277 \* Copy the necessary command binaries to a temporary location on the local disk, which enables you to perform the steps on the local machine. The following procedure installs them in the /tmp directory and removes them at the end. Depending on how your PATH environment variable is set, you possibly need to precede the command names with a pathname.
278
279 Perform the following steps to create a volume for housing AFS binaries.
280
281 1. Working either on the local machine or another AFS machine, mount the AFS CD-ROM for the new system type on the /cdrom directory, if it is not already. For instructions on mounting CD-ROMs (either locally or remotely via NFS), consult the operating system documentation.
282
283 1. If working on the local machine, copy the necessary binaries to a temporary location on the local disk. Substitute a different directory name for /tmp if you wish.
284
285 # cd /cdrom/new\_sysname/root.server/usr/afs/bin
286
287 # cp -p klog /tmp
288
289 # cp -p fs /tmp
290
291 # cp -p vos /tmp
292
293 1. Authenticate as the user admin.
294
295 # klog admin
296
297 <dl>
298   <dt> Password</dt>
299   <dd> admin_password </dd>
300 </dl>
301
302 1. Issue the vos create command to create volumes for storing the AFS client binaries for this system type. The following example instruction creates volumes called sysname, sysname.usr, and sysname.usr.afsws. Refer to the IBM AFS Release Notes to learn the proper value of sysname for this system type.
303
304 # vos create   sysname
305
306 # vos create   sysname.usr
307
308 # vos create   sysname.usr.afsws
309
310 1. Issue the fs mkmount command to mount the newly created volumes. Because the root.cell volume is replicated, you must precede the cellname part of the pathname with a period to specify the read/write mount point, as shown. Then issue the vos release command to release a new replica of the root.cell volume, and the fs checkvolumes command to force the local Cache Manager to access them.
311
312 # fs mkmount -dir /afs/.cellname/sysname -vol sysname
313
314 # fs mkmount -dir /afs/.cellname/sysname/usr -vol sysname.usr
315
316 # fs mkmount -dir /afs/.cellname/sysname/usr/afsws -vol sysname.usr.afsws
317
318 # vos release root.cell
319
320 # fs checkvolumes
321
322 1. Issue the fs setacl command to grant the l (lookup) and r (read) permissions to the system:anyuser group on each new directory's ACL.
323
324 # cd /afs/.cellname/sysname
325
326 # fs setacl -dir . usr usr/afsws -acl system:anyuser rl
327
328 1. Issue the fs setquota command to set an unlimited quota on the volume mounted at the /afs/cellname/sysname/usr/afsws directory. This enables you to copy all of the appropriate files from the CD-ROM into the volume without exceeding the volume's quota.
329
330 If you wish, you can set the volume's quota to a finite value after you complete the copying operation. At that point, use the vos examine command to determine how much space the volume is occupying. Then issue the fs setquota command to set a quota that is slightly larger.
331
332 # fs setquota /afs/.cellname/sysname/usr/afsws 0
333
334 1. Copy the contents of the indicated directories from the CD-ROM into the /afs/cellname/sysname/usr/afsws directory.
335
336 # cd /afs/.cellname/sysname/usr/afsws
337
338 # cp -rp /cdrom/sysname/bin .
339
340 # cp -rp /cdrom/sysname/etc .
341
342 # cp -rp /cdrom/sysname/include .
343
344 # cp -rp /cdrom/sysname/lib .
345
346 1. Issue the fs setacl command to set the ACL on each directory appropriately. To comply with the terms of your AFS License agreement, you must prevent unauthorized users from accessing AFS software. To enable access for locally authenticated users only, set the ACL on the etc, include, and lib subdirectories to grant the l and r permissions to the system:authuser group rather than the system:anyuser group. The system:anyuser group must retain the l and r permissions on the bin subdirectory to enable unauthenticated users to access the klog binary. To ensure that unauthorized users are not accessing AFS software, check periodically that the ACLs on these directories are set properly.
347
348 # cd /afs/.cellname/sysname/usr/afsws
349
350 # fs setacl -dir etc include lib -acl system:authuser rl system:anyuser none
351
352 10. Perform this step on the new client machine even if you have performed the previous steps on another machine. Create /usr/afsws on the local disk as a symbolic link to the directory /afs/cellname/@sys/usr/afsws. You can specify the actual system name instead of @sys if you wish, but the advantage of using @sys is that it remains valid if you upgrade this machine to a different system type.
353
354 # ln -s /afs/cellname/@sys/usr/afsws /usr/afsws
355
356 11. (Optional) To enable users to issue commands from the AFS suites (such as fs) without having to specify a pathname to their binaries, include the /usr/afsws/bin and /usr/afsws/etc directories in the PATH environment variable you define in each user's shell initialization file (such as .cshrc).
357
358 12. (Optional) If you believe it is helpful to your users to access the AFS documents in a certain format via a local disk directory, create /usr/afsdoc on the local disk as a symbolic link to the documentation directory in AFS (/afs/cellname/afsdoc/format\_name).
359
360 # ln -s /afs/cellname/afsdoc/format\_name /usr/afsdoc
361
362 An alternative is to create a link in each user's home directory to the /afs/cellname/afsdoc/format\_name directory.
363
364 13. (Optional) If working on the local machine, remove the AFS binaries from the temporary location. They are now accessible in the /usr/afsws directory.
365
366 # cd /tmp
367
368 # rm klog fs vos
369
370 � IBM Corporation 2000. All Rights Reserved