This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cluster:213 [2022/03/16 13:25] hmeij07 |
cluster:213 [2022/07/25 15:10] hmeij07 [Amber22] |
||
---|---|---|---|
Line 42: | Line 42: | ||
scp 10.10.102.253:/ | scp 10.10.102.253:/ | ||
/ | / | ||
+ | |||
+ | # Put the warewulf cluster key in authorized_keys | ||
+ | # Put eth0 fingerprints in cottontail/ | ||
+ | # add to relevant known_hosts_servername file | ||
# configure private subnets and ping file server | # configure private subnets and ping file server | ||
Line 53: | Line 57: | ||
# make internet connection for yum | # make internet connection for yum | ||
+ | |||
+ | # iptables | ||
+ | dnf install -y iptables-services | ||
+ | vi / | ||
+ | # add 'local allow' ports --dport 0:65535 | ||
+ | systemctl start iptables # and enable | ||
+ | iptables -L | ||
+ | systemctl stop firewalld | ||
+ | systemctl disable firewalld | ||
+ | |||
+ | |||
# eth3 for ctt2 or eth1 for n100-101 | # eth3 for ctt2 or eth1 for n100-101 | ||
dnf install bind-utils | dnf install bind-utils | ||
dig google.com | dig google.com | ||
+ | iptables -L # check! | ||
- | #rocky8 | + | # Rocky8 |
# https:// | # https:// | ||
dnf config-manager --set-enabled powertools | dnf config-manager --set-enabled powertools | ||
Line 67: | Line 83: | ||
dnf install gnuplot | dnf install gnuplot | ||
dnf install alpine # pico | dnf install alpine # pico | ||
- | + | yum groupinstall " | |
- | # iptables | + | |
- | dnf install -y iptables-services | + | |
- | vi / | + | |
- | # add 'local allow' ports --dport 0:65535 | + | |
- | systemctl start iptables # and enable | + | |
- | iptables -L | + | |
- | systemctl stop firewalld | + | |
- | systemctl disable firewalld | + | |
# other configs | # other configs | ||
Line 107: | Line 115: | ||
echo " | echo " | ||
+ | # on head node / | ||
+ | allow 192.168.0.0/ | ||
# compute nodes / | # compute nodes / | ||
#pool 2.pool.ntp.org iburst | #pool 2.pool.ntp.org iburst | ||
Server 192.168.102.250 | Server 192.168.102.250 | ||
Server 192.168.102.251 | Server 192.168.102.251 | ||
+ | # check | ||
+ | chronyc sources | ||
+ | |||
+ | |||
+ | # on head node install from epel repo | ||
+ | yum install slurm-openlava | ||
+ | # error on conflicting libs, too bad! | ||
Line 125: | Line 142: | ||
yum install cmake -y | yum install cmake -y | ||
yum install libjpeg libjpeg-devel libjpeg-turbo-devel -y | yum install libjpeg libjpeg-devel libjpeg-turbo-devel -y | ||
- | # amber | + | |
+ | #easybuild | ||
+ | yum install libibverbs libibverbs-devel | ||
+ | |||
+ | # amber20 cmake readline error fix needs | ||
+ | yum install ncurses-c++-libs-6.1-9.20180224.el8.x86_64.rpm \ | ||
+ | ncurses-devel-6.1-9.20180224.el8.x86_64.rpm \ | ||
+ | readline-devel-7.0-10.el8.x86_64.rpm | ||
+ | |||
+ | # amber20 | ||
yum -y install tcsh make \ | yum -y install tcsh make \ | ||
gcc gcc-gfortran gcc-c++ \ | gcc gcc-gfortran gcc-c++ \ | ||
Line 132: | Line 158: | ||
perl perl-ExtUtils-MakeMaker util-linux wget \ | perl perl-ExtUtils-MakeMaker util-linux wget \ | ||
bzip2 bzip2-devel zlib-devel tar | bzip2 bzip2-devel zlib-devel tar | ||
- | yum update -y | ||
- | yum clean all | ||
# CENTOS7 pick the kernel vendor used for now | # CENTOS7 pick the kernel vendor used for now | ||
Line 144: | Line 168: | ||
# compute nodes old level 3 | # compute nodes old level 3 | ||
systemctl set-default multi-user.target | systemctl set-default multi-user.target | ||
- | # remove internet, bring private back up | ||
- | reboot | ||
# compute nodes only | # compute nodes only | ||
Line 163: | Line 185: | ||
# openjdk version " | # openjdk version " | ||
rpm -qa | grep ^java # check | rpm -qa | grep ^java # check | ||
+ | yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel \ | ||
+ | java-1.8.0-openjdk-headless javapackages-filesystem | ||
# python v 3.9 | # python v 3.9 | ||
yum install python39 python39-devel | yum install python39 python39-devel | ||
+ | ln -s / | ||
# fftw 3.3.5-11.el8 | # fftw 3.3.5-11.el8 | ||
yum install fftw fftw-devel | yum install fftw fftw-devel | ||
Line 175: | Line 200: | ||
# dmtcp | # dmtcp | ||
yum install dmtcp dmtcp-devel | yum install dmtcp dmtcp-devel | ||
+ | |||
+ | # check status of service munge | ||
yum clean all | yum clean all | ||
+ | # eth3 onboot=no, private networks only | ||
+ | systemctl disable iptables | ||
reboot | reboot | ||
+ | # now make it an ohpc compute node | ||
+ | yum repolist | ||
+ | yum install ohpc-base-compute | ||
+ | | ||
+ | scp cottontail2:/ | ||
+ | yum install ohpc-slurm-client | ||
+ | systemctl enable munge | ||
+ | systemctl start munge | ||
+ | scp cottontail2:/ | ||
+ | echo SLURMD_OPTIONS=" | ||
+ | yum install --allowerasing lmod-ohpc | ||
+ | grep '/ | ||
+ | mkdir / | ||
+ | chown slurm:munge / | ||
+ | mkdir / | ||
+ | chown slurm:munge / | ||
+ | scp cottontail2:/ | ||
+ | scp cottontail2:/ | ||
+ | scp cottontail2:/ | ||
+ | | ||
+ | # / | ||
+ | / | ||
- | </code> | + | #test |
+ | | ||
+ | |||
+ | # start via rc.local | ||
+ | chmod +x / | ||
+ | #timing issue with munge | ||
+ | sleep 15 | ||
+ | / | ||
+ | |||
+ | # slurmd ??? | ||
+ | libhwloc.so.15 => / | ||
- | ==== Configure Recipe ==== | + | # add to zenoss edit / |
+ | rocommunity public | ||
+ | dontLogTCPWrappersConnects yes | ||
- | Steps. "Ala n37" ... so the RTX nodes are similar to the K20 nodes and we can put the local software in place. See [[cluster: | + | </ |
- | New recipe for n100-n101 sporting Rocky 8.5 on '' | + | ==== Pics ==== |
- | Put node on internet...first though | + | |
- | * ** Vanilla Backups** using Warewulf and plain rsync (--exclude=[proc/, | ||
- | < | + | My data center robot thingie and node n100's gpus\\ |
- | # login as root check some things out... | + | \\ |
- | free -g | + | |
- | nvidia-smi # if gpus | + | |
- | cat / | + | |
- | # check and set local time zone | + | {{: |
- | mv / | + | \\ |
- | ln -s / | + | {{: |
+ | \\ | ||
- | # change passwords for root and vendor account | + | ==== Amber20 ==== |
- | passwd | + | |
- | passwd microway | + | |
- | # set hostname | + | |
- | hostnamectl set-hostname cottontail2 | + | |
- | # root: sync cottontail' | + | OpenHPC |
- | ssh-keygen -t rsa | + | |
- | scp 10.10.102.253:/ | + | |
- | / | + | |
- | # configure private subnets and ping file server | + | < |
- | cd / | + | |
- | vi ifcfg-eth0 # 192.168.102.x | + | |
- | vi ifcfg-eth1 # 10.10.102.x | + | |
- | vi ifcfg-eth3 # 129.133.52.x | + | |
- | systemctl restart network | + | |
- | ping -c 3 192.168.102.42 | + | |
- | ping -c 3 10.10.102.42 | + | |
- | # make internet connection for yum | + | # First **all the necessary packages ** (yum install...) |
- | # eth3 for ctt2 or eth1 for n100-101 | + | |
- | dnf install | + | |
- | dig google.com | + | |
- | #rocky8 | + | |
- | # https://docs.fedoraproject.org/en-US/ | + | |
- | dnf config-manager --set-enabled powertools | + | 993 cd amber20_src/ |
- | dnf install epel-release | + | |
- | dnf install netcdf netcdf-devel | + | |
- | dnf install yum-utils # yumdownloader | + | |
- | dnf install ddd | + | |
- | dnf install grace | + | |
- | dnf install gnuplot | + | |
- | dnf install alpine # pico | + | |
- | # iptables | + | # |
- | dnf install -y iptables-services | + | |
- | vi / | + | |
- | # add 'local allow' ports --dport 0:65535 | + | |
- | systemctl start iptables # and enable | + | |
- | iptables -L | + | |
- | systemctl stop firewalld | + | |
- | systemctl disable firewalld | + | |
- | # other configs | + | # serial, do on head node, with miniconda true, compile, install |
- | vi / | + | cmake $AMBER_PREFIX/amber20_src \ |
- | mv /home /usr/local/ | + | -DCMAKE_INSTALL_PREFIX=/share/apps/CENTOS8/ohpc/software/ |
- | vi /etc/passwd (exx, dockeruser $HOME) | + | -DCOMPILER=GNU |
+ | -DMPI=FALSE -DCUDA=FALSE -DINSTALL_TESTS=TRUE \ | ||
+ | -DDOWNLOAD_MINICONDA=TRUE -DMINICONDA_USE_PY3=TRUE \ | ||
+ | 2>&1 | tee cmake.log | ||
- | ## edit passwd, shadow, group, hosts files ## | + | # Env |
- | ## make -orig backups and stage in / | + | |
- | ## cottontail2 = greentail52 sections | + | |
- | mkdir /sanscratch / | + | [hmeij@n100 ~]$ module load cuda/11.6 |
- | chmod ugo+rwx /sanscratch / | + | |
- | chmod o+t /sanscratch / | + | |
- | # link localscratch in 1.4T /home to / | + | |
- | mkdir /home | + | |
- | cd /home # local dir | + | |
- | ln -s / | + | |
- | ln -s / | + | |
- | ln -s / | + | |
- | ln -s /zfshomes /share | + | |
- | # fstab file mounts | + | [hmeij@n100 ~]$ echo $CUDA_HOME |
- | # cottontail2 = greentail52 | + | / |
- | # n100-n101 = n79 | + | |
- | # postfix | + | [hmeij@n100 ~]$ which nvcc mpicc gcc |
- | dnf install postfix | + | / |
- | dnf install mailx | + | / |
- | systemctl enable postfix | + | /opt/ |
- | echo " | + | |
- | # compute nodes / | + | # [FIXED} cmake error on conda install, set to FALSE |
- | #pool 2.pool.ntp.org iburst | + | # OS native python, install on n[100-101] |
- | Server 192.168.102.250 | + | -- Python version 3.9 -- OK |
- | Server 192.168.102.251 | + | -- Found PythonLibs: / |
+ | -- Checking for Python package numpy -- not found | ||
+ | -- Checking for Python package scipy -- not found | ||
+ | -- Checking for Python package matplotlib -- not found | ||
+ | -- Checking for Python package setuptools -- found | ||
+ | [END FIXED] | ||
+ | # mpi & cuda FALSE builds serial | ||
+ | ./run_cmake | ||
+ | make install | ||
+ | # lots and lots of warnings | ||
- | # add packages and update | + | # then |
- | yum install epel-release -y | + | source / |
- | yum install flex bison -y | + | |
- | yum install tcl tcl-devel dmtcp -y | + | |
- | yum install net-snmp net-snmp-libs net-tools net-snmp-utils -y | + | |
- | yum install freeglut-devel libXi-devel libXmu-devel -y | + | |
- | yum install blas blas-devel lapack lapack-devel boost boost-devel -y | + | |
- | yum install lm_sensors lm_sensors-libs -y | + | |
- | yum install zlib-devel bzip2-devel -y | + | |
- | yum install openmpi openmpi-devel perl-ExtUtils-MakeMaker -y | + | |
- | yum install cmake -y | + | |
- | yum install libjpeg libjpeg-devel libjpeg-turbo-devel -y | + | |
- | # amber | + | |
- | yum -y install tcsh make \ | + | |
- | gcc gcc-gfortran gcc-c++ \ | + | |
- | which flex bison patch bc \ | + | |
- | | + | |
- | perl perl-ExtUtils-MakeMaker util-linux wget \ | + | |
- | bzip2 bzip2-devel zlib-devel tar | + | |
- | yum update -y | + | |
- | yum clean all | + | |
- | # CENTOS7 pick the kernel vendor used for now | + | # on n100 now, parallel, |
- | grep ^menuentry / | + | -MPI=TRUE |
- | grub2-set-default 1 | + | ./run_cmake |
- | ls -d / | + | make install |
- | # | + | |
- | # | + | |
- | # compute nodes old level 3 | + | # on n100 just change |
- | systemctl set-default multi-user.target | + | -CUDA=TRUE |
- | # remove internet, bring private back up | + | ./run_cmake |
- | reboot | + | make install |
- | + | ||
- | # compute nodes only | + | |
- | # leave old cuda versions behind (9.2 | 10.2) | + | |
- | cd usr/ | + | |
- | # scp fron n79:/ | + | |
- | amber16/ | + | |
- | + | ||
- | # compute nodes only / | + | |
- | # copy scripts: gpu-free, gpu-info, gpu-process | + | |
- | # copy 10.10.102.89:/ | + | |
- | # done | + | |
- | + | ||
- | # FINISH native vanilla installs | + | |
- | # R version 4.1.2 (2021-11-01) -- "Bird Hippie" | + | |
- | yum install | + | |
- | # openjdk version " | + | |
- | rpm -qa | grep ^java # check | + | |
- | # python v 3.9 | + | |
- | yum install python39 python39-devel | + | |
- | # fftw 3.3.5-11.el8 | + | |
- | yum install fftw fftw-devel | + | |
- | #gnu scientific libraries | + | |
- | yum install gsl gsl-devel | + | |
- | # ruby 2.5.9-109.module+el8.5.0 | + | |
- | yum install ruby ruby-devel | + | |
- | # obabel chem file formats | + | |
- | yum install openbabel openbabel-devel | + | |
- | # dmtcp | + | |
- | yum install dmtcp dmtcp-devel | + | |
- | + | ||
- | yum clean all | + | |
- | reboot | + | |
+ | #tests | ||
+ | cd $AMBERHOME | ||
+ | make test.serial | ||
+ | export DO_PARALLEL=" | ||
+ | make test.parallel | ||
+ | export CUDA_VISIBLE_DEVICES=0 | ||
+ | make test.cuda.serial | ||
+ | make test.cuda.parallel | ||
</ | </ | ||
- | ==== Configure Recipe | + | ==== Amber22 |
- | Steps. "Ala n37" ... so the RTX nodes are similar to the K20 nodes and we can put the local software in place. See [[cluster: | + | OpenHPC |
- | New recipe for n100-n101 sporting Rocky 8.5 on '' | + | < |
- | Put node on internet...first though | + | |
- | | + | # First **all the necessary packages |
- | < | + | |
+ | 989 tar xvfj ../ | ||
+ | 993 cd amber20_src/ | ||
+ | 994 cd build/ | ||
+ | 996 vi run_cmake | ||
- | # login as root check some things out... | + | # |
- | free -g | + | |
- | nvidia-smi # if gpus | + | |
- | cat / | + | |
- | # check and set local time zone | + | # serial, do on head node, with miniconda true, compile, install |
- | mv /etc/ | + | cmake $AMBER_PREFIX/amber22_src \ |
- | ln -s /usr/share/zoneinfo/America/New_York | + | -DCMAKE_INSTALL_PREFIX=/share/apps/CENTOS8/ohpc/software/amber/22 \ |
+ | -DCOMPILER=GNU | ||
+ | -DMPI=FALSE -DCUDA=FALSE -DINSTALL_TESTS=TRUE \ | ||
+ | -DDOWNLOAD_MINICONDA=TRUE \ | ||
+ | 2>&1 | tee cmake.log | ||
+ | ./ | ||
+ | make install | ||
- | # change passwords for root and vendor account | ||
- | passwd | ||
- | passwd microway | ||
- | # set hostname | ||
- | hostnamectl set-hostname cottontail2 | ||
- | # root: sync cottontail' | + | # Note !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
- | ssh-keygen -t rsa | + | The OpenMPI |
- | scp 10.10.102.253:/ | + | (i.e., through yum install) |
- | / | + | are known to be somehow incompatible with Amber22. |
+ | # OUCH !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
- | # configure private subnets and ping file server | ||
- | cd / | ||
- | vi ifcfg-eth0 # 192.168.102.x | ||
- | vi ifcfg-eth1 # 10.10.102.x | ||
- | vi ifcfg-eth3 # 129.133.52.x | ||
- | systemctl restart network | ||
- | ping -c 3 192.168.102.42 | ||
- | ping -c 3 10.10.102.42 | ||
- | # make internet connection for yum | + | # GO TO node n100 |
- | # eth3 for ctt2 or eth1 for n100-101 | + | |
- | dnf install bind-utils | + | |
- | dig google.com | + | |
- | #rocky8 | + | # copy head node's amber22_src/ |
- | # https://docs.fedoraproject.org/en-US/epel/# | + | |
- | dnf config-manager --set-enabled powertools | + | |
- | dnf install epel-release | + | |
- | dnf install netcdf netcdf-devel | + | |
- | dnf install yum-utils # yumdownloader | + | |
- | dnf install ddd | + | |
- | dnf install grace | + | |
- | dnf install gnuplot | + | |
- | dnf install alpine # pico | + | |
- | # iptables | + | # install |
- | dnf install | + | cd amber_src/Ambertools/src |
- | vi /etc/sysconfig/iptables | + | tar xvfj ../../ |
- | # add 'local allow' ports | + | |
- | systemctl start iptables # and enable | + | |
- | iptables -L | + | |
- | systemctl stop firewalld | + | |
- | systemctl disable firewalld | + | |
- | # other configs | ||
- | vi / | ||
- | mv /home /usr/local/ | ||
- | vi /etc/passwd (exx, dockeruser $HOME) | ||
- | ## edit passwd, shadow, group, hosts files ## | ||
- | ## make -orig backups and stage in / | ||
- | ## cottontail2 = greentail52 sections | ||
- | mkdir /sanscratch / | ||
- | chmod ugo+rwx /sanscratch / | ||
- | chmod o+t /sanscratch / | ||
- | # link localscratch in 1.4T /home to / | ||
- | mkdir /home | ||
- | cd /home # local dir | ||
- | ln -s / | ||
- | ln -s / | ||
- | ln -s / | ||
- | ln -s /zfshomes /share | ||
- | # fstab file mounts | ||
- | # cottontail2 = greentail52 | ||
- | # n100-n101 = n79 | ||
- | # postfix | ||
- | dnf install postfix | ||
- | dnf install mailx | ||
- | systemctl enable postfix | ||
- | echo " | ||
- | # compute nodes / | + | # Env |
- | #pool 2.pool.ntp.org iburst | + | |
- | Server 192.168.102.250 | + | |
- | Server 192.168.102.251 | + | |
+ | [hmeij@n100 ~]$ module load cuda/11.6 | ||
- | # add packages and update | + | [hmeij@n100 ~]$ echo $CUDA_HOME |
- | yum install epel-release -y | + | / |
- | yum install flex bison -y | + | |
- | yum install tcl tcl-devel dmtcp -y | + | |
- | yum install net-snmp net-snmp-libs net-tools net-snmp-utils -y | + | |
- | yum install freeglut-devel libXi-devel libXmu-devel -y | + | |
- | yum install blas blas-devel lapack lapack-devel boost boost-devel -y | + | |
- | yum install lm_sensors lm_sensors-libs -y | + | |
- | yum install zlib-devel bzip2-devel -y | + | |
- | yum install openmpi openmpi-devel perl-ExtUtils-MakeMaker -y | + | |
- | yum install cmake -y | + | |
- | yum install libjpeg libjpeg-devel libjpeg-turbo-devel -y | + | |
- | # amber | + | |
- | yum -y install tcsh make \ | + | |
- | gcc gcc-gfortran gcc-c++ \ | + | |
- | which flex bison patch bc \ | + | |
- | | + | |
- | perl perl-ExtUtils-MakeMaker util-linux wget \ | + | |
- | bzip2 bzip2-devel zlib-devel tar | + | |
- | yum update -y | + | |
- | yum clean all | + | |
- | # CENTOS7 pick the kernel vendor used for now | + | [hmeij@n100 ~]$ which nvcc mpicc gcc |
- | grep ^menuentry | + | /usr/local/cuda/bin/nvcc |
- | grub2-set-default 1 | + | /opt/ohpc/pub/ |
- | ls -d /sys/firmware/efi && echo " | + | /opt/ohpc/pub/compiler/gcc/9.4.0/bin/gcc |
- | # | + | |
- | # | + | |
- | # compute nodes old level 3 | + | # [FIXED} cmake error on conda install, set to FALSE |
- | systemctl set-default multi-user.target | + | # OS native python, install on n[100-101] |
- | # remove internet, bring private back up | + | -- Python version |
- | reboot | + | -- Found PythonLibs: / |
+ | -- Checking for Python package numpy -- not found | ||
+ | -- Checking for Python package scipy -- not found | ||
+ | -- Checking for Python package matplotlib -- not found | ||
+ | -- Checking for Python package setuptools -- found | ||
+ | [END FIXED] | ||
- | # compute nodes only | + | # mpi & cuda FALSE builds serial |
- | # leave old cuda versions behind (9.2 | 10.2) | + | ./run_cmake |
- | cd usr/local/ | + | make install |
- | # scp fron n79:/ | + | # lots and lots of warnings |
- | amber16/ | + | |
- | # compute nodes only /usr/local/bin/ | + | # then |
- | # copy scripts: gpu-free, gpu-info, gpu-process | + | source |
- | # copy 10.10.102.89: | + | |
- | # done | + | |
- | # FINISH native vanilla installs | + | # on n100 now, parallel, set miniconda flags to FALSE |
- | # R version 4.1.2 (2021-11-01) -- "Bird Hippie" | + | -MPI=TRUE |
- | yum install R R-devel | + | ./run_cmake |
- | # openjdk version "1.8.0_322" | + | make install |
- | rpm -qa | grep ^java # check | + | |
- | # python v 3.9 | + | |
- | yum install | + | |
- | # fftw 3.3.5-11.el8 | + | |
- | yum install fftw fftw-devel | + | |
- | #gnu scientific libraries | + | |
- | yum install gsl gsl-devel | + | |
- | # ruby 2.5.9-109.module+el8.5.0 | + | |
- | yum install ruby ruby-devel | + | |
- | # obabel chem file formats | + | |
- | yum install openbabel openbabel-devel | + | |
- | # dmtcp | + | |
- | yum install dmtcp dmtcp-devel | + | |
- | yum clean all | + | # on n100 just change cuda flag |
- | reboot | + | -CUDA=TRUE |
+ | ./ | ||
+ | make install | ||
+ | #tests | ||
+ | cd $AMBERHOME | ||
+ | make test.serial | ||
+ | export DO_PARALLEL=" | ||
+ | make test.parallel | ||
+ | export CUDA_VISIBLE_DEVICES=0 | ||
+ | make test.cuda.serial | ||
+ | make test.cuda.parallel | ||
</ | </ | ||
- | ==== Pics ==== | ||
- | |||
- | \\ | ||
**[[cluster: | **[[cluster: | ||