...
The instructions below assume all nodes (nmpost{001..090}) but it is likely you will want to change that to just the subset of noides that you are transitioning to Slurm.
- Configure DHCP on zia to boot all nmpost nodes to RHEL-7.8.1.5
- Switch remaining nmpost nodes from Torque/Moab to Slurm on nmpost-serv-1
- Change to the snapshot directory
- cd /opt/services/diskless_boot/RHEL-7.8.1.5/nmpost/snapshot
- Enable slurmd to start on boot
- for x in nmpost{001..090}* ; do echo 'SLURMD_OPTIONS="--conf-server nmpost-serv-1"' > ${x}/etc/sysconfig/slurmd ; done
- for x in nmpost{001..090}* ; do echo '/etc/sysconfig/slurmd' >> ${x}/files ; done
- Disable Torque from starting on boot
- for x in nmpost{001..090}* ; do echo 'PBS_ARGS="-h"' > ${x}/etc/sysconfig/pbs_mom ; done
- Reboot each node you modified
- Change to the snapshot directory
- Switch nodescheduler, nodeextendjob, nodesfree from Torque to Slurm on zia
- Change to the stow directory
- cd /home/local/Linux/rhel7/x86_64/stow
- Alter the email that is sent. The default version of nodescheduler is now slurm instead of torque.
- #edit cluster/share/cluster/*.sh and change 'nodescheduler-slurm' to 'nodescheduler' in the slurm email functions
- #edit cluster/share/cluster/*.sh and change 'nodescheduler' to 'nodescheduler-torque' in the torque email functions
- Unstow the cluster package
- stow -D cluster
- Change the symlinks from pointing to the Torque versions to the Slurm versions
- (cd cluster/bin ; rm -f nodescheduler ; ln -s nodescheduler-slurm nodescheduler)
- (cd cluster/bin ; rm -f nodescheduler-test ; ln -s nodescheduler-test-slurm nodescheduler-test)
- (cd cluster/bin ; rm -f nodeextendjob ; ln -s nodeextendjob-slurm nodeextendjob)
- (cd cluster/bin ; rm -f nodesfree ; ln -s nodesfree-slurm nodesfree)
- Stow the cluster package
- stow cluster
- Change to the stow directory
- Uncomment nmpost lines in nmpot-serv-1:/etc/slurm/slurm.conf
- On nmpost-serv-1 restart with systemctl restart slurmctld
- On nmpost-master restart with systemctl restart slurmd
- Remove the bold note about Slurm in the docs on info.nrao.edu
- Remove pam_pbssimpleauth.so from files in /etc/pam.d in the OS image
- Remove /usr/lib64/security/pam_pbssimpleauth.* from the OS image
...