wiki:Reading/XenP/cluster

Version 2 (modified by rock, 15 years ago) (diff)

--

叢集

1.佈署成Cluster

  1. 可使用 DRBL 或 CloneZilla 來佈署 Cluster
  2. 此次為了方便,可直接使用隔壁桌的電腦

2.第二台機器的設定

  • 重複單機的 1 ~ 4 步驟
  • 設定兩台的 auto login
    $ ssh-keygen -P ""
    $ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
    $ scp -r ~/.ssh node02:~/
    
    $ ssh node02
    $ ssh node01
    CTRL + D
    

3.安裝 ONE

  • 3.1 安裝需要的套件
    $ sudo aptitude install ruby sqlite3 libsqlite3-0 libsqlite3-dev libsqlite3-ruby \
    libxmlrpc-c3 libxmlrpc-c3-dev scons g++ flex bison
    
  • 3.2 下載 ONE 和安裝
    $ tar zxvf one-1.2.0.tar.gz
    $ cd one-1.2.0
    $ scons
    $ sudo mkdir /home/one 
    $ sudo ./install.sh -d /home/one
    
  • 3.3 配置 ONE
    $ sudo vim /etc/profile
    export ONE_LOCATION=/home/one
    export ONE_XMLRPC=http://localhost:2633/RPC2
    export PATH=$ONE_LOCATION/bin:$PATH
    
  • 3.4 啟動 ONE
    $ sudo $ONE_LOCATION/bin/one start
    

使用 ONE Create VM (one01.cfg 設定檔,指令介紹) 使用 ONE Create Hadoop Cluster (準備好 one_demo_Image.tar.bz2) NFS Storage -> Live Migrate

Attachments (2)

Download all attachments as: .zip