Changes between Version 27 and Version 28 of Xen_Lustre


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_Lustre

    v27 v28  
    11[[PageOutline]]
    2 = Build Xen & Lustre enabled kernel =
    3  * Our OS: Dbian etch / ubuntu 8.04
    4  * Our Method: We used xen-patched kernel 2.6.18, then used Lustre patched file to patch it. We used xen tar ball to compile with this kernel to build Xen images amd used this kernel to reboot. Finally we used Lustre tar ball to build Lustre modules.
     2= 【Build Xen & Lustre enabled kernel】 =
     3 * '''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 模組。
    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 (http://www.sun.com/software/products/lustre/get.jsp)
     33 * ''''' 2.2 Download Lustre'''''
     34   * [http://www.sun.com/software/products/lustre/get.jsp Lustre]
    3435{{{
    3536$ cd /usr/src
     
    3839[[BR]]
    3940
    40 == 3.Make Xen image ==
    41  * 3.1
     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 mkinitramfs -o /boot/initrd.img-2.6.18.8-xen 2.6.18.8-xen
    47 $ sudo update-grub
    48 $ reboot
    4946}}}
    50  * 3.2 Use Lustre's patch file to patch xen kernel
     47[[BR]]
     48
     49== 4.Build Xen & Lustre Kernel ==
     50 * ''''' 4.1 Use Lustre's patch file to patch xen kernel''''' 
    5151{{{
    5252$ cd /usr/src/xen-3.1.4/linux-2.6.18-xen
    5353$ sudo ln -s /usr/src/lustre-1.6.6/lustre/kernel_patches/series/2.6.18-vanilla.series series
    5454$ sudo ln -s /usr/src/lustre-1.6.6/lustre/kernel_patches/patches/ .
    55 $ quilt -av push
    56 $ sudo
     55$ sudo quilt -av push
     56$ sudo cp /boot/config-2.6.18.8-xen .config
     57$ sudo make menuconfig
    5758}}}
    58  * 3.3 If you want enable some feature for custom kernel
     59 * ''''' 4.2 Install XEN & Lustre patched kernel'''''
    5960{{{
    60 $ cd /usr/src/xen-3.2.1/build-linux-2.6.18-xen_x86_64/
    61 $ make menuconfig
    62 (We make loop and NIC driver to be a modules)
    63 $ make -j 5
    64 $ cd ..
    65 }}}
    66  * 3.3 Install XEN & Lustre patched kernel
    67 {{{
    68 $ sudo make ; sudo make modules ; make install ; make modules_install
     61$ sudo make ; sudo make modules ; sudo make install ; sudo make modules_install
    6962$ sudo mkinitramfs -o /boot/initrd.img-2.6.18.8 2.6.18.8
    7063$ sudo update-grub
     
    7366[[BR]]
    7467
    75 == 4.Make Lustre modules ==
     68== 5.Make Lustre modules ==
    7669{{{
    7770$ cd /usr/src/lustre-1.6.5.1
     
    9083[[BR]]
    9184
    92 == 5.Push DRBL(If you don't push DRBL, you can skip it) ==
    93  * refer to https://trac.nchc.org.tw/grid/wiki/jazz/DRBL_Xen
    94 
     85== 6.Push DRBL(option) ==
     86 * Refer to https://trac.nchc.org.tw/grid/wiki/jazz/DRBL_Xen
    9587[[BR]]
    9688
    97 == 6.Test Xen & Lustre ==
     89== 7.Test Xen & Lustre ==
    9890{{{
    9991### For each client ###
     
    138130[[BR]]
    139131
    140 == 7.Install xen-tools (http://www.xen-tools.org/software/xen-tools/) ==
     132== 8.Install xen-tools ==
     133 * [http://www.xen-tools.org/software/xen-tools xen-tools]
    141134{{{
    142135$ wget http://www.xen-tools.org/software/xen-tools/xen-tools-3.9.tar.gz