wiki:BOINC/DRBL-Live

使用 DRBL Live 打造 BOINC 分散運算叢集

  • 下載 DRBL-Live
  • 啟動 DRBL LiveCD
  • 開啟 terminal 安裝 boinc-client , 然後啟動 boinc-client 到背景跑, 用 boinc_cmd 加入中心自己架的 BOINC 範例及 WCG
    user@debian:~$ sudo su -
    debian:~# apt-get update
    debian:~# apt-get install boinc-client
    debian:~# /etc/init.d/boinc-client start
    debian:~# boinc_cmd --project_attach http://140.110.X.X/bioinfo 565b90756d47438d6cddcf58913c09cd
    debian:~# boinc_cmd --project_attach http://www.worldcommunitygrid.org 8528e341841afe33648c55fd2ed5c17f
    
  • 點選桌面"啟動 DRBL"圖示或執行 drbl-live.sh
    debian:~# /opt/drbl/sbin/drbl-live.sh start
    
  • 如果預設要讓 boinc-client 的 service 在背景跑, 可以使用 drbl-client-service 把 boinc-client 設為預設啟動
    debian:~# /opt/drbl/sbin/drbl-client-service boinc-client on
    
  • 如果要手動啟動或關閉每一台 DRBL Client 的 BOINC Client 可以用 drbl-doit 指令
    debian:~# /opt/drbl/bin/drbl-doit /etc/init.d/boinc-client start
    debian:~# /opt/drbl/bin/drbl-doit /etc/init.d/boinc-client stop
    
  • 把所有 DRBL Client 打開, 用 PXE 開機 .... 理論上就已經會有可以執行 BOINC 的環境, 可以檢查以下幾個檔案. 並可使用 boinc_cmd 來查詢目前 BOINC Client 執行的狀態
    user@debian02:~$ ls /etc/init.d/boinc-client
    user@debian02:~$ ls /var/lib/boinc-client/account*
    user@debian02:~$ boinc_cmd --get_state
    
  • 為了讓每一台 DRBL Client 開機之後就開始跑 WCG 或其他 BOINC Application, 可以用 boinc_cmd 加入 --set_run_mode always 跟 --set_network_mode always 的參數, 來強制一完成 BOINC 登入, 取得程式就可以開始跑了.
    • --set_run_mode always 代表不管使用者有無動作, 都有優先計算權
    • --set_run_mode always 代表不管使用者有無動作, 都可以下載檔案
    • 修正 DRBL LiveCD 0.9.14-3
      • /opt/drbl/sbin/drbl-live-boinc

        old new  
        1414  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
        1515  echo "BOINC url and authrized key file $BOINC_CONF was not found!"
        1616  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
        17   echo "Program terminated!"
        18   exit 1
         17  echo "Join World Community Grid with drbl account as default? [Y/n]"
         18  echo "# URL Authorized_key" > $BOINC_CONF
         19  echo "http://www.worldcommunitygrid.org 8528e341841afe33648c55fd2ed5c17f" >> $BOINC_CONF
        1920fi
        2021
        2122#
         
        3435     boinc_cmd --project_attach $url $auth
        3536  fi
        3637done < $BOINC_CONF
         38boinc_cmd --set_run_mode always
         39boinc_cmd --set_network_mode always
        3740
        3841#  TODO: If hostname is changed now, the application in the running X won't work.
        3942# echo "$msg_delimiter_star_line"
  • [注意][操作習慣] 使用 DRBL Live 時, 如果用設定網路時, 先設定對內的網卡, 選 static, 會要你輸入 gateway, 然後當對外的網卡是用 DHCP 取得, 也有 Gateway, 兩個都是 Private IP 的時候, DRBL 就容易選錯網卡.所以要先設定對外的網卡, 再設定對內的網卡.因為 DRBL 的設定程式會幫忙不要設定 default gateway.
Last modified 15 years ago Last modified on Jan 14, 2009, 10:49:25 AM

Attachments (1)

Download all attachments as: .zip