OSCAR Cluster Installation

Download Report

Transcript OSCAR Cluster Installation

O.S.C.A.R.
Cluster Installation
O.S.C.A.R.
Open Source Cluster Application Resource
Latest Version: 2.2 (March, 2003)
Cal State LA OSCAR version 2.1
(http://oscar.calstatela.edu)
Download OSCAR software from
(http://oscar.sourceforge.net)
Terminology
Cluster
Node
Head Node, Master Node, Server Node
Child Node, Slave Node, Client Node
RPM (RPM Package Manager)
Public IP, Private IP
MAC Address
Network Topology
Software Requirements
Linux Operating System
RedHat 7.1 Experimentally supported
RedHat 7.2 Fully supported
RedHat 7.3 Fully supported
Mandrake 8.2 Fully supported
Mandrake 9.0 Experimentally supported
Hardware Requirements
Head Node
CPU: Intel Pentium or above
10/100 Network Card (If your OSCAR server node is
going to be the router between a public network and
the cluster nodes, you will need a second network card)
HD: 4GB or above
Child Nodes
CPU: Intel Pentium or above
HD: 2GB or above
Network Card
All clients must have the same hardware architecture
Installing the Linux OS
Install Linux (RedHat 7.3)
Copy All RPMs from ALL of the OS
installation CDs (RedHat 7.3 have 3 CDs) to
the Hard Drive (/tftpboot/rpm)
Installing O.S.C.A.R.
Run the install cluster script with an
argument specifying your server’s
private network adapter.
./install_cluster eth0
Follow the documented procedures to
finish O.S.C.A.R. installation
O.S.C.A.R. Wizard
The start_over script
Start the cluster installation process
over from scratch in order to recover
from irresolvable errors
the start_over script located in the
scripts subdirectory
Reboot the computer after running the
start_over script and reinstall from the
beginning
O.S.C.A.R. Clients
Child Nodes, Slave Nodes, Client Nodes
Image Name
Domain Name
Base Name
Numbers of Hosts
Starting Number
Starting IP
O.S.C.A.R. Clients
Build Auto Install Floppy
Collect MAC Address
Network Boot Client and begin the
installation
O.S.C.A.R. Wizard
O.S.C.A.R. Wizard
Complete the O.S.C.A.R. setup
Test OSCAR Setup
Adding / Deleting Clients
./install_cluster eth0
Image Name
Domain Name
Base Name
Numbers of Hosts
Starting Number
Starting IP
Adding O.S.C.A.R. Clients
Deleting O.S.C.A.R. Clients
OSCAR Account Setup
Use Secure Shell Client to connect to
OSCAR2
Start -> Workspace -> Communications
-> SSH Secure Shell -> Secure Shell
Client
Click “Quick Connect”
OSCAR Account Setup – Cont.
Host Name: – IP Address of OSCAR2 –
130.182.168.199
User Name: studentX
Password: 1234567
Password Setup
To change account password, type in
unix command “passwd”
Enter current password – 1234567
Then enter new password
If acceptable to the system, retype new
password
Running Your First Program
Type “ls” at the $ prompt
You should see “hello.c”
Type “pico bhost.def” at $ prompt
Enter:
oscar2
oscar2node1
oscar2node2
oscar2node3
oscar2node4
Compiling hello.c
Save your bhost.def file
Type “ls” and confirm it is there
To compile, type: “mpicc hello.c –o
hello”
Start LAM environment, type “lamboot
bhost.def”
Run hello
To run program, type “mpirun C hello”
The output:
CHILD NODE: 1
CHILD NODE: 2
HEAD NODE
CHILD NODE: 4
CHILD NODE: 3
Output can and should vary.