Site hosted by Angelfire.com: Build your free website today!






Title:        afs_install
Author:       Paul Blackburn
Feedback to:  mpb@acm.org
Version:      2.1
Last updated: 1999/01/07
URL:          https://www.angelfire.com/hi/plutonic/afs_install.html

AFS install


0 Table of Contents

(Details of last change to this page)
(Change history of afs_install scripts)

1 Introduction
    1.1 Supported systems
    1.2 Summary of client install actions
2 Setting up afs_install at your site
    2.1 TFTP server
    2.2 Create a directory for AFS binaries
    2.3 Obtain afs_install.tar
    2.4 Unbundle afs_install.tar
    2.5 Copy AFS binaries to your TFTP server
    2.6 Create your site "afs client install" script
3 Are you licensed to use AFS?
4 More information on AFS
5 Conclusion
6 Change History

(Up to Top)

1 Introduction

afs_install is a set of Korn shell scripts that automate the process of installing AFS
on both clients and servers.

Using afs_install, an AFS client can be installed with commands similar to:

        # ensure right time, date, and TIMEZONE # step0
        echo "installing AFS client"            # step1
        server=your.tftp.server.hostname        # step2
        xec=afs_client_install                  # step3
        dst=/tmp/$xec                           # step4
        src=/usr/local/sbin/$xec                # step5
        tftp -go $dst $server $src image        # step6
        chmod 755 $dst                          # step7
        $dst                                    # step8
More information on using afs_install to install AFS servers
can be found in the README file (contained in afs_install.tar - see below).

(Up to Table of Contents)

1.1 Supported systems

The following systems are supported in afs_install:
    rs_aix32 for AIX 3.2
    rs_aix41 for AIX 4.1
    rs_aix42 for AIX 4.2
    rs_aix43 for AIX 4.3
(Up to Table of Contents)

1.2 Summary of client install actions

Here is a list of the things that afs_install scripts do when installing AFS client code: Detailed logs of the install activity are written to: /var/log/install/
(Up to Table of Contents)

2 Setting up afs_install at your site

The following tasks would be carried out by your site system administrator
to enable the type of client installation as shown above.

(Up to Table of Contents)

2.1 TFTP server

First, restrict TFTP access:
        echo allow:/vol/afs34a/ >> /etc/tftpaccess.ctl
Next, enable the TFTP daemon on one of your site hosts.
Hint: uncomment the tftpd entry in /etc/inetd.conf and re-start inetd.

(Up to Table of Contents)

2.2 Create a directory for AFS binaries

On your TFTP server, create a new filesystem such as: /vol/afs34a.

To accomodate the four current versions (rs_aix32 rs_aix41 rs_aix42, rs_aix43)
/vol/afs34a needs to be about 64 megabytes in size. For example:

        crfs -vjfs -grootvg -asize=131072 -amount=true -prw -Ayes -m/vol/afs34a
        mount /vol/afs34a

Create subdirectories for each machine type:

        cd /vol/afs34a
        mkdir rs_aix32 rs_aix41 rs_aix42 rs_aix43

(Up to Table of Contents)

2.3 Obtain afs_install.tar

This may be downloaded from:
        https://www.angelfire.com/hi/plutonic/images/afs_install.tar
Alternatively, afs_install.tar may be copied from the Transarc afs-contrib directory:
    file:///afs/transarc.com/public/afs-contrib/tools/afs_install/afs_install.tar
Copy this to: /vol/afs34a/afs_install.tar.

(Up to Table of Contents)

2.4 Unbundle afs_install.tar

Extract the scripts from the tar file. For example:
        cd /; tar -xvf /vol/afs34a/afs_install.tar
The files in the tar archive are relative names and extract to:
        usr/local/etc/afs_install/
        usr/local/man/man1
        usr/local/sbin/
Note: if you already have AFS, you may have a symbolic link:
        /usr/local -> /afs/@cell/@sys/usr/local
In this case, you would cd to the ReadWrite path before un-tar'ing:
        cd /afs/.@cell/@sys
        tar -xvf /vol/afs34a/afs_install.tar
        # Maybe a replicated volume? If so, do a vos release:
        volume=`fs lq | awk '{if (NR == 2) print $1}'`
        vos release $volume -verbose
(Up to Table of Contents)

2.5 Copy AFS binaries to your TFTP server

There are two ways to do this:
  1. Using your Transarc AFS binary distribution tape, use mk-afs-readtape
    to create the compressed archive files in /vol/afs34a. For example:
            # load rs_aix41 tape in drive
            cd /vol/afs34a/rs_aix41
            /usr/local/sbin/mk-afs-readtape 
    
  2. Using an existing /usr/afsws directory, use mk-afs-bundle
    to create the compressed archive files in /vol/afs34a. For example:
            cd /afs/@cell/rs_aix32/usr/afsws
            /usr/local/sbin/mk-afs-bundle /vol/afs34a/rs_aix32
    
(Up to Table of Contents)

2.6 Create your site "afs client install" script

An example site AFS client installation script is included in afs_install.tar:
        /usr/local/sbin/mk-afs-client-install
This is used in step3 of the simple install shown in the introduction (above).

Nota Bene
You must modify mk-afs-client-install to work at your site.
Two recommendations:

  1. Make a copy of mk-afs-client-install to afs_client_install.
    The advantage of doing this is that if you fetch a more up-to-date copy of
    afs_install.tar, you will not overwrite your site-specific copy of afs_client_install.
            cd /usr/local/sbin
            cp mk-afs-client-install afs_client_install
    
  2. Modify your site-specific afs_client_install to suit your site conventions.
            $your_favourite_editor afs_client_install
    
    In particular, set the following variables to your requirements:
    # site configurable variables follow ---------------------------------------
    
            server=your.tftp.server.hostname
            afs_install=/vol/afs34a/afs_install.tar     # on your TFTP server
            defaultcachesize=16      # 16 Physical Partitions is 64 megabytes
            default_cellname=your_afs_cellname
    
    # end of site configurable variables section -------------------------------
    
    Also, check the rest of afs_install_client particularily below the following line:
    # further site configurable variables section ------------------------------
    
(Up to Table of Contents)

3 Are you licensed to use AFS?

It is important that you have a License from Transarc Corporation to use AFS.

If you are uncertain whether you have the right to use AFS, then check first
with your system administrator.

For details about AFS licenses, contact Transarc at:

    web:   http://www.transarc.com
    email: information@transarc.com
    phone: +1 (412) 338-4400

(Up to Table of Contents)

4 More information on AFS

(Up to Table of Contents)

5 Conclusion

I hope you find afs_install useful.

It has certainly saved me lots of time installing new systems
and upgrading existing systems.

It should be simple to make it work on other system types.
If you would like to help make this possible, please let me know.

--
paul                             http://acm.org/~mpb

(Up to Table of Contents)

6 Change History

1.10 => 1.11 added change history
1.11 => 1.12 added link to afs_install scripts change history
1.12 => 1.16 added rs_aix43 details, header "98" -> "1998"
1.16 => 1.17 updated URLs for AFS FAQ and mpb
1.17 => 1.18 type on last change
1.18 => 1.19 links to ftp://ftp.transarc.com/pub/afs-contrib/ replaced by angelfire links
1.19 => 1.20 more links changed to angelfire
1.20 => 1.21 fixed CHANGES link
1.21 => 2.1 switch to new release: 2.1


(Up to Table of Contents) (Up to Top)









































FIN