-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopen_lava_install
67 lines (49 loc) · 1.63 KB
/
open_lava_install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
ssh-keygen -t rsa
#copy /root/.ssh/id_rsa.pub to other nodes
http://www.openlava.org/tarball/openlava-2.2.tar.gz
tar -xvzf openlava-2.2.tar.gz
cd openlava-2.2
yum install -y gcc tcl tcl-devel ncurses-devel
./configure
make install
cd config
cp lsb.hosts lsb.params lsb.queues lsb.users lsf.cluster.openlava lsf.conf lsf.shared lsf.tasks openlava.* /opt/openlava-2.2/etc
#nano /opt/openlava-2.2/etc/lsf.cluster.openlava
echo "#-----------------------------------------------------------------------
# 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..
# See lsf.cluster(5) and the "LSF Administrator's Guide".
#
Begin ClusterAdmins
Administrators = openlava
End ClusterAdmins
Begin Host
HOSTNAME model type server r1m RESOURCES
claster-master ! ! 1 - -
End Host
Begin ResourceMap
RESOURCENAME LOCATION
# tmp2 [default]
# nio [all]
# console [default]
End ResourceMap" > /opt/openlava-2.2/etc/lsf.cluster.openlava
useradd -r openlava
chown -R openlava:openlava /opt/openlava-2.2
cp /opt/openlava-2.2/etc/openlava /etc/init.d
chkconfig openlava on
cp /opt/openlava-2.2/etc/openlava.* /etc/profile.d
service openlava start
#just for checking
lsid
lsload
bhosts
bqueues
bsub 'echo my first job;sleep 60'
#check for result of your job
#cat /var/spool/mail/lubo
#or install alpine to get CLI GUI to check your results
yum -y install alpine