Changes between Version 29 and Version 30 of Xen_Lustre
- Timestamp:
- Feb 10, 2009, 11:11:20 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Xen_Lustre
v29 v30 2 2 = 【Build Xen & Lustre enabled kernel】 = 3 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 模組。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 XEN'''''27 * __''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'''''33 * __''2.2 Download Lustre''__ 34 34 * [http://www.sun.com/software/products/lustre/get.jsp Lustre] 35 35 {{{ … … 39 39 [[BR]] 40 40 41 == 3.Build Xen image ==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 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/ 46 47 }}} 47 48 [[BR]] 48 49 49 50 == 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''__ 51 52 {{{ 52 53 $ cd /usr/src/xen-3.1.4/linux-2.6.18-xen … … 57 58 $ sudo make menuconfig 58 59 }}} 59 * ''''' 4.2 Install XEN & Lustre patched kernel'''''60 * __''4.2 Install XEN & Lustre patched kernel''__ 60 61 {{{ 61 62 $ sudo make ; sudo make modules ; sudo make install ; sudo make modules_install … … 68 69 == 5.Make Lustre modules == 69 70 {{{ 70 $ cd /usr/src/lustre-1.6. 5.171 $ cd /usr/src/lustre-1.6.6 71 72 $ 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/ 72 73 $ sudo make -j 4 73 74 $ sudo make install 74 75 $ sduo depmod -a 75 76 ### Load modules in booting ###77 $ sudo vim /etc/modules78 loop max_loop=25579 ldiskfs80 lnet networks=tcp81 76 $ sudo reboot 82 77 }}} … … 88 83 89 84 == 7.Test Xen & Lustre == 90 * '''''7.1 Config Lustre module'''''85 * __''7.1 Config Lustre module''__ 91 86 {{{ 92 87 $ sudo vim /etc/modules 93 loop max_loop=25594 88 ldiskfs 95 89 lnet networks=tcp 90 91 $ sudo sync ; sudo reboot 96 92 }}} 97 * '''''7.2 Config Xend'''''93 * __''7.2 Config Xend''__ 98 94 {{{ 95 $ sudo vim /boot/grub/menu.lst 96 netloop.nloopbacks=150 97 99 98 $ sudo vim /etc/xen/xend-config.sxp 100 99 $ sudo xend start 101 100 $ sudo xm list 102 101 }}} 103 * '''''7.3 Setup Lsutre'''''102 * __''7.3 Setup Lsutre''__ 104 103 * ''Meta Data & Management Server'' 105 104 {{{ … … 112 111 $ sudo mount -t lustre /dev/sda /home/ost 113 112 $ sudo dmesg 114 Lustre: flyfs-OST0000: received MDS connection from 140. 110.X.X@tcp113 Lustre: flyfs-OST0000: received MDS connection from 140.X.X.X@tcp 115 114 }}} 116 115 * ''Mount Lustre FS'' … … 142 141 143 142 == 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]