SUN사이트에서 자바 rpm.bin파일 다운로드 한후 실행권한 변경.
$ chmod a+x jdk-6u30-linux-x64.rpm.bin다운로드받은파일의 압축을 풀고 설치한다.(루트계정)
$./jdk-6u30-linux-x64-rpm.bin제대로 설치되었는지 확인
$ java -version
$ chmod a+x jdk-6u30-linux-x64.rpm.bin다운로드받은파일의 압축을 풀고 설치한다.(루트계정)
$./jdk-6u30-linux-x64-rpm.bin제대로 설치되었는지 확인
$ java -version
$ yum install ibus ibus-hangul ibus-anthy그놈 상단 메뉴의 시스템->기본설정->입력방식->입력방식설정->입력방식 에서 한국어를 선택하면 된다.
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
2. SUN java1.6 설치$ sudo apt-get update
3. 설치된 자바목록을 확인$ sudo apt-get install sun-java6-jdk
4. 사용하려는 자바버전으로 변경$ sudo update-java-alternatives -l
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
$ sudo update-java-alternatives -s java-6-sun
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
$ mkdir my_build_dir2. HPL 설치
$ cd my_build_dir
$ /path/to/ATLAS/configure [flags]
$ make ! tune and compile library
$ make check ! perform sanity tests
$ make ptcheck ! checks of threaded code for multiprocessor systems
$ make time ! provide performance summary as % of clock rate
$ make install ! Copy library and include files to other directories
$ cp setup/Make.Linux_PII_CBLAS .3) Make.Linux_PII_CBLAS 수정
#TOPdir = $(HOME)/hpl
TOPdir = $(HOME)/Utils/cluster/hpl-2.0
#MPdir = /usr/local/mpi
MPdir = /usr
#MPlib = $(MPdir)/lib/libmpich.a
MPlib = $(MPdir)/lib64/libmpi.so #64비트, openmpi사용시
#LAdir = $(HOME)/netlib/ARCHIVES/Linux_PII4) 컴파일
LAdir = /usr/local/atlas/lib
$ make arch=Linux_PII_CBLAS5) 벤치마크 실행
$ cd bin/Linux_PII_CBLAS
$ mpirun -np 4 xhpl
$ tar -zxvf torque-3.0.0.tar.gz3) 계산 노드에 다음 두 스크립트를 복사하여 설치.
$ cd torque-3.0.0
$ ./configure
$ make
$ make install
$ ./torque-package-clients-linux-i686.sh --install4) 설치 디렉토리의 torque.setup 스크립트 실행 (헤드 노드)
$ ./torque-package-mom-linux-i686.sh --install
$ ./torque.setup test5) /var/spool/torque/server_priv/nodes에 계산 노드 목록 기술.
node1 np=26) /var/spool/torque/mom_priv/config에 다음 기술 (계산 노드)
node2 np=2
...
$pbsserver headnode # note: hostname running pbs_server7) 데몬 실행
$logevent 255 # bitmap of which events to log
$ pbs_server (헤드노드)8) job 제출(run.sh는 실행 스크립트)
$ pbs_sched (헤드노드)
$ pbs_mom (헤드 & 계산노드)
$ qsub run.sh
$ qstat (큐상태 확인)
$ ./configure --sysconfdir=/etc/ganglia --with-gmetad3) gmond와 gmetad 초기화스크립트를 시작 스크립트로 복사
$ make
$ make install
$ cp gmond/gmond.init /etc/rc.d/rc.gmond4) gmond.conf를 /etc/ganglia로 복사
$ cp gmetad/gmetad.init /etc/rc.d/rc.gmetad (헤드노드만)
$ cp gmond/gmond.conf /etc/ganglia/.5) /etc/ganglia/gmond.conf 수정
$ cp gmetad/gmetad.conf /etc/ganglia/. (헤드 노드만)
cluster {
//name = "unspecified"
name = "my cluster"
}
udp_send_channel {
#bind_hostname = yes # Highly recommended, soon to be default.
# This option tells gmond to use a source address
# that resolves to the machine's hostname. Without
# this, the metrics may appear to come from any
# interface and the DNS names associated with
# those IPs will be used to create the RRDs.
//mcast_join = 239.2.11.71
host = 192.168.1.1
port = 8649
ttl = 1
/* You can specify as many udp_recv_channels as you like as well. */6) /etc/ganglia/gmetad.conf 수정 (헤드 노드만)
udp_recv_channel {
//mcast_join = 239.2.11.71
port = 8649
//bind = 239.2.11.71
bind = 192.168.1.1
}
data_source "my cluster" 192.168.1.17) Web Frontend 설치
mkdir /var/www/htdoc/ganglia8) /var/www/htdoc/ganglia/conf.php에서 rrd 파일 저장위치와 rrdtool의 위치 확인
cp -a web/* /var/www/htdoc/ganglia/
# Where gmetad stores the rrd archives.9) 8)의 rrd파일 저장 위치 생성 후 nobody로 소유자 변경.
$gmetad_root = "/var/lib/ganglia";
$rrds = "$gmetad_root/rrds";
# Leave this alone if rrdtool is installed in $gmetad_root,
# otherwise, change it if it is installed elsewhere (like /usr/bin)
define("RRDTOOL", "/usr/bin/rrdtool");
mkdir -p /var/lib/ganglia/rrds10) Apache 설정에 PHP 모듈이 활성화 되어있는지 확인
chown nobody.nobody /var/lib/ganglia/rrds
# Uncomment the following line to enable PHP:11) 모든 노드에서 gmond 시작, 헤드노드에서 gmetad , httpd 시작
#
Include /etc/httpd/mod_php.conf
$ /etc/rc.d/rc.gmond start12) gmond, gmetad 정상동작 확인
$ /etc/rc.d/rc.gmetad start
$ /etc/rc.d/rc.httpd start
$telnet node2 864913) http://localhost/ganglia/index.php로 접속
$telnet localhost 8651