Sebastien Varrette, PhD.
Research Scientist, Head Research Computing & HPC Operations
Generating Debian Packages Under 3.2 Kernel for Lustre 2.4
During the last maintenance of the gaia cluster, I had to generate the Debian packages for a Lustre client version 2.4 over
a 3.2 backported Linux kernel (on gaia-74 node).
Here are some notes to share, adapted from the ones of Nicolas Capit, which might be useful for other sysadmins.
12
$> uname -a
Linux gaia-74 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.46-1~bpo60+1 x86_64 GNU/Linux
Once collected the source archive for Lustre 2.4.1 in /tmp/lustre-2.4.1.tar.xz on the node:
12
$>export LANG=C
$> apt-get install automake linux-headers-3.2.0-4-all-amd64 gcc make linux-source-3.2 libncurses5-dev ed dpkg-dev libreadline-dev debhelper dpatch libsnmp-dev quilt rsync module-assistant
Compile the kernel (nothing special here):
1234567
$>cd /usr/src/
$> tar xf /usr/src/linux-source-3.2.tar.bz2
$> cp /boot/config-3.2.0-0.bpo.4-amd64 .config
$> sed -i s/^SUBLEVEL.*/SUBLEVEL\ =\ 0/g Makefile
$> sed -i s/^EXTRAVERSION.*/EXTRAVERSION\ =\ -0\.bpo\.4-amd64/g Makefile
$> make menuconfig # to load the .config - exit on menu$> make -j `cat /proc/cpuinfo | grep processor | wc -l`
Prepare the compilation of Lustre client against the freshly compiled kernel tree