王海庆的云笔记

CentOS7安装openlavaMonitor


 关闭防火墙

systemctl stop firewalld
systemctl disable firewalld
sed -i -e  's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
setenforce 0


换成阿里云的源

rm -rf /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo

yum clean all
yum makecache fast -y


安装python3

yum install -y python3


安装qt5

# yum install -y qt5-qtquickcontrols qt5-qtdeclarative-devel qt5-qtdeclarative 
pip3 install PyQt5==5.14.0 -i https://mirrors.tencent.com/pypi/simple/


openlavaMonitor需要依赖桌面,因此操作系统最好有桌面


openlavaMonitor最新版 

rm -rf /opt/openlavaMonitor
git clone https://gitee.com/siwen1017/openlavaMonitor /opt/openlavaMonitor
cd /opt/openlavaMonitor
pip3 install -r requirements.txt -i https://mirrors.tencent.com/pypi/simple/
python3 setup.py develop

# 启动数据采集  
ln -s /usr/bin/python3 /usr/local/bin/python3
/opt/openlavaMonitor/monitor/bin/bmonitor


openlavaMonitor旧版

rm -rf /opt/openlavaMonitor
# git clone https://github.com/liyanqing1987/openlavaMonitor /opt/openlavaMonitor
git clone https://hub.fastgit.org/liyanqing1987/openlavaMonitor /opt/openlavaMonitor

cd /opt/openlavaMonitor
pip3 install -r requirements.txt -i https://mirrors.tencent.com/pypi/simple/
python3 install.py

cd /opt/openlavaMonitor/monitor/bin

python3 /opt/openlavaMonitor/monitor/bin/bsample.py -h

# 启动所需功能
python3 /opt/openlavaMonitor/monitor/bin/bsample.py -jq

# 打开gui管理
python3 /opt/openlavaMonitor/monitor/bin/bmonitor


上面两个命令如果报错,可以调高debug日志等级查看详情

export QT_DEBUG_PLUGINS=1


bsample负责数据采集功能 

bmonitor负责LSF信息展示功能 

 

常用命令

# 切换用户
su openlava

# 提交任务到openlava
bsub sleep 100

# 查看任务状态和基本信息
bjobs

# 查看队列状态和基本信息
bqueues

# 查看机器状态及基本信息
bhosts

# 查看机器资源状态
lshosts

# 查看机器负载状态
lsload


参考

CentOS 部署openlava4.0及openlavaMonitor
https://blog.csdn.net/baidu_32639021/article/details/101369622

openlava极简用户教程
https://blog.eetop.cn/blog-1751000-6943731.html

# openlava-4.0 安装教程(VMware/centos7)
https://my.oschina.net/liyanqing/blog/1633330

# lsf_10.1安装教程 (VMware/centos7)
https://my.oschina.net/liyanqing/blog/4694794

# openlava图形化监控工具openlavaMonitor
https://blog.csdn.net/weixin_34198881/article/details/92061757

文章最后更新时间: 2022-01-04 20:24:50