Changes between Version 2 and Version 3 of YM_Course_2009/Lab8


Ignore:
Timestamp:
Jul 5, 2009, 1:55:20 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YM_Course_2009/Lab8

    v2 v3  
    11{{{
    22#!html
    3 <div style="text-align: center;"><big style="font-weight: bold;"><big>實作八: </big></big></div>
     3<div style="text-align: center;"><big style="font-weight: bold;"><big>實作八: MPICH 實作練習</big></big></div>
    44}}}
    55[[PageOutline]]
     
    88
    99◢ <[wiki:YM_Course_2009/Lab7 實作七]> | <[wiki:YM_Course_2009 回課程大綱]> ▲ | <[wiki:YM_Course_2009/Lab9 實作九]> ◣
     10
     11 * 使用你的帳號登入: ym**
     12{{{
     13login as: ym24
     14ym24@bio.classcloud.org's password: ******
     15ym24@bio001:~$ ssh-keygen -t rsa
     16}}}
     17 * 產生 SSH 認證金鑰
     18{{{
     19Generating public/private rsa key pair.
     20Enter file in which to save the key (/home/ym24/.ssh/id_rsa):  <<< 請按 Enter
     21Created directory '/home/ym24/.ssh'.
     22Enter passphrase (empty for no passphrase):            <<< 請按 Enter
     23Enter same passphrase again:                     <<< 請按 Enter
     24Your identification has been saved in /home/ym24/.ssh/id_rsa.
     25Your public key has been saved in /home/ym24/.ssh/id_rsa.pub.
     26The key fingerprint is:
     272a:6c:05:f8:24:38:db:79:b9:4f:0c:74:da:c5:16:05 ym24@bio001
     28}}}
     29 * 進行金鑰交換
     30{{{
     31ym24@bio001:~$ cp .ssh/id_rsa.pub .ssh/authorized_keys
     32}}}
     33 * 設定 MPD 設定檔跟 MPI 的執行檔路徑
     34{{{
     35ym24@bio001:~$ echo "MPD_SECRETWORD=${user}$$" > ~/.mpd.conf
     36ym24@bio001:~$ chmod 600 .mpd.conf
     37ym24@bio001:~$ for ((i=2;i<=12;i++)); do echo "192.168.129.$i" >> mpd.hosts; done
     38ym24@bio001:~$ export PATH=$PATH:/opt/mpich2/bin
     39ym24@bio001:~$ which mpdboot
     40/opt/mpich2/bin/mpdboot
     41}}}
     42 * 設定 dsh (distributed shell)[http://packages.debian.org/stable/net/dsh *], 我們可以使用 dsh 指令逐台執行.
     43{{{
     44ym24@bio001:~$ mkdir -p .dsh/
     45ym24@bio001:~$ cp mpd.hosts .dsh/machines.list
     46ym24@bio001:~$ dsh -a hostname
     47}}}
     48 * 用使用者的身分執行 mpd
     49{{{
     50ym24@bio001:~$ mpdboot -n 7
     51}}}
     52 * 用 mpdtrace 檢查 mpd 執行狀態
     53{{{
     54ym24@bio001:~$ mpdtrace
     55bio002
     56bio006
     57bio012
     58bio011
     59bio005
     60bio004
     61bio003
     62bio010
     63bio009
     64bio008
     65bio007
     66}}}