[an error occurred while processing this directive]
Loading client files onto the local disk
The first step in installing a client is to load AFS binaries onto the
local disk - namely, the afsd binary and files needed to incorporate
AFS into the kernel. These files must reside on the local disk of
every client machine.
Create the following directories for the local files:
# mkdir -p /usr/vice/etc # chmod 755 /usr/vice/etcNow
# cd /usr/vice/etcWe need to determine what version of HPUX you are running. If you do a
# uname -rit should tell you whether it is: B.10.20, or B.11.00. Now in the /usr/vice/etc directory, ftp to the anonymous afs distribution server where you can access AFS install files.
# ftp hpux.ncsa.uiuc.edu # user: ftp # passwd:Once the ftp session is established then go to one of the following directories depending on the version of HPUX you are using:
ftp> cd pub/afs-hp_ux102
ftp> cd pub/afs-hp_ux110
ftp> cd usr/afsws/root.client/usr/vice/etcWarning: Make sure you do not cd to /usr/afsws/root.client/usr/vice/etc above, (the / is in front of the usr) or else you could get the wrong versions of the binaries.
Now get the following files from this directory (make sure you are doing a binary transfer):
ftp> bin ftp> get afsd ftp> get afs.driverThen cd to the directory to get the libraries.
ftp> cd ../../../binNow get the library files:
ftp> get libafs.nonfs.a ftp> get libafs.aIf you get an error on the file that is fine (It isn't present in all versions of AFS.)
On the remote machine
ftp> cd /service/etcThen get the following files:
ftp> get ThisCell ftp> get CellServDBThis is all the local files you are going to need to retrieve for the AFS client.
ftp> quit
Copy the AFS driver file:
# cp /usr/vice/etc/afs.driver /usr/conf/master.d/afsCopy the library file:
# cp /usr/vice/etc/libafs.nonfs.a /usr/conf/lib/libafs.aBackup the existing kernel and configuration files to a safe place:
# cp /stand/vmunix /stand/vmunix.prev # cp /stand/system /stand/system.prevNow use method A or B to install the new kernel.
# sam -display your_display:0Where
your_display represents the hostname of the machine on which you are invoking SAM.
Choose the Kernel Configuration icon.
Choose the Drivers icon.
From the list of drivers, select afs.
Pull down the Actions menu.
Choose Add Driver to Kernel.
Pull down the Actions menu.
Choose Create a New Kernel.
Confirm your choices by choosing Yes and OK when prompted by subsequent popup windows. SAM will rebuild the kernel and reboot the system.
(B) Installing the AFS kernel manually
Edit /stand/system by adding a line with afs to the Subsystems section.
Change directories to /stand/build and build the kernel.
# cd /stand/build # mk_kernel
Save the original kernel to a safe location, move the new kernel into /stand/vmunix, and reboot.
# mv /stand/vmunix /stand/vmunix.orig # mv /stand/build/vmunix_test /stand/vmunix # reboot
First create the cache directory and set the correct permissions:
# mkdir /usr/vice/cache # chmod 700 /usr/vice/cacheNow create the cache configuration file:
# echo "/afs:/usr/vice/cache:80000" > /usr/vice/etc/cacheinfo # chmod 644 /usr/vice/etc/cacheinfoThe above is the standard mount location, /afs, and the standard cache location, /usr/vice/cache. It also is setting a cache size of 80MB. This can be increased or decreased as needed. The best method for setting up the cache area is creating a seperate partition (logical volume) of a local disk and mount it at /usr/vice/cache. Otherwise just use a portion of the /usr partition.
If you are having problems then contact us at
afs@ncsa.uiuc.edu.
Starting the cache manager
We are now going to start the cache manager which will initailize the
cache files in /usr/vice/cache and mount /afs.
First create the mount point for AFS:
# mkdir /afs # chmod 777 /afsNow make sure the cache manager mode bits are set correctly and the configuration files, then invoke the cache manager:
# chmod 755 /usr/vice/etc/afsd # chmod 644 /usr/vice/etc/CellServDB # chmod 644 /usr/vice/etc/ThisCell # /usr/vice/etc/afsd -verboseYou should now see it creating all the cache files. This may take awhile depending on the size of your cache.
# ln -s /afs/ncsa/hp_ux102/usr/afsws /usr/afsws
# ln -s /afs/ncsa/hp_ux110/usr/afsws /usr/afsws
We used to replace the login program supplied with HPUX with the AFS one. However, since we have transitioned to Kerberos authentication we can now use the login binary compile with the kerberos code. This binary will get a kerberos ticket and an AFS token when logging in.
# mv /bin/login /bin/login.orig # cp /afs/ncsa/packages/kerberos/HPUX_10.20/sbin/login.krb5 /bin/login.krb5 # ln -s /bin/login.krb5 /bin/login
# cp /afs/ncsa/service/etc/rc/hp_afs.rc /sbin/init.d/afsThen set the permissions:
# chmod 755 /sbin/init.d/afsNow set the following links for proper startup and shutdown:
# ln -s /sbin/init.d/afs /sbin/rc2.d/S460afs # ln -s /sbin/init.d/afs /sbin/rc0.d/K800afs
AFS binaries
If you want access to the AFS binaries then make sure that /usr/afsws/bin
and /usr/afsws/lib are in your PATH environment variable.
Setting up /usr/ncsa
In order to have access to other binaries we make available in AFS create the
following link:
# ln -s /afs/ncsa/packages/.link/HPUX_10.20 /usr/ncsa
# ln -s /afs/ncsa/packages/.link/HPUX_11.00 /usr/ncsa
/etc/passwd entries
If you need to add user entries to the local /etc/passwd file then you can
find most users in the following file:
/afs/ncsa/common/etc/passwd
Grep for the user in the above file and copy the line to the local passwd file.
[an error occurred while processing this directive]