[OpenAFS-devel] compiling/installing 1.3.87

Martin MOKREJŠ mmokrejs@ribosome.natur.cuni.cz
Fri, 19 Aug 2005 22:00:50 +0200


Kirby Bakken wrote:
> Please forgive my dumb questions....
> 
> I'm running RHEL4, with the '2.6.9-11.ELsmp' kernel.  I've got the 1.3.87 
> openafs src package, and go into the openafs-1.3.87 dir and type in:
> 
> ./configure --with-afs-sysname=amd64_linux26 --enable-transarc-paths
> make
> make dest
> su root

>From here it is wrong, do instead (the commented lines are untested):

mkdir /usr/vice
mkdir /usr/vice/etc
cd i386_linux26/dest
cd root.client/usr/vice/etc
tar cvf - . | (cd /usr/vice/etc; tar xfp -)
# cp -p afs.rc /etc/rc.d/init.d/afs
# cd /etc/rc3.d
# ln -s ../init.d/afs S99afs
# cd ../rc0.d
# ln -s ../init.d/afs K01afs
# cp /usr/vice/etc/afs.conf /etc/sysconfig/afs
/etc/rc.d/init.d/afs start
mkdir /vicepa
echo "/dev/disk  /vicepa  xfs  defaults  0  2">> /etc/fstab
echo "/dev/disk  /usr/vice/cache  ext2  defaults  0  2">> /etc/fstab
echo "mydomain.com" > /usr/vice/etc/ThisCell
vim "/usr/vice/etc/CellServDB"
mkdir /usr/vice/cache
echo "/afs:/usr/vice/cache:500000" > /usr/vice/etc/cacheinfo
cp ../../../../lib/pam_afs.krb.so.1  /lib/security
cd /lib/security
vim /etc/sysconfig/afs
ln -s pam_afs.krb.so.1 pam_afs.so
echo "auth  sufficient  /lib/security/pam_afs.so   try_first_pass  ignore_root" >> /etc/pam.d/login
cd ../../../../root.server/usr/afs
tar cvf - . | (cd /usr/afs; tar xfp -)


> make install

"make install" is screwed and installs partly into transarc paths and partly into /usr/local.
I think about a year ago someone posted a nice summary what all is wrong in "make install"
procedure. Maybe it was Jim Rees??? Look into the archives if you care. I use the transarc paths
as you see above.

> 
> At this point I'm lost...  The make install has copied the binaries to 
> /usr/local/bin, and the kernel module to /usr/vice/etc.  When I downloaded 
> the 1.3.87 RPMs, these also 'installed' /etc/sysconfig/afs and 
> /etc/rc.d/init.d/afs files, as well as populated the /usr/vice/etc 
> directory with CellServDB, ThisCell, etc.... 
> 
> What am I missing to get afs to autostart/load?
> 
> =======================
> Kirby Bakken
> ESW Build Architect
> Rochester, MN
> email: kirbyb@us.ibm.com
> ezpage:kirbyb
> 507-253-4549 / Tie:  553-4549
> Fax:  507-253-3495
> 
> ......one more straw can't possibly matter....
> 

-- 
Martin Mokrejs
Email: 'bW9rcmVqc21Acmlib3NvbWUubmF0dXIuY3VuaS5jeg==\n'.decode('base64')
GPG key is at http://www.natur.cuni.cz/~mmokrejs