Quickstart

afs is a secure network based filesystem that utilizes kerberos authentication to secure access to typically publically available fileservers. The redundant nature and volume management of afs is why code.freedaemon.com chose to use afs as its file storage mechanism. This will permit seamless growth in the future.

Each afs client must run afsd, either from arla or from openafs. OpenBSD comes with arla's afsd by default, so its setup will be described here.

In order to access /afs/freedaemon.com you must add freedaemon.com to the list of cells afsd reads on start. To do this, add the following to /etc/afs/CellServDB:

	>freedaemon.com
	66.210.104.254 #afs0.freedaemon.com
	

You also will need to make sure /etc/afs/ThisCell contains:

freedaemon.com

and nothing more, or find a cell that has /afs/freedaemon.com.

To prepare to use afs, please glance at /etc/afs/afsd.conf, note the high_vnodes. You will need this number of inodes available under /var/spool/afs. Typically I make this a separate filesystem between 512mb and 4gb. If you do this, you may whish to also adjust high_bytes and low_bytes. Note if you have either above 2000M you will need to specify it in bytes.

To start afs on OpenBSD, the following will enable afs manually:

	mkdir /afs
	mount -t xfs /dev/xfs0 /afs
	/usr/libexec/afsd

To start afs (/etc/rc does the above automatically) upon reboot, add the following to /etc/rc.conf.local:

	afs=YES

Once you can successfully:

	cd /afs/freedaemon.com
.. consider your afs client successfully running.