Changes between Version 7 and Version 8 of Reading/XenP/cluster


Ignore:
Timestamp:
Apr 14, 2009, 5:07:41 PM (16 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Reading/XenP/cluster

    v7 v8  
    1515 * 重複單機的 0 ~ 4 步驟
    1616 * 確認 /etc/hosts 有彼此的資訊
     17{{{
     18// node01 和 node02 的 /etc/hosts
     19$ sudo vim /etc/hosts
     20192.168.X.X node01
     21192.168.X.X node02
     22}}}
    1723 * 設定兩台的 auto login
    1824{{{
     25$ su root
    1926$ ssh-keygen -P ""
    20 $ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
     27$ cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
    2128$ scp -r ~/.ssh node02:~/
    2229
     
    2431$ ssh node01
    2532CTRL + D
     33CTRL + D
    2634}}}
     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
    2750----
    2851== 3.安裝 ONE ==
     
    3861$ scons
    3962$ sudo mkdir /home/one
     63
     64// 配置 ONE 環境變數
     65$ vim ~/.bashrc
     66export ONE_LOCATION=/home/one
     67export ONE_XMLRPC=http://localhost:2633/RPC2
     68export PATH=$PATH:$ONE_LOCATION/bin
     69$ source ~/.bashrc
     70
    4071$ sudo ./install.sh -d /home/one
    4172}}}
    42  * '''''__3.3 配置 ONE__'''''
     73
     74 * '''''__3.3 啟動 ONE__'''''
    4375{{{
    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
    5477}}}
    5578----
    5679== 4.使用 ONE 於 Xen Cluster ==
     80 * '''''__4.0 編輯 ONE 設定檔__'''''
     81{{{
     82$ cd /home/one
     83$ vim etc/oned.conf
     84}}}
    5785 * '''''__4.1 新增 Host/dom0 到 ONE pool__'''''
    5886{{{
    59 $ sudo onehost add node01 im_xen vmm_xen tm_ssh
    60 $ sudo onehost add node02 im_xen vmm_xen tm_ssh
     87$ onehost add node01 im_xen vmm_xen tm_nfs
     88$ onehost add node02 im_xen vmm_xen tm_nfs
    6189
    6290$ sudo onehost list
     
    104132----
    105133== 7.測試 Live Migration ==
    106  *  '''''__7.1 建立共享的Storage (使用NFS)__'''''
    107 {{{
    108 // node01 的設定
    109 $ vim /etc/export
    110 
    111 // node02 的設定
    112 $ sudo mount -t nfs node01@/home/one /home/one
    113 }}}
    114134 * '''''__7.2 Live Migrate__'''''
    115135{{{