HP XC System Software Administration Guide Version 3.2

16.17 Configuring an External Virtual Host Name for LSF-HPC with SLURM
on HP XC Systems
An external virtual host name for LSF-HPC with SLURM on an HP XC system needs to be
accessed from the external network. This access could be required if the HP XC system is added
to an existing LSF cluster, or if the HP XC system is 'Multi-Clustered' with another LSF cluster.
See the LSF documentation for more details on LSF Multi-Clusters.
Perform the following steps to configure an external virtual host name:
1. If LSF-HPC with SLURM failover is enabled, ensure that each node with the resource
management role has an external network connection. Run the following command to
confirm this:
# shownode roles --role resource_management external
resource_management: n[127-128]
external: n[125-128]
resource_management: n[127-128]
external: n[125-128]
2. Obtain a virtual IP and corresponding host name, and ensure that they are not already in
use:
# ping -i 2 -c 2 xclsf
PING xclsf (10.10.123.1): 56 data bytes
--- xclsf ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
# ping -i 2 -c 2 10.10.123.1
PING 10.10.123.1 (10.10.123.1): 56 data bytes
--- 10.10.123.1 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
3. Ensure that no jobs are running. For more information, see “Draining Nodes” (page 183)
4. Shut down LSF-HPC with SLURM:
# controllsf stop
5. Change the virtual host name to the new one and confirm:
# controllsf set virtual hostname xclsf
# controllsf show
LSF is currently shut down, and assigned to node .
Failover is disabled.
Head node is preferred.
The primary LSF host node is n128.
SLURM affinity is enabled.
The virtual hostname is "xclsf".
6. Edit the $LSF_ENVDIR/lsf.cluster.cluster_name file and change the old virtual
host name to the new virtual host name in the HOSTS section.
7. Edit the lsf.conf file to replace the old virtual host name with the new virtual host name
in the assignment of the LSF_SERVER_HOSTS environment variable.
LSF_SERVER_HOSTS="new_LSF_virtual_host_name"
8. Edit $LSF_ENVDIR/hosts file to remove the old virtual host name entry.
9. Restart LSF-HPC with SLURM:
# controllsf start
212 Managing LSF