Differences between revisions 2 and 3
Revision 2 as of 2006-11-14 12:04:42
Size: 2019
Editor: ThomasOtt
Comment:
Revision 3 as of 2007-07-04 09:38:57
Size: 2010
Editor: AchimBohnet
Comment: a) openafs 1.4.2 -> 1.4.4 b) use uname -r instead of a 'never-up-do-date' vers
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
 * aptitude install openafs-client openafs-modules-2.6.15-27-686  * aptitude install openafs-client openafs-modules-`uname -r`
Line 17: Line 17:
 * tar -xvzf openafs-1.4.2-src.tar.gz
 * cd openafs-1.4.2
 * tar -xvzf openafs-1.4.4-src.tar.gz
 * cd openafs-1.4.4
Line 25: Line 25:
 * cp /tmp/openafs-1.4.2/i386_linux26/dest/root.client/usr/vice/etc/afs.rc /etc/init.d/afs  * cp /tmp/openafs-1.4.4/i386_linux26/dest/root.client/usr/vice/etc/afs.rc /etc/init.d/afs
Line 34: Line 34:
 * cp /lib/modules/2.6.15-27-686/fs/openafs.ko /usr/vice/etc/modload/libafs-2.6.15-27-686.mp.ko  * cp /lib/modules/`uname -r`/fs/openafs.ko /usr/vice/etc/modload/libafs-`uname -r`.mp.ko
Line 37: Line 37:
 * cd /tmp/openafs-1.4.2/i386_linux26/dest/root.server/usr/afs  * cd /tmp/openafs-1.4.4/i386_linux26/dest/root.server/usr/afs

Installing an AFS Server with FAI (i.e. running Kubuntu)

Install the basic operating system

This should be done with PXE boot and setting up the correct DHCP server settings (Achim, please edit!)

Install additional packages

In order to compile openafs, install the following packages:

  • aptitude install gcc make flex bison libncurses5-dev
  • aptitude install openafs-client openafs-modules-uname -r

The last module of course depends on your current kernel.

Download and compile openafs

openafs can be retrieved from www.openafs.org, then:

  • cd /tmp
  • tar -xvzf openafs-1.4.4-src.tar.gz
  • cd openafs-1.4.4
  • ./configure --enable-transarc-paths --with-afs-sysname=i386_linux26
  • make
  • make dest

Install openafs server

This is just following (except for the Dreck...) the documentation in http://www.openafs.org/pages/doc/QuickStartUnix/auqbg006.htm#HDRWQ100

  • cp /tmp/openafs-1.4.4/i386_linux26/dest/root.client/usr/vice/etc/afs.rc /etc/init.d/afs
  • mkdir /usr/afs
  • mkdir /usr/afs/bin
  • mkdir /usr/afs/etc
  • mkdir /usr/vice

na gut, das ist *dreckig*

  • mkdir /usr/vice/etc
  • mkdir /usr/vice/etc/modload
  • cp /lib/modules/uname -r/fs/openafs.ko /usr/vice/etc/modload/libafs-uname -r.mp.ko

end of dreck

  • cd /tmp/openafs-1.4.4/i386_linux26/dest/root.server/usr/afs
  • cp -rp * /usr/afs
  • cd /usr/afs/etc
  • sftp root@irafs4.mpe-garching.mpg.de

  • sftp> cd /usr/afs/etc

  • sftp> mget *

  • sftp> exit

  • cd /usr/afs/bin
  • ./bosserver -noauth &

  • ./bos create <fqdn> fs fs /usr/afs/bin/fileserver /usr/afs/bin/volserver /usr/afs/bin/salvager -cell mpe.mpg.de -noauth

  • ./bos shutdown <fqdn> -wait

  • ps -ef | grep bosserver
  • kill <pid>

  • shutdown -r now
  • mkdir /etc/sysconfig
  • scp root@irafs4:/etc/sysconfig/afs /etc/sysconfig/
  • vi /etc/sysconfig/afs
  • add -memcache at the end of option LARGE
  • OPTIONS=$LARGE
  • update-rc.d afs defaults 25 18
  • shutdown -r now