1、准备
# cat /etc/hosts
# 三台主机都关闭iptables,NetworkManager,selinux为disabled
2、srhel65-1:
2.1 安装openlave
# cd /opt
# rpm -ivh openlava-3.1-2.x86_64.rpm
2.2 添加openlave命令为系统命令
# echo -e "PATH=$PATH/opt/openlava-3.1/bin\nexport PATH" >> /etc/profile
# source /etc/profile
2.3 添加主机
# cd openlava-3.1/etc/
# vim lsf.cluster.openlava
14 Begin Host
15 HOSTNAME model type server r1m RESOURCES
16 srhel65-1 IntelI5 linux 1 - -
17 srhel65-2 IntelI5 linux 1 - -
18 srhel65-3 IntelI5 linux 1 - -
19 End Host
# /etc/init.d/openlava start
2.4 设置挂载点
# echo "/opt/openlava-3.1/etc 20.20.20.41/24(rw,no_root_squash) 20.20.20.42/24(rw,no_root_squash)" >> /etc/exports
# /etc/init.d/nfs start
3、srhel65-2 && srhel65-3:
3.1 安装openlava
# cd /opt
# rpm -ivh openlava-3.1-2.x86_64.rpm
3.2 添加openlave命令为系统命令
# echo -e "PATH=$PATH:/opt/openlava-3.1/bin\nexport PATH" >> /etc/profile
# source /etc/profile
3.3 将/opt/openlava-3.1/etc目录挂载到srhel65-1
# echo "srhel65-1:/opt/openlava-3.1/etc /opt/openlava-3.1/etc nfs defaults 1 2" >> /etc/fstab
# mount -a
4、srhel65-1:
4.1 并查看
# bhosts
# lsload
# lshosts