Wednesday, September 3, 2008

How to setup an Openafs client on Ubuntu

Back to lug

Copy krb5.conf to /etc/krb5.conf

sudo apt-get install krb5-user openafs-krb5

  • change default realm to ACM.UIUC.EDU (case matters)
  • Kerberos servers are kerberos.acm.uiuc.edu and kerberos-1.acm.uiuc.edu
  • admin server is kerberos.acm.uiuc.edu

sudo apt-get install gcc-3.4 build-essential openafs-client

  • AFS Cell = acm.uiuc.edu (case matters)
  • default cache size is fine b/c you aren't going to use it.

sudo apt-get install module-assistant
sudo m-a prepare openafs-modules
sudo module-assistant auto-build openafs-modules
sudo dpkg -i /usr/src/openafs-modules-*.deb

cd /etc/openafs
sudo vim afs.conf

  • add: FNORD="-memcache -stat 10000 -blocks 65536 -chunksize 19"
    This sets a 64MB in-memory cache. If you want to use a disk cache you'll need to make sure that /var/cache/openafs is ext2 and its probably a good idea to dedicate a parition to it.
  • set: OPTIONS=$FNORD

sudo vim afs.conf.client

  • change AFS_DYNROOT=false to true

If you're running Ubuntu Dapper, there is an issue I've come across with the module not being auto-inserted upon reboot. This can be fixed by running a simple:

sudo depmod -a

sudo shutdown -r now "installing openafs"

Everything should be working!


your attribute: /afs/nd.edu/user39/jgai

No comments: