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-2.6.15-27-686
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.2-src.tar.gz
- cd openafs-1.4.2
- ./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.2/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/2.6.15-27-686/fs/openafs.ko /usr/vice/etc/modload/libafs-2.6.15-27-686.mp.ko
end of dreck
- cd /tmp/openafs-1.4.2/i386_linux26/dest/root.server/usr/afs
- cp -rp * /usr/afs
- cd /usr/afs/etc
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