This is not a blog, but my notes and tips for research. Feel free to take any information and leave any comments or questions.
Search This Blog
Monday, March 31, 2014
How to install openlava in Ubuntu
1) prerequisite:
sudo apt-get install python-software-properties
2) add ppa
sudo add-apt-repository ppa:cansmith/ol
3) update repository
sudo apt-get update
4) install openlava
sudo apt-get install --yes openlava
5) edit /etc/hosts: the first line
from
127.0.0.1 localhost
to
127.0.0.1 myhostname localhost
6) setup configuration
- Go to openlava directory
cd /etc/openlava/
- open openlava.sh
sudo vi openlava.sh
- change
LSF_ENVDIR=/usr/etc
to
LSF_ENVDIR=/etc/openlava
- source it
. ./openlava.sh
- add it to ~/.bashrc
echo ". /etc/openlava/openlava.sh " >> ~/.bashrc
7) check openlava status in /etc/openlava
sudo ./openlava status
the output must look like
lim pid: <>
res pid: <>
sbatchd pid: <>
lim mbatchd: <>
(without any numbers in <>)
8) start openlava
sudo ./openlava start
the output must look like
Starting daemons...
lim started
res started
sbatchd started
9) Check a couple of commands:
albertsk@heyum:openlava$ bhosts
HOST_NAME STATUS JL/U MAX NJOBS RUN SSUSP USUSP RSV
heyum ok - 8 0 0 0 0 0
albertsk@heyum:openlava$ bjobs
No unfinished job found
albertsk@heyum:~$ bhist
No matching job found
10) run the first job
- go to home directory
cd
- make a test directory
mkdir bsub
cd bsub
- edit a job file job.bsub:
#BSUB-q normal # Job queue
#BSUB-J myfirstjob # name of the job
#BSUB -o lava-%J.out
#BSUB -e lava-%J.err
hostname
pwd
ls -laF
- submit the job
bsub < job.bsub
- try following commands: bjobs, bhist, bpeek
Subscribe to:
Post Comments (Atom)
Labels
- Academic Notes (4)
- BLAS (1)
- CEE618 (2)
- CentOS (1)
- Computation (1)
- Conferences (1)
- Cross compiling (1)
- Graphics (1)
- Hawaii Tour (2)
- Intel compiler (1)
- Just (1)
- Laptop (1)
- LaTex (22)
- Life and Humanity (8)
- Linux and Computing (107)
- LSF (1)
- Lyx (3)
- Macintosh (5)
- MPI (1)
- News (11)
- OpenFoam (1)
- OpenMPI (1)
- PBS (2)
- Software (4)
- SSH (2)
- torque (1)
- Touchpad (1)
- VMD (1)
- yum (1)
No comments:
Post a Comment