Lustre is a popular cluster file system. You can check out here for more information.

Installing lustre is somewhat involved on some operating systems. As to ubuntu, there are a few instructions and they may not work for last versions. So, I wrote this article to ease it for you. Although, I tested this installation on Ubuntu 9.04 (Jaunty Jackalope), it should work on many other versions as well.

- Firstly, we type sudo -s and then root password to use shell as root.

- We get some utilities for compiling kernel:

apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev


- While compiling kernel with lustre patches, new versions of gcc cause some problems. So, we get an old version of gcc:

apt-get install gcc-3.4

mv /usr/bin/gcc /usr/bin/gcc.bak

ln -s /usr/bin/gcc-3.4 /usr/bin/gcc

We installed gcc and created a symbolic link to use. You can type gcc -v to see the version of gcc.

- We install lustre source, lustre patch and lustre utilities:

apt-get install lustre-source linux-patch-lustre lustre-utils

After these packages installed, you will see a compressed file “lustre.tar.bz2″ under /usr/src directory.

- Uncompress this file using the following commands:

cd /usr/src

tar jxvf lustre.tar.bz2

- In /usr/src directory, we get a kernel source from kernel.org whose version (2.6.22) is supported by lustre patch:

wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.gz

- We uncompress the kernel source:

tar zxvf linux-2.6.22.tar.gz

- Create a symbolic link for kernel source:

rm -f linux && ln -s linux-2.6.22 linux && cd linux

- Copy the config file of running kernel. Then, you may make changes (if you want) on the config file using menuconfig. If you want to decrease the size of packages to be created, you can make inactive “Compile the kernel with debug info” option which is under “Kernel Hacking” section.

cp /boot/config-$(uname -r) .config && yes "" | make oldconfig

make menuconfig

- Compile the kernel using following commands. (You can type any string to revision parameter):

export CONCURRENCY_LEVEL=3

make-kpkg clean

make-kpkg --rootcmd fakeroot --added-patches=lustre --initrd --append-to-version "-lustre-1.6.5.1" --revision=i386 kernel_image kernel_headers modules_image

After this command, you may be asked about scsi statistics. You can answer that Y. Compiling process may take one or two hour depending on the performance of your computer.

- In the /usr/src directory, .deb packages has been created. Depending on the revision name you typed, their names may be different. Install the packages starting with “linux-headers”, “linux-image” and “lustre-modules” respectively:

cd /usr/src

dpkg -i linux-headers-2.6.22-lustre-1.6.5.1_i386_i386.deb

dpkg -i linux-image-2.6.22-lustre-1.6.5.1_i386_i386.deb

dpkg -i lustre-modules-2.6.22-lustre-1.6.5.1_1.6.5.1_i386.deb

- We installed the kernel which has lustre patch and lustre modules. Now, restart your computer and select the kernel you installed (2.6.22) on your boot screen:

reboot

- After starting ubuntu with the 2.6.22 kernel, you may check your lustre installation issuing the following commands. If they do not give any error message, it means you installed lustre successfully:

sudo modprobe -v lnet

sudo modprobe -v lustre

sudo modprobe -v ldiskfs

    Author

    Hi , my name is Zemzemi Oussama ,
    and i'm an engineer in information technology (developper) , i was bored from all sites (same informations),so i'm waiting for your posts to bring new ideas. ;)

    View my profile on LinkedIn

    Archives

    Novembre 2011




Created by Zemzemi oussama