Changes between Version 29 and Version 30 of Xen_Lustre


Ignore:
Timestamp:
Feb 10, 2009, 11:11:20 AM (16 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_Lustre

    v29 v30  
    22= 【Build Xen & Lustre enabled kernel】 =
    33 * '''Our OS''': Dbian etch / ubuntu 8.04
    4  * '''Our Method''': Xen 和 Lustre 都需 patch kernel 來達到彼此的功能。[[BR]]我們使用較簡單但較笨的方法來 Merge Xen 和 Lustre ,主要步驟可分為三步驟:[[BR]](1)安裝 XEN image (2)產生 XEN 和 Lustre 相容的 kernel (3)建立 Lustre 模組。
     4 * '''Our Method''': Xen 和 Lustre 都需 patch kernel 來達到彼此特有的功能。[[BR]]我們使用較簡單但較笨的方法來 Merge Xen 和 Lustre ,主要步驟可分為三步驟:[[BR]](1)安裝 XEN image (2)產生 XEN 和 Lustre 相容的 kernel (3)建立 Lustre 模組。
    55[[BR]]
    66
    77== 1.Requirement packages ==
    8  * '''''1.1 Kernel Packages'''''
     8 * __''1.1 Kernel Packages''__
    99{{{
    1010sudo aptitude install build-essential libncurses5-dev kernel-package
    1111}}}
    12  * '''''1.2 XEN Packages'''''
     12 * ''__1.2 XEN Packages__''
    1313{{{
    1414$ sudo apt-get install iproute bridge-utils python-twisted gcc binutils make zlib1g-dev python-dev transfig bzip2 \
     
    1818}}}
    1919
    20  * '''''1.3 Lustre Packages'''''
     20 * __''1.3 Lustre Packages''__
    2121{{{
    2222$ sudo aptitude install bzip2 debhelper dpatch libsnmp-dev module-assistant quilt libxml2 python-xml
     
    2525
    2626== 2.Download XEN & Lustre ==
    27  * '''''2.1 Download XEN'''''
     27 * __''2.1 Download XEN''__
    2828{{{
    2929$ cd /usr/src
     
    3131$ sudo tar zxvf xen-3.1.4.tar.gz
    3232}}}
    33  * ''''' 2.2 Download Lustre'''''
     33 * __''2.2 Download Lustre''__
    3434   * [http://www.sun.com/software/products/lustre/get.jsp Lustre]
    3535{{{
     
    3939[[BR]]
    4040
    41 == 3.Build Xen image ==
     41== 3.Build Xen Image ==
    4242{{{
    4343$ cd /usr/src/xen-3.2.1
    4444$ sudo make -j 4 world
    4545$ sudo make install
     46$ sudo rm /boot/vmlinuz-2.6.18.8-xen /boot/System.map-2.6.18.8-xen ; sudo rm -fr /lib/modules/2.6.18.8-xen/
    4647}}}
    4748[[BR]]
    4849
    4950== 4.Build Xen & Lustre Kernel ==
    50  * ''''' 4.1 Use Lustre's patch file to patch xen kernel'''''
     51 * __''4.1 Use Lustre's patch file to patch Xen kernel''__
    5152{{{
    5253$ cd /usr/src/xen-3.1.4/linux-2.6.18-xen
     
    5758$ sudo make menuconfig
    5859}}}
    59  * ''''' 4.2 Install XEN & Lustre patched kernel'''''
     60 * __''4.2 Install XEN & Lustre patched kernel''__
    6061{{{
    6162$ sudo make ; sudo make modules ; sudo make install ; sudo make modules_install
     
    6869== 5.Make Lustre modules ==
    6970{{{
    70 $ cd /usr/src/lustre-1.6.5.1
     71$ cd /usr/src/lustre-1.6.6
    7172$ sudo ./configure --with-linux=/usr/src/linux-2.6.18-xen.hg/  --with-linux-obj=/usr/src/xen-3.2.1/build-linux-2.6.18-xen_x86_64/
    7273$ sudo make -j 4
    7374$ sudo make install
    7475$ sduo depmod -a
    75 
    76 ### Load modules in booting ###
    77 $ sudo vim /etc/modules
    78 loop max_loop=255
    79 ldiskfs
    80 lnet networks=tcp
    8176$ sudo reboot
    8277}}}
     
    8883
    8984== 7.Test Xen & Lustre ==
    90  * '''''7.1 Config Lustre module'''''
     85 * __''7.1 Config Lustre module''__
    9186{{{
    9287$ sudo vim /etc/modules
    93 loop max_loop=255
    9488ldiskfs
    9589lnet networks=tcp
     90
     91$ sudo sync ; sudo reboot
    9692}}}
    97  * '''''7.2 Config Xend'''''
     93 * __''7.2 Config Xend''__
    9894{{{
     95$ sudo vim /boot/grub/menu.lst
     96netloop.nloopbacks=150
     97
    9998$ sudo vim /etc/xen/xend-config.sxp
    10099$ sudo xend start
    101100$ sudo xm list
    102101}}}
    103  * '''''7.3 Setup Lsutre'''''
     102 * __''7.3 Setup Lsutre''__
    104103   * ''Meta Data & Management Server''
    105104{{{
     
    112111$ sudo mount -t lustre /dev/sda /home/ost
    113112$ sudo dmesg
    114 Lustre: flyfs-OST0000: received MDS connection from 140.110.X.X@tcp
     113Lustre: flyfs-OST0000: received MDS connection from 140.X.X.X@tcp
    115114}}}
    116115   * ''Mount Lustre FS''
     
    142141
    143142== Reference ==
     143 * [http://www.xen.org/ XEN]
     144 * [http://wiki.lustre.org/index.php?title=Main_Page Lustre]
     145 * [http://drbl.nchc.org.tw/ DRBL]
     146 * [http://www.xen-tools.org/software/xen-tools xen-tools]