Location : VISA Research Lab »
Lustre
source: http://ahmetuludag.wordpress.com/2009/07/17/how-to-install-lustre-on-ubuntu-9-04/
Lustre
How to install Lustre on Ubuntu 9.04
source: http://ahmetuludag.wordpress.com/2009/07/17/how-to-install-lustre-on-ubuntu-9-04/
- We get some utilities for compiling kernel:
apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev dpatch patch quilt
- 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
mv /usr/bin/gcc /usr/bin/gcc.bak
ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
- We install lustre source, lustre patch and lustre utilities:
apt-get install lustre-source linux-patch-lustre lustre-utils
- Uncompress this file using the following commands:
cd /usr/src
tar jxvf lustre.tar.bz2
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:
- 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
make menuconfig
- Compile the kernel using following commands. (You can type any string to revision parameter):
export CONCURRENCY_LEVEL=3
make-kpkg clean
make-kpkgrootcmd fakeroot added-patches=lustre initrd append-to-version "-lustre-1.6.5.1" --revision=i386 kernel_image kernel_headers modules_image
make-kpkg clean
make-kpkg
- 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
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
sudo modprobe -v lustre
sudo modprobe -v ldiskfs
Sidebar
News
- NSF Award on Cloud Resource Management
- vMoodle goes live
- DOD Award on Real-time Virtualization Research
- FAST2013 Presentations
- Fall 2012 Senior Project presentation
- Dr. Zhao Awarded Excellence in Student Mentoring
- ICAC2012 Presentation
- FeedbackComputing2012 Presentation
- Dm-cache in the Cloud (Call for beta testing)
- VISA undergraduates awarded a CREU grant
