
(Andrew File System)
Fermi Linux 7x
Installing with multiple or custom kernels
This web page goes along with my previous web page
Fermi Linux 7x - What and How to Install AFS
This is for those folks who have multiple 'stock' kernels, or have a custom
kernel that they built by hand. If you have a mixture of both, you should
skip down to the custom kernel section.
STOCK KERNELS
Stock kernels are kernels that come straight from Fermi Linux, or RedHat (or
Mandrake). They haven't been modified by you. You simply installed the rpm's,
and away you went. (Please note that kernels found in 'rawhide' or 'beta'
releases are not considered stock kernels for these instructions)
- Follow the steps in the previous webpage
to install OpenAFS for the kernel you are currently booted up into.
- Find out all of the stock kernels that you have.
- rpm -q kernel
- FTP to fermi's openafs area, for 7x releases
- ftp://linux.fnal.gov/linux/contrib/openafs/7x/
- Download all of the openafs-kernel rpm's that match your kernels, except
for the one downloaded in step 1.
Please note that at the time of this writting, you can safely disregard the
distribution (FL, RH, MD) and just download the rpm based soley based on the
kernel numbers.
*Do the following as root*
- Install (don't upgrade) the openafs-kernel rpms
- rpm -ivh --force openafs-kernel*
NOTE: you have to force them in because the all have a common file called
SymTable. We will fix this in step 6
- Fix the SymTable
- /usr/vice/etc/afsmodname -x -f /usr/vice/etc/modload/SymTable
/usr/vice/etc/modload/libafs*.o
If you are building this on some type of Enterprise kernel, or a Mandrake Linux kernel,
then you should do the following.
- /usr/vice/etc/afsmodname -S iget4_locked -x -f /usr/vice/etc/modload/SymTable
/usr/vice/etc/modload/libafs*.o
CUSTOM KERNELS
Custom Kernels can be everything from a kernel you got from kernel.org and
recompiled, a kernel from SGI, a kernel from the rawhide release, or just a
normal stock kernel, that you recompiled with different options.
- Download and install the openafs source rpm
- rpm -Uvh
ftp://linux.fnal.gov/linux/contrib/openafs/7x/SRPMS/openafs-1.2.6-FL711.1.src.rpm
- Get in the right directory
- cd /usr/src/redhat/SPECS
- (optional) - edit openafs-1.2.6.spec
change
- %define osvers FL711
to
- %define osvers (whatever your want)
- rebuild the rpm
- rpm -ba openafs-1.2.6.spec
NOTE1: Sometimes you don't have all the right development rpm's installed to
build this rpm. Some of the most common ones missing are pam-devel, krb5-devel, and bison.
NOTE2: If the build fails on something dealing with aklog, edit the spec file
again and change '%define krb5support 1' to '%define krb5support 0'
- install the appropriate rpm's that are built
- rpm -Uvh /usr/src/redhat/RPMS/i386/openafs-1.2.6-
- rpm -Uvh /usr/src/redhat/RPMS/i386/openafs-kernel-1.2.6-
- rpm -Uvh /usr/src/redhat/RPMS/i386/openafs-client-1.2.6-
- Start service.
- If you are sure you didn't have AFS running when you started
- /etc/init.d/afs start
- If you had to remove afs-fermi, or might have had openafs-fermi installed
- /sbin/reboot
If you have any comments or questions please write to
Troy Dawson
who is the maintainer of these rpms
Back to AFS
Back Home
August 21, 2002