本系列文章一律采用AlmaLinux 8.10罪小化安装!
为节约资源一共采用5太虚拟机
每台主机只分三个区,/ 50G,swap 8G ,/boot 1G ,没有/home分区!
192.168.1.110 vnc01 (VNC服务器)
192.168.1.111 nfs01 (nfs服务器)
192.168.1.112 nis01 (NIS服务器)
192.168.1.113 lsf01 (LSF服务器)
192.168.1.114 node01 (计算节点)
192.168.1.115 node02 (计算节点)
nisdomainname :
mjwdj.com
配置LSF
1、关闭 selinux 和防火墙,并替换yum源
sed -i '/^SELINUX/s/enforcing/disabled/' /etc/selinux/config
systemctl disable firewalld
echo 192.168.1.111 nfs01 >> /etc/hosts
cp -rf /etc/yum.repos.d/ ./
rm -f /etc/yum.repos.d/*
curl htttp://nfs01/almalinux8-iso.repo -o /etc/yum.repos.d/almalinux8-iso.repo
2、配置主机名
hostnamectl set-hostname lsf01
echo "192.168.1.111 nfs01" >> /etc/hosts
echo "192.168.1.112 nis01" >> /etc/hosts
echo "192.168.1.113 lsf01" >> /etc/hosts
echo "192.168.1.114 node01" >> /etc/hosts
echo "192.168.1.115 node02" >> /etc/hosts
3、配置NSF服务
yum -y install nfs-utils
systemctl enable rpcbind
systemctl enable nfs-server
mkdir -p /opt/lsf
vi /etc/exports
-
/opt/lsf 192.168.1.0/24(rw,async,no_root_squash)
systemctl restart rpcbind
systemctl restart nfs-server
4、配置nis
yum -y install yp-tools
systemctl enable ypbind
echo "NISDOMAIN=mjwdj.com" >> /etc/sysconfig/network
echo "ypserver nis01" >> /etc/yp.conf
echo "domain mjwdj.com server nis01" >> /etc/yp.conf
nisdomainname mjwdj.com
systemctl restart ypbind
authselect select nis --force
id lsfadmin
5、安装配置LSF
yum -y install ed tar libnsl pkgconf-pkg-config
mkdir /mount/upload/lsf/ -p
##上传 lsf10.1_x86_lnx310.tar 到/mount/upload/lsf/ 目录
cd /mount/upload/lsf/
tar -xf lsf10.1_x86_lnx310.tar
rm -f lsf10.1_x86_lnx310.tar
cd lsf10.1_x86_lnx310/
mv lsf_std_entitlement.dat /opt/lsf/
tar -xf lsf10.1_lsfinstall_linux_x86_64.tar
cd lsf10.1_lsfinstall
vi install.config
-
LSF_TOP="/opt/lsf"
-
LSF_ADMINS="lsfadmin"
-
LSF_CLUSTER_NAME="cluster1"
-
LSF_MASTER_LIST="lsf01"
-
LSF_TARDIR="/mount/upload/lsf/lsf10.1_x86_lnx310/"
-
LSF_ADD_SERVERS="node01 node02 node03 node04"
-
LSF_ENTITLEMENT_FILE="/opt/lsf/lsf_std_entitlement.dat"
不存在以上两台主机,在实际环境中可以根据node的数量自行增减,后面启动的时候系统会报错,并自行忽略,这里加上没有大碍。
./lsfinstall -f install.config
echo "LSF_RSH=ssh" >> /opt/lsf/conf/lsf.conf
ln -s /opt/lsf/conf/profile.lsf /etc/profile.d/lsf.sh
echo "export LBS_BASE_SYSTEM=LBS_LSF" >> /opt/lsf/conf/profile.lsf
/opt/lsf/10.1/install/hostsetup --top="/opt/lsf/" --boot="y"
systemctl enable lsfd
systemctl restart lsfd
source /etc/profile.d/lsf.sh
lsadmin limstartup
lsadmin resstartup
badmin hstartup
bhosts
就能看到主机列表了。
阅读(186) | 评论(0) | 转发(0) |