Purpose
Describe the steps you need to build and test a 1.8 Lustre system (MGS, MDT, MDS, OSS, OST, client) on a CentOS 5 Toro machine.
Prerequisite
- Account on Toro
- Reservations on the nodes: client-10, client-11, client-12
- CentOS 5 provisioned on client-10 using loadhudsonbuild.rb
Overview
Lustre 1.8 servers require a patched and compiled kernel. Patches are readily available in the Whamcloud git source repository. The test suite is included with the Lustre 1.8 source.
Procedure
The procedure requires that a OS is setup for development - this includes Lustre source and kernel headers. Once setup, a new kernel can be patched, compiled, run and tested. Building a RPM based kernel is described in detail on the Lustre.org wiki.
Provision Machine
Once CentOS5.5 is provisioned on client-10 login as root.
- Get git installed. A simple way to do this is by installing the EPEL repository:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm yum install git
- Get the 1.8 branch from the Whamcloud git account.
git clone git://git.whamcloud.com/fs/lustre-release.git git checkout --track -b haml origin/haml
- cd into
lustre-release
and runsh ./autogen.sh
- Resolve the outstanding dependencies until
autogen.sh
completes successfully. Success will look like:[root@client-10 lustre-release]# sh ./autogen.sh Checking for a complete tree... checking for automake-1.9 >= 1.9... found 1.9.6 ... Running automake-1.9... Running autoconf... [root@client-10 lustre-release]#
Prepeare the kernel
This section of the walk-thru is taken from http://wiki.centos.org/HowTos/Custom_Kernel
- Install development tools:
yum groupinstall "Development Tools"
- Get the kernel source. First create the directory structure, then get the source from the RPM.
cd mkdir -p kernel/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} cd kernel rpm -i http://mirror.centos.org/centos/5/updates/SRPMS/kernel-2.6.18-194.32.1.el5.src.rpm 2>&1 | grep -v mockb