| 1 | = Build Lustre & Xen Kernel = |
| 2 | == 1. Install requirement packages == |
| 3 | {{{ |
| 4 | $ sudo aptitude install bzip2 debhelper dpatch libsnmp-dev module-assistant quilt |
| 5 | |
| 6 | ### Install libxml ### |
| 7 | $ sudo wget http://http.us.debian.org/debian/pool/main/libx/libxml2/libxml2_2.6.27.dfsg-2_i386.deb |
| 8 | $ sudo dpkg -i libxml2_2.6.27.dfsg-2_i386.deb |
| 9 | |
| 10 | ### Install pyxml ### |
| 11 | $ sudo wget PyXML-0.8.4.tar.gz |
| 12 | $ sudo python setup.py build |
| 13 | $ sudo python setup.py install |
| 14 | }}} |
| 15 | |
| 16 | [[BR]] |
| 17 | == 2. Patch Xen-enabled kernel == |
| 18 | {{{ |
| 19 | $ cd /usr/src/cd linux-2.6.18.8-xen/ |
| 20 | $ ln -s /usr/src/lustre-1.6.5.1/lustre/kernel_patches/series/2.6.18-vanilla.series series |
| 21 | $ ln -s /usr/src/lustre-1.6.5.1/lustre/kernel_patches/patches/ . |
| 22 | $ quild -av push |
| 23 | $ make -j 4 ; make -j 4 modules |
| 24 | $ make install ; make modules_install |
| 25 | $ mkinitramfs -o /boot/initrd.img-2.6.18.8 2.6.18.8 |
| 26 | $ update-grub |
| 27 | }}} |
| 28 | |
| 29 | [[BR]] |
| 30 | == 3. Build Lustre modules and tools == |
| 31 | {{{ |
| 32 | $ ./configure --with-linux=/usr/src/xen-3.1.3/linux-2.6.18.8-xen/ |
| 33 | $ make -j 4 ; make install |
| 34 | $ depmod -a |
| 35 | $ vim /etc/modules |
| 36 | ldiskfs |
| 37 | lnet networks=tcp |
| 38 | $ reboot |
| 39 | }}} |
| 40 | |
| 41 | == 4. Test Lustre == |
| 42 | {{{ |
| 43 | ### Check Luster modules ### |
| 44 | $ lsmod | grep lnet |
| 45 | $ lsmod | grep ldoskfs |
| 46 | }}} |
| 47 | |