Backporting the kernel client
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · Juha Aatrokoski
I'm probably not the only one who would like to run a distribution-provided kernel (which for Debian Wheezy/Ubuntu Precise is 3.2) and still have a recent-enough Ceph kernel client. So I'm wondering whether it's feasible to backport the kernel client to an earlier kernel. The plan is as follows:
1) Grab the Ceph files from https://github.com/ceph/ceph-client (and put them over the older kernel sources). If I got it right the files are:
include/keys/ceph-type.hinclude/linux/ceph/*fs/ceph/*net/ceph/*drivers/block/rbd.cdrivers/block/rbd_types.h2) Make (trivial) adjustments to the source code to account for changed kernel interfaces.
3) Compile as modules and install the new Ceph modules under
/lib/modules.
Quoted 7 lines
4) Reboot to a standard distribution kernel with up-to-date Ceph client.
Now the main questions are:
Q1: Is the Ceph client contained in the files mentioned in 1), or does it include changes elsewhere in the kernel that cannot be built as modules?
The ceph stuff is mostly there, if you exclude make file changes. Don't think there's anything outside.
Quoted 4 lines
Q2: Regarding 2), are there any nontrivial interface changes i.e. Ceph actually using newly introduced features instead of just adapting to a changed syntax?
I don't really know, haven't been actively looking at the kernel side for a while. It used to compile on that kernel version, so you can always refer to the older version and see how it used to work. Usually you can just try to compile it, see where it fails and then try to figure out what has changed there.
Yehuda
Hi Juha
Quoted 5 lines · Yehuda Sadeh
Quoted 4 lines · Juha Aatrokoski
Quoted 4 lines
I'm probably not the only one who would like to run a distribution-provided kernel (which for Debian Wheezy/Ubuntu Precise is 3.2) and still have a recent-enough Ceph kernel client. So I'm wondering whether it's feasible to backport the kernel client to an earlier kernel. The plan is as follows:
Ubuntu 12.04 now includes Hardware Enablement Kernels from Quantal (3.5) and soon from Raring (3.8):
http://www.jorgecastro.org/2013/02/19/what-the-lts-enablement-stack-means-for-sysadmins/
This allows you to use a more recent, distro provided kernel than 3.2 which should have the required fixes/features you need.
That said if you are having problems with the 3.2 kernel please do report bugs back to Ubuntu.
Cheers
James
Signature · 4 lines
James Page Technical Lead Ubuntu Server Team [email protected]