This is a sample of the afsclient.cust file.
####################################################################
#
# Module: <afsclient.cust>
#
#-------------------------------------------------------------------
#
# Description: This script is a sample which is designed to be used
# as a guide for users who may want to install AFS on SP nodes.
# This script is based on a premise that the Control Workstation (CW)
# has already been installed and activated as an AFS client.
#
# This sample script is to be executed by "root" user on the SP node.
# This may be used with the /tftpboot/script.cust with modification
# based on the customer requirements and configuration.
#
#######################################################################
PATH=/bin:/usr/bin:/etc:/usr/sbin:/usr/bin/X11:/var/sysman:/var/sysman/etc:
/etc/amd:/usr/lpp/ssp/bin:/usr/lpp/ssp/install/bin:/usr/afsws/etc:/usr/vice/etc:
SERVER='cat /etc/ssp/server_hostname | cut -d" " -f3'
##################################################################
# Create the required AFS directory on /usr filesystem. If the /usr is to
# be used as client/server make sure the directories are installed on the
# SP node server first, and then made available to the SP node clients.
# Make sure you have adequate space (about 5000K) is required to load the
# AFS execucatbles and files on the /usr filesystem.
# We will create the directories on /usr, and then copy the required files
# from the CW to the /usr/vice/etc directory on the SP node.
# For our sample configuration we will reference the CW as "$SERVER"
/usr/sbin/chfs -a size='+10000' /usr
/bin/mkdir -p /usr/vice/etc/C
/bin/mkdir /usr/vice/etc/dkload
# Activate the ticket granting ticket so the remote copy will work successfully
#to bring AFS files from the CW to the SP node.
/usr/lpp/ssp/rcmd/bin/rcmdtgt
# Copy the files from CW /usr/vice/etc directory to the SP node /usr/vice/etc
# directory on the SP node.
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/CellServDB /usr/vice/etc/CellServDB
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/ThisCell /usr/vice/etc/ThisCell
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/afsd /usr/vice/etc/afsd
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/cacheinfo /usr/vice/etc/cacheinfo
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/C/* /usr/vice/etc/C/
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/dkload/* /usr/vice/etc/dkload/
/usr/lpp/ssp/rcmd/bin/rcp $SERVER:/usr/vice/etc/rc.afs /usr/vice/etc/rc.afs
######################################################################
# This next step will setup the cache that will be used on the SP nodes
# These values can be modified, based on the amount of users that will be
# using afs services. We will use the same values as placed on the CW for our
# configuration being used in the sample script. The values to be modified are
# the filesystem size for /usr/vice/cache, and /usr/vice/etc/cacheinfo size.
# This configuration will setup for a medium afs configuration of 4-8 users.
# We will use a cacheinfo of 80000K, and filesystem of 90000K.
# We will create the /usr/vice/cache directory and then create a JFS that will
# be mounted
/bin/mkdir /usr/vice/cache
/usr/sbin/crfs -v jfs -g rootvg -a size=180000 -m '/usr/vice/cache' -A 'yes' -p 'rw'
/bin/sleep 5
/usr/sbin/mount /usr/vice/cache
#######################################################################
# This next step will setup the the afs as one of the supported filesystems
# in the /etc/vfs file. You can either "edit" and place the information
# afs 4 none none
# in the file, or append the information using the "echo" command.
/bin/echo "afs 4 none none" >> /etc/vfs
#######################################################################
# This next step will setup the the afs directory, and then activiate the afs
# daemon (afsd) that connect to the AFS server. This will be executed by
# starting the /etc/rc.afs script.
#
# The /etc/rc.afs will setup and execute the AFS libraries to be used as
# kernel extension in the SP nodes. You may want to use different execution
# variables based on you configuration and its use with nfs services
# We expect the files to be available in the /usr/vice/etc/dkload directory
#
# /usr/vice/etc/dkload/cfgexport -a export.ext
# /usr/vice/etc/dkload/cfgafs -a afs.ext
#
#######################################################################
/bin/mkdir /afs
/usr/vice/etc/rc.afs
/bin/sleep 60
#######################################################################
# This next step will setup a soft link of the /afs/<cellname>/@sys/usr/afsws
# directory to /usr/afsws on the SP node. The exact pathnames will need
# to reflect the afs configuration cell name, and the system directory.
# This will be based on where the afsws executables are located.
#
# /bin/ln -s /afs/<cellname>/@sys/usr/afsws /usr/afsws
# My cell execution will be the following:
/bin/ln -s /afs/ppd.pok.ibm.com/rs_aix41/usr/afsws /usr/afsws
#######################################################################
# This next step will setup the itab entry for afs in the /etc/inittab file.
#
/usr/sbin/mkitab "rcafs:2:wait:/usr/vice/etc/rc.afs>/dev/console 2>&1 /
# Start AFS daemon "
########################################################################
# This next step will add the /usr/afsws/etc /usr/afsws/bin and the
# /usr/vice/etc into your current path environment. You may want to
# update the path in .profile, or ksh.rc or other login setup.
PATH=$PATH:/usr/afsws/etc:/usr/afsws/bin:/usr/vice/etc: