Installing AFS on Solaris 9
AFS Kernel Modifications
The modifications that allow the AFS Cache Manager to function need to be incorporated into the kernel. These instructions are for using the dynamic kernel loader "modload" provided by Sun Microsystems. To incorporate them:
- Verify that the modload binary is available on local disk
ls /usr/sbin/modload
- Check contents of /usr/vice/etc/modload
This directory should contain binaries for both 32 and 64-bit solaris kernels. You should get something that looks like:
ls /usr/vice/etc/modload libafs.nonfs.o libafs64.nonfs.o
- Create Solaris kernel extension file
Create the appropriate kernel extension file for your version of the operating system. To tell whether you are running a 32 or 64-bit kernel, run "isainfo -b".
for 32-bit kernels
for 64-bit kernels
cp /usr/vice/etc/modload/libafs.nonfs.o /kernel/fs/afs
cp /usr/vice/etc/modload/libafs64.nonfs.o /kernel/fs/sparcv9/afs
- Edit /etc/name_to_sysnum
Add the following line:
afs 65
so that the resulting file looks like:
... ulimit 63 afs 65 rmdir 79 mkdir 80 ...
- Reboot your machine
/usr/sbin/reboot
- Dynamically load AFS into the kernel
The first time you reboot, you'll have to dynamically load the kernel module. After that, this step won't be needed on reboots. To load it:
for 32-bit kernels
for 64-bit kernels
umask 022 /usr/sbin/modload /kernel/fs/afs
umask 022 /usr/sbin/modload /kernel/fs/sparcv9/afs
- Verify that AFS loaded correctly
The command to check this on Solaris is modinfo, which should return something that looks like this (the numbers don't matter, but the existence of the entries is important):
# /usr/sbin/modinfo | grep afs 101 102754f0 5f782 73 1 afs (afs syscall interface) 101 102754f0 5f782 18 1 afs (afs filesystem)
- Install the init script
Solaris needs to find the init script in two locations:
cp /usr/vice/etc/afs.rc /etc/init.d/afs chmod 555 /etc/init.d/afs ln -s /etc/init.d/afs /etc/rc3.d/S09afs ln -s /etc/init.d/afs /etc/rc2.d/K66afs
- Return to the AFS Install Guide to set up your AFS cache and finish the installation.



