Changes between Version 27 and Version 28 of Xen_Lustre
- Timestamp:
- Feb 10, 2009, 10:30:30 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Xen_Lustre
v27 v28 1 1 [[PageOutline]] 2 = Build Xen & Lustre enabled kernel=3 * Our OS: Dbian etch / ubuntu 8.044 * 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 模組。 5 5 [[BR]] 6 6 7 7 == 1.Requirement packages == 8 * 1.1 Kernel Packages:8 * '''''1.1 Kernel Packages''''' 9 9 {{{ 10 10 sudo aptitude install build-essential libncurses5-dev kernel-package 11 11 }}} 12 * 1.2 XEN Packages:12 * '''''1.2 XEN Packages''''' 13 13 {{{ 14 14 $ sudo apt-get install iproute bridge-utils python-twisted gcc binutils make zlib1g-dev python-dev transfig bzip2 \ … … 18 18 }}} 19 19 20 * 1.3 Lustre Packages:20 * '''''1.3 Lustre Packages''''' 21 21 {{{ 22 22 $ sudo aptitude install bzip2 debhelper dpatch libsnmp-dev module-assistant quilt libxml2 python-xml … … 25 25 26 26 == 2.Download XEN & Lustre == 27 * 2.1 Download XEN27 * '''''2.1 Download XEN''''' 28 28 {{{ 29 29 $ cd /usr/src … … 31 31 $ sudo tar zxvf xen-3.1.4.tar.gz 32 32 }}} 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] 34 35 {{{ 35 36 $ cd /usr/src … … 38 39 [[BR]] 39 40 40 == 3.Make Xen image == 41 * 3.1 41 == 3.Build Xen image == 42 42 {{{ 43 43 $ cd /usr/src/xen-3.2.1 44 44 $ sudo make -j 4 world 45 45 $ sudo make install 46 $ sudo mkinitramfs -o /boot/initrd.img-2.6.18.8-xen 2.6.18.8-xen47 $ sudo update-grub48 $ reboot49 46 }}} 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''''' 51 51 {{{ 52 52 $ cd /usr/src/xen-3.1.4/linux-2.6.18-xen 53 53 $ sudo ln -s /usr/src/lustre-1.6.6/lustre/kernel_patches/series/2.6.18-vanilla.series series 54 54 $ 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 57 58 }}} 58 * 3.3 If you want enable some feature for custom kernel59 * ''''' 4.2 Install XEN & Lustre patched kernel''''' 59 60 {{{ 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 69 62 $ sudo mkinitramfs -o /boot/initrd.img-2.6.18.8 2.6.18.8 70 63 $ sudo update-grub … … 73 66 [[BR]] 74 67 75 == 4.Make Lustre modules ==68 == 5.Make Lustre modules == 76 69 {{{ 77 70 $ cd /usr/src/lustre-1.6.5.1 … … 90 83 [[BR]] 91 84 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 95 87 [[BR]] 96 88 97 == 6.Test Xen & Lustre ==89 == 7.Test Xen & Lustre == 98 90 {{{ 99 91 ### For each client ### … … 138 130 [[BR]] 139 131 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] 141 134 {{{ 142 135 $ wget http://www.xen-tools.org/software/xen-tools/xen-tools-3.9.tar.gz