Changes between Version 3 and Version 4 of jazz/mpdboot


Ignore:
Timestamp:
Jul 2, 2008, 10:57:25 AM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/mpdboot

    v3 v4  
     1[[PageOutline]]
     2
    13= How to run R-MPI on multiple machine with normal user permission =
    24
    3 == Issue description ==
    4 
    5  * We found that if we run mpd with superuser privilege (i.e. root permission), normal user in each node can not connect to mpd to run R-MPI.
    6    * First, we had finished the ip and hostname mapping by modifying /etc/hosts, and then use scp to exchange ssh public key to each compute node.
    7 {{{
    8 bio-cluster-12:~# cat /etc/hosts
    9 X.X.X.12 bio-cluster-12
    10 X.X.X.11 bio-cluster-11
    11 X.X.X.10 bio-cluster-10
    12 X.X.X.9  bio-cluster-09
    13 X.X.X.8  bio-cluster-08
    14 X.X.X.7  bio-cluster-07
    15 X.X.X.6  bio-cluster-06
    16 
    17 bio-cluster-12:~# for i in 11 10 09 08 07 06; do scp .ssh/id_rsa.pub bio-cluster-$i:.ssh/authorized_keys; done
    18 }}}
    19    * We had created the same mpd.conf in each node
    20 {{{
    21 bio-cluster-12:~# cat > /etc/mpd.conf << "EOF"
    22 > secretword=this_is_password
    23 > EOF
    24 
    25 bio-cluster-12:~# for i in 11 10 09 08 07 06; do scp /etc/mpd.conf bio-cluster-$i:/etc/.; done
    26 }}}
    27    * The mpd.hosts file is as following:
    28 {{{
    29 bio-cluster-12:~# cat mpd.hosts
    30 bio-cluster-11
    31 bio-cluster-10
    32 bio-cluster-09
    33 bio-cluster-08
    34 bio-cluster-07
    35 bio-cluster-06
    36 }}}
    37    * run mpdboot with superuser privilege
    38 {{{
    39 
    40 }}}
    41  * Reference Solution: [http://structbio.vanderbilt.edu/comp/soft/amber/start.php Getting started with AMBER]
     5 * Reference Configuration Guide:
     6   * [http://structbio.vanderbilt.edu/comp/soft/amber/start.php Getting started with AMBER]
    427
    438== Configure mpd for normal user ==
     
    4712login as: jazz
    4813jazz@bio-cluster-12's password:
     14jazz@bio-cluster-12:~$ ssh-keygen -t rsa
     15Generating public/private rsa key pair.
     16Enter file in which to save the key (/home/jazz/.ssh/id_rsa):
     17Enter passphrase (empty for no passphrase):
     18Enter same passphrase again:
     19Your identification has been saved in /home/jazz/.ssh/id_rsa.
     20Your public key has been saved in /home/jazz/.ssh/id_rsa.pub.
     21The key fingerprint is:
     22XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX jazz@bio-cluster-12
    4923jazz@bio-cluster-12:~$ for i in 11 10 09 08 07 06; do scp .ssh/id_rsa.pub bio-cluster-$i:.ssh/authorized_keys; done
    5024}}}
     
    7953jazz@bio-cluster-12:~$ mpdboot -n 7
    8054jazz@bio-cluster-12:~$ mpdtrace -l
    81 bio-cluster-12_54092 (140.129.162.12)
     55bio-cluster-12_54092 (10.220.202.219)
    8256bio-cluster-08_38361 (10.220.202.223)
    8357bio-cluster-09_52923 (10.220.202.222)
     
    8963time for 100 loops = 0.0729811191559 seconds
    9064}}}
    91  *
     65
     66== Test 1: Run mpd in local host ==