Changes between Version 7 and Version 8 of Reading/XenP/cluster
- Timestamp:
- Apr 14, 2009, 5:07:41 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Reading/XenP/cluster
v7 v8 15 15 * 重複單機的 0 ~ 4 步驟 16 16 * 確認 /etc/hosts 有彼此的資訊 17 {{{ 18 // node01 和 node02 的 /etc/hosts 19 $ sudo vim /etc/hosts 20 192.168.X.X node01 21 192.168.X.X node02 22 }}} 17 23 * 設定兩台的 auto login 18 24 {{{ 25 $ su root 19 26 $ ssh-keygen -P "" 20 $ c p ~/.ssh/id_rsa.pub~/.ssh/authorized_keys27 $ cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys 21 28 $ scp -r ~/.ssh node02:~/ 22 29 … … 24 31 $ ssh node01 25 32 CTRL + D 33 CTRL + D 26 34 }}} 35 * 設定共享的 Storage 36 {{{ 37 // node01 的設定 38 $ vim /etc/export 39 /home/one 192.X.X.X(rw,sync,async,no_root_squash,no_subtree_check) 40 /home/domains 192.X.X.X(rw,sync,async,no_root_squash,no_subtree_check) 41 $ /etc/init.d/nfs-kernel-server start 42 $ showmount -a 43 44 // node02 的設定 45 $ sudo mount.nfs node01@/home/one /home/one 46 $ sudo mount.nfs node01@/home/domains /home/domains 47 $ mount 48 }}} 49 27 50 ---- 28 51 == 3.安裝 ONE == … … 38 61 $ scons 39 62 $ sudo mkdir /home/one 63 64 // 配置 ONE 環境變數 65 $ vim ~/.bashrc 66 export ONE_LOCATION=/home/one 67 export ONE_XMLRPC=http://localhost:2633/RPC2 68 export PATH=$PATH:$ONE_LOCATION/bin 69 $ source ~/.bashrc 70 40 71 $ sudo ./install.sh -d /home/one 41 72 }}} 42 * '''''__3.3 配置 ONE__''''' 73 74 * '''''__3.3 啟動 ONE__''''' 43 75 {{{ 44 $ sudo vim /etc/profile 45 export ONE_LOCATION=/home/one 46 export ONE_XMLRPC=http://localhost:2633/RPC2 47 export PATH=$ONE_LOCATION/bin:$PATH 48 49 $ source /etc/profile 50 }}} 51 * '''''__3.4 啟動 ONE__''''' 52 {{{ 53 $ sudo $ONE_LOCATION/bin/one start 76 $ $ONE_LOCATION/bin/one start 54 77 }}} 55 78 ---- 56 79 == 4.使用 ONE 於 Xen Cluster == 80 * '''''__4.0 編輯 ONE 設定檔__''''' 81 {{{ 82 $ cd /home/one 83 $ vim etc/oned.conf 84 }}} 57 85 * '''''__4.1 新增 Host/dom0 到 ONE pool__''''' 58 86 {{{ 59 $ sudo onehost add node01 im_xen vmm_xen tm_ssh60 $ sudo onehost add node02 im_xen vmm_xen tm_ssh87 $ onehost add node01 im_xen vmm_xen tm_nfs 88 $ onehost add node02 im_xen vmm_xen tm_nfs 61 89 62 90 $ sudo onehost list … … 104 132 ---- 105 133 == 7.測試 Live Migration == 106 * '''''__7.1 建立共享的Storage (使用NFS)__'''''107 {{{108 // node01 的設定109 $ vim /etc/export110 111 // node02 的設定112 $ sudo mount -t nfs node01@/home/one /home/one113 }}}114 134 * '''''__7.2 Live Migrate__''''' 115 135 {{{