//slurm install
//CentOS 7 system
//192.168.159.141 node01
//192.168.159.142 node02
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl disable NetworkManager
systemctl stop NetworkManager
sed -i '7 s/enforcing/disabled/' /etc/sysconfig/selinux
getenforce #is disabled--->>continue or reboot
setenforce 0
yum -y update
yum -y remove mariadb-server mariadb-devel
cat /etc/passwd | grep slurm
userdel -r slurm
userdel -r munge
yum -y install mariadb-server mariadb-devel
export MUNGEUSER=1216
groupadd -m -c "MUNGE Uid 'N' Gid Emporium" -d /var/lib/munge -u $MUNGEUSER -g munge -s /sbin/nologin munge
export SLURMUSER=1217
groupadd -g $SLURMUSER slurm
useradd -m -c "SLURM workload manger" -d /var/lib/slurm -u $SLURMUSER -g slurm -s /bin/bash slurm
yum -y install epel-release
yum -y install munge munge-libs munge-devel
yum -y install rng-tools #node01
rngd -r /dev/urandom #node01
/usr/sbin/create-munge-key -r #node01
dd if=/dev/urandom bs=1 count=1024 > /etc/munge/munge.key #node01
chown munge: /etc/munge/munge.key #node01
chmod 400 /etc/munge/munge.key #node01
scp /etc/munge/munge.key root@node02:/etc/munge #node01
chown -R munge: /etc/munge/ /var/log/munge/
chmod 0700 /etc/munge/ /var/log/munge/
munge -n
munge -n | unmunge
munge -n | ssh node01/02 unmunge
remunge
yum -y install openssl openssl-devel pam-devel numactl numactl-devel hwloc hwloc-devel lua lua-devel readline-devel rrdtool-devel ncurses-devel man2html libmad libibumad
mkdir -p /nfs/slurm-rpms
cd /nfs
### wget https://www.schedmd.com/downloads.php/slurm-17.02.6.tar.bz2
yum -y install rpm-build
rpmbuild -ta slurm-16.08.9.tar.bz2
cd /root/rpmbuild/RPMS/x86_64
cp -p *.rpm /nfs/slurm-rpms
yum -y install --nogpgcheck loclainstall *.rpm
cd /etc/slurm ; cp -p slurm.conf.example slurm.conf #node01
vim slurm.conf #node01
ControlMachine=node01
ControlAddr=node01
StatSaveLocation=/var/spool/slurmctld
SlurmctldLogFile=/var/log/slurmctld.log
SlurmdLogFile=/var/log/slurmd.log
NodeName=node01 CPUs=1 State=UNKOWN
NodeName=node02 CPUs=1 State=UNKOWN
ParttionName=debug Nodes=node01,node02 Default=YES MaxTime=INFINITE State=UP
:wq
mkdir /var/spool/slurmctld
mkdir slurm: /var/spool/slurmctld
chmod 755 /var/spool/slutmctld
touch /var/log/slurmctld.log
chown slurm: /var/log/slurmctld.log
touch /var/log/slurm_jobacct.log /var/log/slurm_jobcomp.log
chown slurm: /var/log/slurm_jobacct.log /var/log/slurm_jobcomp.log
mkdir /var/spool/slurmd
chown slurm: /var/spool/slurmd
chmod 755 /var/spool/slurmd
touch /var/log/slurmd.log
chown slurm: /var/log/slurmd.log
slurmd -C
systemctl stop friewalld.service
systemctl diable firewalld.service
yum -y install ntp
chkconfig ntpd on
ntpdate pool.ntp.org
systemctl start ntpd
systemctl enable slurmd.service
systemctl start slurmd.service
systemctl status slurmd.service
systemctl enable munge.service
systemctl start munge.service
systemctl status munge.service
systemctl enable slurmctld.service #node01
systemctl start slurmctld.service #node01
systemctl status slurmctld.service #node01
scontrol show nodes
sinfo --Node
 
 -----------------------Have questions to contact me :QQ 1394466404----------------------------

