= Build Lustre & Xen Kernel = == 1. Install requirement packages == {{{ $ sudo aptitude install bzip2 debhelper dpatch libsnmp-dev module-assistant quilt ### Install libxml ### $ sudo wget http://http.us.debian.org/debian/pool/main/libx/libxml2/libxml2_2.6.27.dfsg-2_i386.deb $ sudo dpkg -i libxml2_2.6.27.dfsg-2_i386.deb ### Install pyxml ### $ sudo wget PyXML-0.8.4.tar.gz $ sudo python setup.py build $ sudo python setup.py install }}} [[BR]] == 2. Patch Xen-enabled kernel == {{{ $ cd /usr/src/cd linux-2.6.18.8-xen/ $ ln -s /usr/src/lustre-1.6.5.1/lustre/kernel_patches/series/2.6.18-vanilla.series series $ ln -s /usr/src/lustre-1.6.5.1/lustre/kernel_patches/patches/ . $ quild -av push $ make -j 4 ; make -j 4 modules $ make install ; make modules_install $ mkinitramfs -o /boot/initrd.img-2.6.18.8 2.6.18.8 $ update-grub }}} [[BR]] == 3. Build Lustre modules and tools == {{{ $ ./configure --with-linux=/usr/src/xen-3.1.3/linux-2.6.18.8-xen/ $ make -j 4 ; make install $ depmod -a $ vim /etc/modules ldiskfs lnet networks=tcp $ reboot }}} [[BR]] == 4. Test Lustre == {{{ ### Check Luster modules ### $ lsmod | grep lnet $ lsmod | grep ldoskfs }}} [[BR]] == 4. Setup Lustre == {{{ ### Setup Meta Data & Management Server ### $ mkfs.lustre --fsname=cloudfs --mdt --mgs /dev/sda2 $ sudo mount -t lustre /dev/sda2 /home/mdt ### Setup Object Storage Target ### $ mkfs.lustre --fsname=cloudfs --ost --mgsnode=cloud@tcp0 /dev/sda3 $ sudo mount -t lustre /dev/sda3 /home/ost ### Lustre Client started ### $ sudo mount -t lustre cloud@tcp0:/cloudfs /home/cloudfs $ df -h $ mount }}}