Contents
Sub pages:
1. Important notes
On phobos, /root/.zshenv now contains
PATH=/usr/heimdal/bin:/usr/afs/bin:$PATH
2. Building OpenAFS-OSD
To build openafs, kernel headers are recommended to be installed (so configure can detect the local sysname). On SL5, as root do a
yum install kernel-devel
and you're set (for the time being). If there's still no /usr/src/linux:
ln -s /usr/src/kernels/2.6.18-92.1.10.el5-i686 /usr/src/linux
...or whatever directory the kernel source was installed to.
In the openafs-version directory:
mkdir `sys` cd `sys` ../configure --prefix=/usr --libdir=/usr/lib --bindir=/usr/bin --sbindir=/usr/sbin --with-krb5-conf --enable-bitmap-later --enable-bos-restricted-mode --enable-fast-restart --enable-bos-new-config --enable-supergroups --enable-transarc-paths --enable-object-storage --enable-osd-policies
2.1. Quick RPM creation
See TestCellSetup/IncludingFileservers.
3. Enabeling the client
- Manually:
From the source directory copy
src/libafs/MODLOAD-`uname -r`-*/libafs.ko
to
/lib/modules/`uname -r`/kernel/fs/openafs/libafs.ko
depmod
- or
- install appropriate kernel module RPM
- reboot
launch afsd
4. Enabling OSD
[iokaste] ~ # vos setfields osdtestvol2 -osd 1
5. Issues
5.1. Missing token is not handled well
$ osd volumes io -lun 1 RX xdr error Cannot list volumes Request aborted. $ osd createv io 1 536870924 Createvolume failed: RXOSD_create_part ended with 13 Request aborted.
In general, missing privileges are an issue but there is no "friendly output" describing the cause of the problem. Some examples of unprivileged access attempts:
fs osd |
Error 13 reading length of metadata |
works with r privilege granted to system:anyuser |
osd read |
RX xdr error \\ Cannot read the object \\ rx_EndCall returns: 13 \\ Request aborted. |
requires token |
osd volumes |
RX xdr error \\ Cannot list volumes \\ Request aborted. |
requires token |
osd examine |
RXOSD_examine failed with code 13 \\ Request aborted. |
requires token |
Database queries osd listosds and osd servers seem to work unauthenticated.
6. Performance
Server version |
Clients version |
process |
max. throughput [MB/s] |
1.4.7.osd.r302.sec |
1.4.7.osd.r302.sec |
fileserver |
160 |
|
|
rxosd |
120 |
1.4.7 |
|
fileserver |
160 |
1.4.8 |
|
fileserver |
125 |
1.4.10 |
|
fileserver |
125 |
1.4.8.osd.r573x |
|
fileserver |
125 |
|
|
rxosd |
100 |
|
1.4.10.osd.nosvn |
fileserver |
125 |
|
|
rxosd |
72 |
1.4.7 |
|
fileserver |
160 |
1.4.8 |
|
fileserver |
125 |
1.4.10 |
|
fileserver |
125 |
|
1.4.10 |
fileserver |
125 |
1.4.7 |
|
fileserver |
160 |