[an error occurred while processing this directive]
Upgrading client from script
There is currently no script available to update the kernel.
Replacing client files onto the local disk
Most of the client setup has already been done when it was initially installed.
All we need to do is replace a few client binaries and change a symbolic link.
First we want to back up the old version of the AFS client:
# mv /usr/vice/etc/afsd /usr/vice/etc/afsd.old
Go to the following directory.
# cd /afs/ncsa/hp_ux102Once you are in the above directory then
# 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 copy the new versions of the client binaries:
# cp afsd /usr/vice/etc/ # chmod 755 /usr/vice/etc/afsdWe can test the following files and see if there are any differences. If so then we will want to replace the files with the latest copy.
# diff /usr/vice/etc/CellServDB /afs/ncsa/service/etc/CellServDB # diff /sbin/init.d/afs /afs/ncsa/service/etc/rc/hp_afs.rcIf there are differences on any of the above files then replace the local copy with the newer copy from AFS.
Copying the Kernel Modules
First change to the appropriate root.client directory in AFS:
# cd /afs/ncsa/hp_ux102 # 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 copy the new Kernel modules:
# cp /usr/vice/etc/afs.driver /usr/vice/etc/afs.driver.old # cp afs.driver /usr/vice/etc # cp afs.driver /usr/conf/master.d/afs
Now change to the root.client/bin directory:
# cd ../../../binAt this point execute a
pwd command to make sure that you are in /afs/ncsa/hp_ux102/<client version>/root.client/bin
Now copy the new kernel mod:
If the machine supports NFS server functionality:
# cp /usr/vice/etc/libafs.a /usr/vice/etc/libafs.a.old # cp libafs.a /usr/vice/etc/libafs.a # cp libafs.a /usr/conf/lib/libafs.aIf the machine does not support NFS server functionality:
# cp /usr/vice/etc/libafs.nonfs.a /usr/vice/etc/libafs.nonfs.a.old # cp libafs.nonfs.a /usr/vice/etc/libafs.nonfs.a # cp libafs.nonfs.a /usr/conf/lib/libafs.a
# mv /usr/afsws /usr/afsws.old # ln -s /afs/ncsa/(hw type)/usr/afsws /usr/afswsReplace (hw type) with the system type of the machine which was determined above (ie. /afs/ncsa/hp_ux102/usr/afsws).
We want to replace the old AFS login program.
# mv /bin/login.afs /bin/login.afs.old # cp /usr/afsws/bin/login /bin/login.afs
# 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.
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
Testing to see if the newest version of the
client is installed
You can run the following script which will tell you if you are running
the latest version of the AFS client:
# /afs/ncsa/common/bin/afs_version[an error occurred while processing this directive]