Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

DATED-07-09-20 18BCE0707

ASSESSMENT 7 MUSKAN AGRAWAL

PARALLEL
& DISTRIBUTED COMPUTING(L31+32)
LAB ASSESSMENT 7

AIM: CREATING OUR OWN MPI CLUSTER

STEP 1:installing all the required servers


sudo apt-get install openssh-server

sudo apt-get install build-essential

sudo apt-get install dnsmasq

sudo apt-get install nfs-kernel-server

sudo apt-get install nfs-common


DATED-07-09-20 18BCE0707
ASSESSMENT 7 MUSKAN AGRAWAL

STEP 2: Replace /etc/dnsmasq.conf with
interface=eth1

listen-address=127.0.0.1

no-dhcp-interface=eth0

dhcp-range=192.168.0.50,192.168.0.150,12h

dhcp-option=3,192.168.0.1
DATED-07-09-20 18BCE0707
ASSESSMENT 7 MUSKAN AGRAWAL

STEP 3: restart networking and the DHCP server


sudo service networking restart

sudo service dnsmasq restart

Also make changes in file /etc/hosts

STEP 4: installing cluster ssh


sudo apt-get install clusterssh

cssh slave0 slave1 slave2 slave3


DATED-07-09-20 18BCE0707
ASSESSMENT 7 MUSKAN AGRAWAL

STEP 5: NFS-master and NFS-master


echo "/mirror *(rw,sync,no_subtree_check)" | sudo tee
-a /etc/exports

sudo service nfs-kernel-server restart

echo "master:/mirror    /mirror    nfs" | sudo


tee -a /etc/fstab
sudo mount -a
DATED-07-09-20 18BCE0707
ASSESSMENT 7 MUSKAN AGRAWAL

STEP 6: SETTING UP THE MPI USER


sudo adduser --home /mirror --uid 1100 mpi
sudo chown mpi /mirror

STEP 7: PASSWORDLESS SSH FOR COMMUNICATION


BETWEEN NODES
First we login with our new user to the master node:

su – mpi
Then we generate an RSA key pair:

ssh-keygen -t rsa
we add this key to authorized keys:

cd .ssh

cat id_rsa.pub >> authorized_keys


Logging in to some node should work without typing a password

mpi@master:~$ ssh slave2

mpi@slave2:~$
DATED-07-09-20 18BCE0707
ASSESSMENT 7 MUSKAN AGRAWAL

You might also like