//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
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 LNMP
CentOS 7 install LNMP 关于 Nginx (发音 “engine x”)这是一款免费.开源.高效的 HTTP 服务器,Nginx是以稳定著称,丰富的功能,结构简单,低资源消耗.本教 ...
- centos source install
CentOS Kernel Source Install Mar 12th, 2012 | Comments CentOS kernel source install, first off if yo ...
- fluidity install on Cluster
fluidity install on Cluster 1.编译器安装 gcc4.6 openmpi python HOME_PATH= /hpcdata1/xiaozhong/ 1.1.gmp &a ...
- 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虚拟机的需求,需要安装 ...
- centos install zookeeper cluster
1.apache官方下载, 2.新版本需要jdk环境,然后配置好jdk环境 3.解压zookeeper,进入解压后的conf,新建zoo.cfg (删掉自带的cfg)内容如下 tickTime=200 ...
- 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 ...
- Centos yum install
http://wiki.centos.org/TipsAndTricks/BrokenVserver centos mirror: http://mirror.centos.org/centos/6 ...
- CentOS 7 install Tensorflow-gpu
# install TensorFlow GPU on CentOS 7.0# https://www.server-world.info/en/note?os=CentOS_7&p=tens ...
- centos yum install oracle java
How to install Java on CentOS 7 | Linuxizehttps://linuxize.com/post/install-java-on-centos-7/ CentOS ...
随机推荐
- jquery简介未完成
jQuery jQuery是一个快速.简洁的javascript框架,是继prototype之后又一个优秀的代码库(或者javascript框架).jQuery设计的宗旨是writeLess,Do M ...
- linux编写脚本检测本机链接指定IP段是否畅通
linux编写脚本检测本机链接指定IP段是否畅通,通过ping命令检测指定IP,检测命令执行结果,若为0表示畅通,若为1表示不通,以此判断网络是否畅通,但是指定机器禁用ping命令除外.代码如下: # ...
- C#7.0新特性(VS2017可用)
分享一下其实2016年12月就已经公布了的C#7.0的新特性吧,虽然很早就出来了,但咱这IDE不支持啊.. 不过在昨天的VS2017中已经完美可以支持使用了. E文好的,移步官方介绍地址:https: ...
- Python记录6:函数2,函数参数
# 一. 函数参数分为两大类 # 形参:在函数定义阶段括号定义的参数(变量名),称之为形式参数 #因为函数定义阶段只是用一个符号表示表示一个参数,并没有具体的值,所以称之为形式参数,形 ...
- c++ string split
#include <iterator> #include <regex> std::vector<std::string> s_split(const std::s ...
- python 可视化
一.环境安装 windows:pip install numpy scipy matplotlib #pip install http://effbot.org/downloads/Imaging-1 ...
- mysql 对表字段进行长度截取操作
现在的问题是数据库某一个表中其中的车牌号字段有些数据多了一位,需要把它找出来然后把多的最后一位去掉..... 通过自带的length(字段名)函数把长度过长的数据过滤出来,其中,一个汉字算3个字符,一 ...
- 2.scrapy安装
A.Anaconda如果已安装,那么可以通过 conda 命令安装 Scrapy,安装命令如下: conda install Scrapy ============================ ...
- MCMC算法深入理解
MCMC(Markov Chain Monte Carlo),即马尔科夫链蒙特卡洛方法,是以马尔科夫平稳状态作为理论基础,蒙特卡洛方法作为手段的概率序列生成技术. MCMC理论基础 如果转移矩阵为P的 ...
- java 数组和集合
1.概念说明 区别:数组固定长度的,集合,数组的长度是可以变化的. List,继承Collection,可重复.有序的对象 Set,继承Collection,不可重复.无序的对象 Map,键值对,提供 ...