Linux

오픈소스 openlava 설치하기

Naan 2015. 4. 4. 15:11
320x100

설치를 하기위해서 리눅스가 필요하다

리눅스를 준비하고

centos 6.5 기반

http://www.openlava.org/download/download.html

위 경로에서 다운을 받아서 압축을 풀고 설치한다.

# tar -xvf openlava-3.0.tar.gz

# cd openlava-3.0

# ./configure

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/data/lsf/openlava-3.0':

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.


에러가 뜬다.
gcc 가 설치가 안되있어 뜨는 에러이다.

# yum install gcc 

다시 설치하자
# ./configure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hecking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
configure: error: cannot build openlava without ncurses

또 에러가 뜬다.

# yum install ncurses-devel
필요한거 또 설치

# ./configure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
checking tcl8.0/tcl.h presence... no
checking for tcl8.0/tcl.h... no
checking tcl80/tcl.h usability... no
checking tcl80/tcl.h presence... no
checking for tcl80/tcl.h... no
configure: error: cannot build openlava without tcl

ㅎㅎ 필요한거 또 설치
# yum install tcl*

# ./configure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
config.status: creating config/openlava.csh
config.status: creating config/openlava
config.status: creating config/openlava.setup
config.status: creating config/openlava.sh
config.status: creating examples/Makefile
config.status: creating examples/docker/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

# make && make install
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/data/lsf/openlava-3.0/examples'
make[2]: Leaving directory `/data/lsf/openlava-3.0/examples'
make[1]: Leaving directory `/data/lsf/openlava-3.0/examples'
make[1]: Entering directory `/data/lsf/openlava-3.0'
make[2]: Entering directory `/data/lsf/openlava-3.0'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/data/lsf/openlava-3.0'
make[1]: Leaving directory `/data/lsf/openlava-3.0'


설치가 완료됐다.

# cd config
# cp lsb.hosts lsb.params lsb.queues lsb.users lsf.cluster.openlava lsf.conf lsf.shared openlava.* /opt/openlava-3.0/etc
# useradd -r openlava
# chown -R openlava:openlava /opt/openlava-3.0
# cp /opt/openlava-3.0/etc/openlava /etc/init.d
# cp /opt/openlava-3.0/etc/openlava.* /etc/profile.d
# chkconfig openlava on
# cd /opt/openlava-3.0/etc
# vi lsf.cluster.openlava
#-----------------------------------------------------------------------
# T H I S   I S   A    O N E   P E R   C L U S T E R    F I L E
#
# This is a sample cluster definition file.  There is a cluster
# definition file for each cluster.  This file's name should be
# lsf.cluster.<cluster-name>.
# See lsf.cluster(5) and the "LSF Administrator's Guide".
#

Begin   ClusterAdmins
Administrators = openlava
End    ClusterAdmins

Begin   Host
HOSTNAME          model          type  server  r1m  RESOURCES
testpc                  IntelI5      linux   1      3.5    (cs)            --> 수정
End     Host

Begin ResourceMap
RESOURCENAME  LOCATION
# tmp2          [default]
# nio           [all]
# console       [default]
End ResourceMap

# source /etc/profile.d/openlava.sh
# service openlava start
Starting daemons...
lim started
res started
sbatchd started

이러면 정상 작동이 된다.

# 혹시 에러 로그를 확인하고 싶다면
# vi /opt/openlava-3.0/log/lim.log.hostname 


[root@openlava tmp]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV
openlava           ok              -      2      0      0      0      0      0
test1              ok          -      1      0      0      0      0      0
test2              ok          -      1      0      0      0      0      0
test3              ok          -      1      0      0      0      0      0
test4              ok          -      1      0      0      0      0      0
# lsid
OpenLava 3.0, Apr  1 2015

My cluster name is openlava
My master name is openlava


320x100