CentOS 7 install slurm cluster的更多相关文章

  1. CentOS 7 install LNMP

    CentOS 7 install LNMP 关于 Nginx (发音 “engine x”)这是一款免费.开源.高效的 HTTP 服务器,Nginx是以稳定著称,丰富的功能,结构简单,低资源消耗.本教 ...

  2. centos source install

    CentOS Kernel Source Install Mar 12th, 2012 | Comments CentOS kernel source install, first off if yo ...

  3. fluidity install on Cluster

    fluidity install on Cluster 1.编译器安装 gcc4.6 openmpi python HOME_PATH= /hpcdata1/xiaozhong/ 1.1.gmp &a ...

  4. Centos 7.5 通过yum安装GNOME Desktop时出现:file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.el7.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.65.el7.centos.2.noarch

    系统版本为: [root@s10 ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) 由于管理kvm虚拟机的需求,需要安装 ...

  5. centos install zookeeper cluster

    1.apache官方下载, 2.新版本需要jdk环境,然后配置好jdk环境 3.解压zookeeper,进入解压后的conf,新建zoo.cfg (删掉自带的cfg)内容如下 tickTime=200 ...

  6. Centos 7 MariaDB Galera cluster 部署

    一.安装环境准备 1.系统: CentOS Linux release 7.4.1708 (Core) 2.hosts 10.6.32.51 openstack1 10.6.32.52 opensta ...

  7. Centos yum install

    http://wiki.centos.org/TipsAndTricks/BrokenVserver centos mirror:  http://mirror.centos.org/centos/6 ...

  8. CentOS 7 install Tensorflow-gpu

    # install TensorFlow GPU on CentOS 7.0# https://www.server-world.info/en/note?os=CentOS_7&p=tens ...

  9. centos yum install oracle java

    How to install Java on CentOS 7 | Linuxizehttps://linuxize.com/post/install-java-on-centos-7/ CentOS ...

随机推荐

  1. mysql数据库表设计小数类型

    float:浮点型,含字节数为4,32bit,数值范围为-3.4E38~3.4E38(7个有效位)double:双精度实型,含字节数为8,64bit数值范围-1.7E308~1.7E308(15个有效 ...

  2. HDU 2254 奥运(矩阵+二分等比求和)

    奥运 [题目链接]奥运 [题目类型]矩阵+二分等比求和 &题解: 首先离散化城市,之后就是矩阵快速幂了,但让求的是A^(t1)+A^(t1+1)+...+A^(t2),我先想的是打表,但时间真 ...

  3. unity之让obj旋转自转等操作

    1.让cube沿着矩形四个点运动 using System.Collections; using System.Collections.Generic; using UnityEngine; publ ...

  4. VMware vSphere

    在进行操作vSphere产品之前,就曾经对它进行过一个简单了解:[运维]VMware vSphere简单了解,现在再回头看,发现了解的真的是太简单了.经过前一段时间学习之后,对它又有了新的感悟,再来谈 ...

  5. HTML布局规范

    <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...

  6. Ajax三级联动

    全国省市县查询 html代码 <!doctype html> <html> <head> <meta charset="utf-8"> ...

  7. 03-树2 List Leaves(25)

    题目 分析 输入先给出结点的数量,把结点从0开始标号,每一行给出结点的左右两个子节点,-表示子节点不存在. 很容易分析出在子节点中没有出现的就是根节点,两个子节点都为空的是叶子节点 先建树,然后从ro ...

  8. Java Redis JNI

    基本参考菜鸟教程,java下载直接安装,注意文件名和类名需要一致的问题: redis下载以后按菜鸟教程linux下安装,方式编译运行ok: Java使用redis按菜鸟教程下载.jar,保存在本地某个 ...

  9. Tomcat JAR包冲突报错

    查看Tomcat下有两个PDF加密的jar包如图: 删除这个bcprov-jdk14-138.jar包,然后重启Tomcat就好了. 这个jar包和Tomcat中的一个包冲突,反复调用导致的. 参考: ...

  10. pycharm的版本对应问题

    如果版本不对应往往会出现很多问题,需要各种方法才能解决,现记录一下我工作中遇到的版本问题,以下版本一般情况下是可以直接安装使用的. 目前一直在使用的版本: