File Server

Install OpenAFS:

apt-get install openafs-client openafs-fileserver openafs-krb5

Disable the AFS client. Edit /etc/openafs/afs.conf.client, and change AFS_CLIENT=true to AFS_CLIENT=false. Also set AFS_DYNROOT=false.

Set up /etc/openafs/server/KeyFile:

kinit -S kadmin/admin <USER>/admin
kadmin ext -k /tmp/afs.keytab afs/club.cc.cmu.edu

# Examine the keytab, and note the kvno
ktutil -k /tmp/afs.keytab list

asetkey add <kvno> /tmp/afs.keytab afs/club.cc.cmu.edu
rm /tmp/afs.keytab

# Check that AFS has the key
bos listkeys -server $FILESERVER -localauth

Copy /etc/openafs/server/UserList from another fileserver.

Start the servers:

bos create -server $FILESERVER -instance fs -type fs -cmd /usr/lib/openafs/fileserver -cmd /usr/lib/openafs/volserver -cmd /usr/lib/openafs/salvager -cell club.cc.cmu.edu -localauth

DB Server

There are a few minor differences:

After starting the ptserver and vlserver on the new/upgraded DB Server, restart the processes on all the other DB Servers so Ubik holds elections and syncs the databases to the new/upgraded DB Server.