On Mon, 17 May 2004 [log in to unmask] wrote:
> Hi Steve,
>
> I'd like to add afs to my configuration can you help me?
>
> cheers
> alessandra
Alessandra,
I've replied to list since there is good chance someone else will want
to do this.
With AFS i am of the opinion that you need to recompile it so frequently
any way with kernel updates that it is best configured at that time
rather than later.
I keep this note below which allows you set a default cell and an
up to date CellServDB at compile time for the rpm.
After that we just install them as an rpm addition to LCG and the job
is done. There is an LCFG object for AFS but last time I looked at it
annoyed me for some reason and I have not used it since.
Generally you can steal afs builds for most kernels a couple of days
after they come out from us at
http://kick.hepgrid.clrc.ac.uk/yum/openafs/
though you will have pop around RAL's firewall to get to them.
Obviously they have default cell rl.ac.uk but then in reality
that does perhaps not matter in a grid environment where you don't
even know where you are running anyway.
We don't install gsiklog at this time but perhaps we should....
OPENAFS RPMS.
Unfortuanetly every time Redhat releases a new kernel that you want
to install you have to rebuild openafs rpm.
Suppose redhat has just released kernels.
kernel-2.4.20-20.9.i386.rpm
kernel-BOOT-2.4.20-20.9.i386.rpm
kernel-doc-2.4.20-20.9.i386.rpm
kernel-source-2.4.20-20.9.i386.rpm
and the other architectures for redhat 9. To generate a suitable
openafs rpm do the following, this can all be done as your self
there is no need to be root for any of this, (except 2.5) below.
1) Create an ~/.rpmmacros file
%_topdir /home/csf/traylens/redhat
2) mkdir -p ~/redhat/RPMS/i386
mkdir ~/redhat/SOURCE
mkdir ~/redhat/BUILD
mkdir ~/redhat/SRPMS
mkdir ~/redhat/SPECS
2.5) You must install the kernel-source rpm for the kernel you want
to build against. The running kernel is irrelavent to this process.
rpm -Uvh kernel-source-2.4.20-20.9.i386.rpm
or
yum install kernel-source
3) Visit http://www.openafs.org/release/latest.html
and install the latest src rpm for the OS you have, there is
no need to download it first but you can if you so wish.
$ rpm --httpproxy wwwcache.rl.ac.uk:8080 \
-Uvh
http://www.openafs.org/dl/openafs/1.2.10/redhat-9.0/openafs-1.2.10-rh9.0.1.src.rpm
4) Move to ~/redhat/SPECS and prepare to edit openafs.spec.
5) On the second line of openafs.spec you will find a line.
%define pkgrel 1
You should extend this with the output of `rpm -q kernel-source`
ie change this to.
%define pkgrel 1_2.4.20_20.9
NB, we have to chaange 2.4.20-20.7 to 2.4.20_20.9 since '-'
is not permitted within the release number.
5.5) You may want to update the CellServDB file.
cp /afs/grand.central.org/service/CellServDB \
redhat/SOURCE/openafs-CellServDB
5.6) And edit the default Cell.
vi ~/redhat/SOURCES/openafs-ThisCell
6) Add /usr/kerberos/bin to your path somehow.
$ export PATH=$PATH:/usr/kerberos/bin
$ setenv PATH ${PATH}:/usr/kerberos/bin
7) Build the package.
$ rpmbuild -ba ~/redhat/SPECS/openafs.spec
Note with RedHat < 8 use rpm rather than rpmbuild.
If you are using bash then ignore 6 and just do
$ PATH=$PATH:/usr/kerberos/bin rpmbuild -ba ~/redhat/SPECS/openafs.spec
all on one line.
8) This after a long wait will generate.
~/redhat/RPMS/i386/openafs-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-client-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-compat-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-debuginfo-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-devel-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-kernel-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-kernel-source-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-kpasswd-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-krb5-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/RPMS/i386/openafs-server-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
~/redhat/SRPMS/openafs-1.2.10-rh9.0.1_2.4.20_20.9.src.rpm
Note how the release and kernel version is contained in the package
name.
openafs-kernel-1.2.10-rh9.0.1_2.4.20_20.9.i386.rpm
----^-------- |--^---|--^--|^|---------^-|
Package AFS OS AFS kernel version
version release
9) Finally put these yum so other people can use them and they can
be installed via that route.
They should be copied to
kick.hepgrid.clrc.ac.uk:/kickstart/yum/openafs/9/
and wait for nightly cron to add them to the repository.
good luck.
Steve
$Log: afs-rpms-howto.txt,v $
Revision 1.3 2003/12/02 11:10:55 traylens
Add how to change CellServDB.
Revision 1.2 2003/08/27 17:44:28 traylens
first version.
Revision 1.1 2003/08/27 17:23:31 traylens
Initial Entry.
--
Steve Traylen
[log in to unmask]
http://www.gridpp.ac.uk/
|