Changes between Version 4 and Version 5 of Xen_Lustre_centos_easy
- Timestamp:
- Jun 24, 2008, 5:00:59 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Xen_Lustre_centos_easy
v4 v5 35 35 }}} 36 36 === 2.3 編譯 lustre 所提供的 kernel === 37 * 2.3.1 接著就可以開始編譯剛剛解壓縮到 /usr/src 的核心檔案,此完整的核心檔案是由 lustre 的官方網站所提供, 38 重要的是它提供了可編譯出具有 xen + lustre 功能模組的設定檔(config/kernel-2.6.18-i686-xen.config), 39 只要將此核心檔案編譯成模組影像檔(initrd, vmlinuz),然後在開機時讀入此模組,便可以成為一個具有 lustre + xen 功能的核心了. 40 * 2.3.2 首先,由於 linux-2.6.18-53.1.14 是一個尚未 patch 過 lustre 的核心(Sun網站在下載此檔的地方有附註),因此在編譯之前,我們必須先 patch 這個核心 37 * 2.3.1 '''說明[[BR]]''' 38 接著就可以開始編譯剛剛解壓縮到 /usr/src 的核心檔案,此完整的核心檔案是由 lustre 的官方網站所提供,重要的是它不但具有 xen 相關的程式檔案,[[BR]] 39 同時也提供了可編譯出具有 xen + lustre 功能模組的設定檔(config/kernel-2.6.18-i686-xen.config),只要將此核心檔案編譯成模組影像檔 40 (initrd, vmlinuz),然後在開機時讀入此模組,[[BR]] 41 便可以成為一個具有 lustre + xen 功能的核心了. 42 * 2.3.2 '''patch linux-2.6.18-53.1.14''' [[BR]] 43 首先,由於 linux-2.6.18-53.1.14 是一個尚未 patch 過 lustre 的核心(Sun網站在下載此檔的地方有附註),因此在編譯之前,我們必須先 patch 這個核心 41 44 {{{ 42 45 [root@luxen ~]# cd /usr/src/linux-2.6.18-53.1.14/ … … 44 47 [root@luxen linux-2.6.18-53.1.14]# ln -s /root/lustre-1.6.5/lustre/kernel_patches/series/2.6-rhel5.series series 45 48 }}} 46 * 2.3.3 成功 patch 之後,開始進行編譯並且安裝核心模組 49 * 2.3.3 '''編譯與安裝''' [[BR]] 50 成功 patch 之後,開始進行編譯並且安裝核心模組 47 51 {{{ 48 52 [root@luxen linux-2.6.18-53.1.14]# make && make install && make moduels_install 49 53 [root@luxen linux-2.6.18-53.1.14]# mkinitrd /boot/initrd-2.6.18-prep.img 2.6.18-prep 50 54 }}} 51 * 2.3.4 修改 /boot/grub/menu.lst 如下 55 * 2.3.4 '''更改開機檔'''[[BR]] 56 修改 /boot/grub/menu.lst 如下 52 57 {{{ 53 58 [root@luxen linux-2.6.18-53.1.14]# cat /boot/grub/menu.lst … … 76 81 module /initrd-2.6.18-53.el5xen.img 77 82 }}} 78 * 2.3.5 重新開機啟動讀入具有 lustre 功能的模組 83 * 2.3.5 '''重新開機'''[[BR]] 84 啟動讀入具有 lustre 功能的模組 79 85 {{{ 80 86 [root@luxen linux-2.6.18-53.1.14]# reboot