ACTION Lab HPC Install Mannul
ACTION Lab HPC Install Mannul
ACTION Lab HPC Install Mannul
In our example we use 10.0.1.2 and 10.0.1.3 as main node and computing node Ip address.
If you are not using virtual machine. Just manually configure your IP address on your system.
1. Set up DHCP service and configure your IP address (In Virtual box)
1. Close all the nodes
2. Open settings
3. Remove your install ISO file in storage
CentOS-1: 10.0.1.2
CentOS-2: 10.0.1.3
5. restart nodes.
After finish install the NFS server and libraries, we boot the NFS server by using;
2. make a folder where the shared folder from Machine #1 will be mounted on Machine #2.
mkdir -p /nfs
3. make sure that we can access CentOS-1, the NFS Server. Make sure that the following two
commands do not return any errors.
showmount -e 10.0.1.2
rpcinfo -p 10.0.1.2
With df -h, we should see that 10.0.1.2:/nfs mount has been created at the bottom. If we create any file
inside /nfs, then all the machines connected can see the same file.
df -h
touch 123.txt
When you restart the two virtual machines, the NFS shared folder will not be there. We need to set a
more automatic way for the NFS client to look for the NFS folder.
vi /etc/fstab
Every time, we restart the client, we can re-mount the NFS shared folder by typing mount -a.
mount -a
mkdir ~/.ssh
You can press Enter to leave the next three prompts as default.
cd ~/.ssh
copy the public key, id_rsa.pub, to authorized_keys to enable this key for access to machine #1
cp id_rsa.pub authorized_keys
Now, we should send the private key, id_rsa, and public key, id_rsa.pub, from machine #1 to machine
#2. We use a command called scp for copying files over machines.
On machine #2, we have received the private key and public key. We need to make the ~/.ssh directory
on machine #2.
mkdir ~/.ssh
cd ~/.ssh
cp id_rsa.pub authorized_keys
We should be able to ssh from machine #1 to machine #2 without a password and vice
versa.
On machine #1: ssh root@10.0.1.3
cd /nfsshare
vi ~/.bashrc
We will make a directory where all the compiled binaries and libraries of mpich will go.
cd /nfsshare/ openmpi-2.1.1
Install openmpi
make
make install
If we cd /nfs/<YOUR FOLDER NAME>, we will see folders containing the binaries and libraries of mpich. If
we cd /nfs/<YOUR FOLDER NAME>/bin, we can see openmpi binaries like mpicc.
Currently, we won’t be able to use mpicc from anywhere on the machine. We need to change the
~/.bashrc file on machine #1 and machine #2 to globalize the mpi commands.
On both machines:
vi ~/.bashrc
PATH is used for bin folders, and LD_LIBRARY_PATH is used for lib folders. To reload the
~/.bashrc, type the following command on both machines:
source ~/.bashrc
cd /nfsshare
mkdir /projects
create a host file contains IP address for all the IP`s that we want MPI run
MPI relies on ports for TCP and UDP packet communication. We will need to stop the firewalld for the
process to hop between machines.
systemctl stop firewalld (manually stop the firewall everytime when you rebooting the system)
hostnamectl status
hostnamectl set-hostname
name you want to give
cd /nfsshare/ openmpi-2.1.1/examples
./compile
8.Install Codeblocks
download codeblocks 16.01 in your nfsshare folder
./configure
make
make install
9. Appendix
videos:
1. How to set up hpc clusters on CentOS?
https://www.youtube.com/watch?v=WgUjghaI_Ls&index=1&list=PLPx62H67wgD
47MWNeAkvWjZURgpl6mBtu
https://www.youtube.com/watch?v=3MZcRBOsNWE&index=6&list=PLPx62H67w
gD47MWNeAkvWjZURgpl6mBtu&t=1228s
2.How to install code-blocks on Linux?
https://www.youtube.com/watch?v=75UZ5ScW_TM&index=5&list=PLPx62H67w
gD47MWNeAkvWjZURgpl6mBtu&t=543s
3.Change IP address static on linux.
https://www.youtube.com/watch?v=FZQBECRrpk&index=2&list=PLPx62H6
7wgD47MWNeAkvWjZURgpl6mBtu&t=6s
4.Install & Configure TIGER VNC Server in CentOS 7 and RHEL 7
https://www.youtube.com/watch?v=dKBAR0zUzUw&index=4&t=494s&
list=PLPx62H67wgD47MWNeAkvWjZURgpl6mBtu
websites:
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux