[OpenAFS] Redhat-7.3 AFS server install attempt

Bill Broadley bill@math.ucdavis.edu
Wed, 15 May 2002 23:36:05 -0700


I've not installed AFS before, but I read all the documentation I
could find, I closely read the AFS-3 architectural document, and
am working closely with the:
	http://www.openafs.org/pages/doc/QuickStartUnix/auqbg002.htm

I first tried the source install, but there seemed to be missing pieces,
startup scrips and the like.  So after a successful compile I tried to
use the redhat-7.2 rpm's:

Step 1:  remove my first failed attempt
rpm --erase openafs-kernel-1.2.3-rh7.2.2 openafs-krb5-1.2.3-rh7.2.2 openafs-1.2.3-rh7.2.2 openafs-compat-1.2.3-rh7.2.2 openafs-server-1.2.3-rh7.2.2 openafs-devel-1.2.3-rh7.2.2 openafs-kernel-source-1.2.3-rh7.2.2 openafs-kpasswd-1.2.3-rh7.2.2 openafs-client-1.2.3-rh7.2.2

Step 2: remove all startup scripts and directories from the old install:
rm -rf /etc/rc.d/rc?.d/*afs* /usr/afs /usr/vice

Step 3: reboot
/sbin/shutdown -r now

Step 4: install all openafs rpm's.
[root@axis rpm]# cd /opt/pkg/rpm
[root@axis rpm]# rpm -Uvh openafs-*
   1:openafs                ########################################### [ 10%]
   2:openafs-devel          ########################################### [ 20%]
   3:openafs-kernel         ########################################### [ 30%]
   4:openafs-client         ########################################### [ 40%]

The AFS cache is configured for 100 MB. Edit the
/usr/vice/etc/cacheinfo file to change this before
running AFS for the first time. You should also
set your home cell in /usr/vice/etc/ThisCell.

Also, you may want to edit /etc/pam.d/login and
possibly others there to get an AFS token on login.
Put the line:

auth sufficient /lib/security/pam_afs.so try_first_pass ignore_root

before the one for pwdb.

   5:openafs-compat         ########################################### [ 50%]
   6:openafs-kernel-source  ########################################### [ 60%]
   7:openafs-kpasswd        ########################################### [ 70%]
   8:openafs-krb5           ########################################### [ 80%]
   9:openafs-server         ########################################### [ 90%]

Be sure to edit /etc/sysconfig/afs and turn AFS_SERVER on

  10:openafs                ########################################### [100%]
[ edited /etc/sysconfig/afs AFS_SERVER=on ]
[ edited /etc/pam.d/login ]
[ edited  /usr/vice/etc/ThisCell, changed openafs.org to math.ucdavis.edu ]

Step 5: copy a working module to /usr/vice/etc/modload:
[root@axis root]# cd /opt/src/openafs-1.2.3
[root@axis openafs-1.2.3]# ./configure --prefix=/opt/pkg/openafs-1.2.3
[root@axis openafs-1.2.3]# make install
[root@axis openafs-1.2.3]# cd /opt/pkg/openafs-1.2.3/
[root@axis openafs-1.2.3]# cp lib/openafs/libafs-2.4.18-3.mp.o /usr/vice/etc/modload/libafs-2.4.18-3smp.mp.o
[root@axis openafs-1.2.3]# uname -a
Linux axis.math.ucdavis.edu 2.4.18-3smp #1 SMP Thu Apr 18 06:59:55 EDT 2002 i686 unknown

Step 6: start up afs:
[root@axis root]# /sbin/lsmod |  head -2
Module                  Size  Used by    Tainted: PF
autofs                 12740   0  (autoclean) (unused)
[root@axis openafs-1.2.3]# /etc/rc.d/init.d/afs start
Hmm...  I can't seem to find an AFS kernel module suitable for your Linux
kernel.  That means you will need to build or obtain a suitable module.
The following information may be of some use in obtaining assistance:
CPU Type:       686.amd.6  
Linux version:  2.4.18-3smp #1 SMP Thu Apr 18 06:59:55 EDT 2002
RedHat release: Red Hat Linux release 7.3 (Valhalla)
Symbol versions:
  iget4      smp_e0311e23
  iget4      smp_e0311e23
  sock_create smp_abb755ef
Did not find matching module in SymTable
Starting AFS services.....
afsd: Can't find information for home cell 'math.ucdavis.edu' in cell
database!
afsd: All AFS daemons started.
afsd: Can't mount AFS on /afs(22)
[root@axis root]# /sbin/lsmod |  head -2
Module                  Size  Used by    Tainted: PF
libafs-2.4.18-3smp.mp  525184   2

Step #7 verify partition is mounted:
[root@axis openafs-1.2.3]# df | grep vice
/dev/md0              59644548     32828  56581884   1% /vicepa

Step #8 [ error in doc's? ] kill bosserver
[root@axis etc]# ps -acux | grep boss
root      1297  0.0  0.1  3784 2760 ?        S    22:03   0:00 bosserver
[root@axis etc]# kill -9 1297
[root@axis etc]# /usr/afs/bin/bosserver -noauth  [ error? no "&" needed ]
[root@axis etc]# ps -acux | grep boss
root      1334  0.3  0.1  3784 2760 ?        S    22:06   0:00 bosserver


Step #9 fix links:
[root@axis root]# cd /usr/vice/etc
[root@axis etc]# rm *.rpmsave ThisCell CellServDB
ln -sf /usr/afs/etc/ThisCell
ln -sf /usr/afs/etc/CellServDB
ls -al | grep usr/afs
lrwxrwxrwx    1 root     root           23 May 15 18:55 CellServDB -> /usr/afs/etc/CellServDB
lrwxrwxrwx    1 root     root           21 May 15 18:55 ThisCell -> /usr/afs/etc/ThisCell

Step #10 fix CellServDB:  [ I tried skipping this one as well ]
[root@axis etc]# cat /usr/afs/etc/CellServDB
>math.ucdavis.edu       #Cell name
169.237.99.4    #axis.math.ucdavis.edu

Step #11 setcellname:
[root@axis bin]# /usr/bin/bos setcellname axis.math.ucdavis.edu math.ucdavis.edu -noauth
[root@axis bin]# /usr/bin/bos listhosts axis.math.ucdavis.edu -noauth
Cell name is math.ucdavis.edu
    Host 1 is axis.math.ucdavis.edu

Step #12 Starting the Database Server Processes
/usr/bin/bos create axis.math.ucdavis.edu kaserver simple /usr/afs/bin/kaserver -cell math.ucdavis.edu -noauth
/usr/bin/bos create axis.math.ucdavis.edu buserver simple /usr/afs/bin/buserver -cell math.ucdavis.edu -noauth
/usr/bin/bos create axis.math.ucdavis.edu ptserver simple /usr/afs/bin/ptserver -cell math.ucdavis.edu -noauth
/usr/bin/bos create axis.math.ucdavis.edu vlserver simple /usr/afs/bin/vlserver -cell math.ucdavis.edu -noauth
/usr/sbin/kas -cell math.ucdavis.edu -noauth
ka> create afs
initial_password:
Verifying, please re-enter initial_password:

No matter what I've tried (I'd tried many variations) I get:
Creating user afs  : [____] server or network not responding

Any hints?  

Even after a reboot (and another afs start) I get the same problem. 
bosserver, and afsd are running.

-- 
Bill Broadley
Mathematics/Institute of Theoretical Dynamics
UC Davis