600 likes | 766 Vues
Case Study: Building a Cluster. Build a Beowulf Cluster Supercomputer Special Acknowledgment: Jesse Mays, Morehouse College. Topology : Star. MAC Mini Network. Step #1. Take the mini out of the box . MAC Mini Network. Keyboard Mouse Monitor
E N D
Case Study: Building a Cluster Build a Beowulf Cluster Supercomputer Special Acknowledgment: Jesse Mays, Morehouse College
MAC Mini Network Step #1. Take the mini out of the box
MAC Mini Network Keyboard Mouse Monitor Ethernet Power
Steps to Configuring the MAC Mini’s 1) Create Accounts a. Name Machine b. User Name c. Password 3) Configure IP Address 2) System Preferences a. File Sharing b. Remote Sharing c. Energy Saver off d. Firewall off
#1a : Configure System Preferences Click on System Preferences
#1a : Configure System Preferences Click on Sharing Name: ARC1, ARC2, etc
#1 b c : Configure System Preferences Click on System Preferences and Choose Accounts
#1b : Configure System Preferences Click on Accounts Click on lock to unlock Click on +
#1b : Configure System Preferences Select Administrator from Drop Down menu & change
#2 c : Configure System Preferences Click on System Preferences
#2 c : Configure System Preferences Click on Energy Saver Slide bars to Never, Uncheck all boxes
#2 d : Configure System Preferences Click on System Preferences
#2 d : Configure System Preferences Click on Security Click on Firewall
#3: Configure the IP Address Click on System Preferences
Configure IP Address Click on Network Click on Ethernet
Configure IP Address Change DHCP (drop down) Select Manually
Configure IP Address Click on Advanced Click on Ethernet
Configure IP Addressing Make These Changes
Server vs. Nodes In the next steps, we will first setup the Server (ARC1) . Then to setup the nodes all we need to do is a secure copy to the nodes.
So …. We are all the same: Logout user: Bobby Login user : ARC
Configure the Unixfor the Server – ARC1 • Setup Host Files • Setup SSH • Install & Configure GCC • Install & Configure MPICH • Configure MPI to work with SSH • Test SSH, GCC and MPI
Setup Host Files Click on Go, Select Utilities. Drag the Terminal to the Dock. Click on the Terminal in the Dock
Setup Host Files cd to root (cd /) Type: sudo pico /etc/hosts
Setup Host Files Add the following at the bottom of the file: 172.30.220.1 ARC1 172.30.220.2 ARC2 172.30.220.3 ARC3 172.30.220.4 ARC4 172.30.220.5 ARC5 172.30.220.6 ARC6
Setting up SSH What is SSH? Why do we Need it? SSH Encryrption Port 22
Setting up SSH We will be modifying 3 files: • /etc/ssh_config • /etc/sshd_config • /etc/hosts.equiv
Setting up SSH Type: sudo pico /etc/ssh_config host * HostbasedAuthentication yes EnableSSHKeysign yes
Setting up SSH Type: sudo pico /etc/sshd_config HostbasedAuthentication yes
Setting up SSH Type: sudo pico /etc/hosts.equiv Add the following hostnames: ARC1 ARC2 ARC3 ARC4 ARC5 ARC6
Install and Configure GCC What is GCC? Why do we need GCC? Reference: http://en.wikipedia.org/wiki/GNU_Compiler_Collection
Install and Configure GCC We have provided this Apple Developer Tool for you on DVD: Click Here to Download and Install Xcode: Reference: http://developer.apple.com/technology/Xcode.html
Install and Configure GCC Steps to Follow: 1.) Double Click on Xcode Folder 2.) Double Click on Xcode Tools 3.) Double Click on Packages
B4 We Can Proceed :We Need to Create the DirectoryWhere We Will Install GCC
Install and Configure GCC Steps to Follow: 1.) Double Click on gcc4.2
Install and Configure GCC Steps to Follow: 4.)Choose folder Macintosh HD /arc_share/apps
Install and Configure GCC Steps to Follow: 5.)Click Continue 6.) Click Install
Install and Configure MPICH What is MPICH? Why do we Need MPICH? Reference: http://en.wikipedia.org/wiki/MPICH
Download MPICH http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads
MPICH: Extracting the tar file • Copy the tar file to the directory arc_share by opening the finder, and dragging it from desktop 2) Double click on the MPICH.tar.tar icon to un-tar the file
Install MPICH Type: cd /arc_share/mpich1.2.7p1 ./configure - -with-device=ch_p4 – prefix=/usr/local/mpich-1.2.5/ch_p4 -rsh=ssh
Installing MPICH Type: make sudo make install
MPICH: Set the Path What is a path? Why do we need to set it?
Path Statement Type: cd sudo pico .bashrc #! /usr/bash export PATH=/arc_share/mpich-1.2.7p1/bin:$PATH Ctrl o – to write Ctrl x to exit cp .bashrc .bash_profile