Installing OpenAFS on Debian / Xen

Just a quick note as I haven't seen it anywhere else on this forum.

If you want to compile the OpenAFS kernel module on a Debian / Xen Linode, you'll need to patch tke kernel sources available from http://www.linode.com/src/2.6.18.8-linode10.tar.bz2 with this in order to get the modules to build: http://lists.xensource.com/archives/htm … 00014.html">http://lists.xensource.com/archives/html/xen-bugs/2008-02/msg00014.html

Hope this is useful to others!

Cheers,

Tim

4 Replies

Yeah, figuring that out the first time was lots of fun…

You can also use one of the OpenAFS modules I've already compiled.

http://linode.com/src/contrib/kernel-modules/openafs/

http://linode.com/src/contrib/people/asedeno/

-Alejandro

Hah, I can imagine…

Also, another little gotcha i came accross, is that you need to download GCC 4.0.3 to compile the module, otherwise versionMagic will refuse to load it as the versions of the module and kernel don't match. This isn't available from apt, so had to compile from source, then edit the variables CC and HOSTCC in the kernel Makefile to use gcc4.0 rather than gcc.

although, rereading your post I see that isn't necessary as you've already compiled the modules. Hah- I think i need some sleep!

Cheers for that though, I wish i'd come across it before I had to retrace your steps in getting it all to work :-)

http://snapshot.debian.net/ is great for this kind of thing; I pulled gcc-4.0 from there and went with that.

deb http://snapshot.debian.net/archive pool gcc-4.0

deb-src http://snapshot.debian.net/archive pool gcc-4.0

In general, I try to get new modules compiled when I hear about new linode dom-U kernels. I'll probably be sticking to 32-bit modules unless I find need to have a second linode with a 64-bit linux install.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct