I am trying to setup openafs-client but I am having a problem when starting it. I am using a fresh install of OpenSUSE 11.3 and I installed the openafs, openafs-client, krb5 and kernel (default) packages from the filesystems respository of 11.3. When I start the client, either by hand or with the runlevel settings from yast I get the following errors:
Message from syslogd@linux-qnxd at Sep 3 13:09:38 …
kernel: 82.391095] Oops: 0000 #1] SMP
Message from syslogd@linux-qnxd at Sep 3 13:09:38 …
kernel: 82.391098] last sysfs file: /sys/devices/virtual/bdi/afs/uevent
Message from syslogd@linux-qnxd at Sep 3 13:09:38 …
kernel: 82.391219] Process afs_cachetrim (pid: 3810, ti=f6554000 task=f63d0330 task.ti=f6554000)
Message from syslogd@linux-qnxd at Sep 3 13:09:38 …
kernel: 82.391221] Stack:
Message from syslogd@linux-qnxd at Sep 3 13:09:38 …
kernel: 82.391241] Call Trace:
Another piece of information.
Doing df -T after the failed attempt to start the client I get:
/dev/sda7 ext4 20641788 4916704 14676444 26% /
devtmpfs devtmpfs 1555168 288 1554880 1% /dev
tmpfs tmpfs 1555372 4 1555368 1% /dev/shm
/dev/sda8 ext3 79269060 47132100 28110272 63% /home
/dev/sda2 fuseblk 76842152 65821400 11020752 86% /windows/C
AFS afs 9000000 0 9000000 0% /afs
On this site: AFS it says that the filesystem must be ext2, while my filesystem is ext3… Could this be the source of the problem?
If that is the case, how do I create an ext2 filesystem to be used by the openafs-client?
>
>Another piece of information.
>Doing df -T after the failed attempt to start the client I get:
>/dev/sda7 ext4 20641788 4916704 14676444 26% /
>devtmpfs devtmpfs 1555168 288 1554880 1% /dev
>tmpfs tmpfs 1555372 4 1555368 1% /dev/shm
>/dev/sda8 ext3 79269060 47132100 28110272 63% /home
>/dev/sda2 fuseblk 76842152 65821400 11020752 86% /windows/C
>AFS afs 9000000 0 9000000 0% /afs
>
>On this site: ‘AFS’
>(http://meta.cesnet.cz/cms/opencms/en/docs/storage/afs/index.html) it
>says that the filesystem must be ext2, while my filesystem is ext3…
>Could this be the source of the problem?
>If that is the case, how do I create an ext2 filesystem to be used by
>the openafs-client?
>
>(Sorry if this also look like a bump… it is )
That limitation (ext2 vs. ext3) looks very strange to me. If you can
assure atomic writes some other way they end up being effectively the
same. The difference is that ext3 provides journaling (a few % hit in
performance in exchange for no longer needing atomicity in writes).
Does it properly use the existing file system drivers?
It’s been a few years, but I was an AFS sysadmin, so I’ll try to help.
It isn’t uncommon for a long hang when doing “ls /afs”, it’s trying to find every cell listed in your CellServDB file. You may try to do a flush of the afs cache and see if that helps. Also, the very large number in the “df” command for afs is normal.
Is the cell and established cell, or are you trying to set one up for your own use? Can you verify that your ThisCell and CellServDB files are correct? Was the cell ever working? Did you contact your cell’s sysadmin?
The fact that you are getting information from the “df” command indicates that you are contacting an AFS cell, so the client is working, but may not be contacting the right cell. Are you sure your krb5 setup is correct? Are you getting an AFS token when you log in to krb5? AFS uses PAM for authentication configuration, check that you have the right set up in your /etc/pam.d/ files. I always hated PAM and wished there were a simpler way.
Googleing some more I have not found other mentions to the requirement of using an ext2 partition. Only some bits that make me think ext3 should be fine.
I tried again to start the openafs-client after a reboot and I am getting the errors in the first post but the afs area is just empty this time. Even doing ls /afs gives an empty answer and no problem…
Even df -T does not list the afs space anymore. I wonder what has changed…
I am trying to connect to the CERN cell and the servers where already present in the CellServDB file. The only change I made was to the ThisCell file adding cern.ch as its only entry.
When I do kinit I get the password request and no error when I input my password (but I do get an error if I put a wrong password). Do you think this is enough for the authentication?
Do you have any idea on the source of the errors I reported in the first post?
The ext3 file system is OK with AFS. I had over a TB of data on ext3.
The errors in syslog that you show don’t tell me anything, good or bad.
It looks like CellServDB and ThisCell are correct.
Are you using Openafs client, from their website? I recommend their current client over any other.
If you’re not getting any response from commands, your client is likely not starting on reboot. Check that there’s an openafs-client file in /etc/init.d. Your file may be named something else. And check that the client is running in the process table, “ps -ef | grep openafs” that should show the client running.
For AFS tokens from krb5, the command I used to authenticate was, “aklog”, not “kinit”. “kinit” will get you kerberos authentication, but “aklog” will also convert krb5 tokens to AFS tokens. You need both tokens for and AFS cell.
Here’s the Openafs documentation on login commands. Chapter 2. Using OpenAFS
You may be better off on their mailing list and website than here for help. Like I said, I’ve been away from it for a few years.