When
the golden image is updated from the golden client, the list of system
services that are started automatically on each client is set based
on a template file, /opt/hptc/systemimager/etc/chkconfig.map. This template attempts to turn on only those services that should
be run on all nodes. This provides a common denominator for a golden
image that must serve all client nodes.
The global and node-specific configuration framework
(gconfig and nconfig) configures
additional node-specific services, as the node is initially installed,
based on how the HP XC system was defined during configuration.
If you are adding software that contains services
that should run on all nodes, see “Propagating the Golden Image to All Nodes” for the instructions on updating
the golden image and propagating it to client nodes if this software
provides a system service that should be started automatically on
all client nodes on system reboot. If the service is not automatically
turned on as a result of the software installation process, use the chkconfig command to start the service on the head node
before updating the golden image. For example:
# chkconfig --level 2345 service on |
Add an entry in the /opt/hptc/systemimager/etc/chkconfig.map file whenever you add a new service, regardless of whether it applies
globally to the HP XC system or is specific to one node or
several nodes. This entry ensures that the correct service orientation
(ON or OFF) in the golden image
is always maintained.
To install software that contains services appropriate
for only one or a handful of nodes, update the chkconfig.map file to add the name of the service, so that the golden image will
maintain the service in the default OFF orientation,
because few nodes run this service. Use the following procedure:
Log in as the superuser on the
head node.
Use the squeue command to ensure that no current LSF-HPC with SLURM jobs are running and
that the SLURM queues are idle.
Install the software on the
golden client.
Note the names of the services
that are created as a result.
Create global or node-specific
configuration files (gconfig or nconfig) or both, if the services will run only on some specialized nodes.
Place the gconfig files in /opt/hptc/etc/gconfig.d, the nconfig files in /opt/hptc/etc/nconfig.d, and the configuration files in /opt/hptc/etc/cconfig.d, using an appropriate priority ordering based on the prefix of the
file name.
Update the /opt/hptc/systemimager/etc/chkconfig.map file by adding the new service names, with the service orientation OFF for all run levels. The nconfig,
the configuration script, or both, enable the service only on those
nodes on which they are intended to run.
Execute all gconfig scripts and update the golden image:
# /opt/hptc/config/sbin/cluster_config |
Determine the name of the node
that provides the imageserver service with the shownode command:
# shownode servers imageserver |
The node name returned is used as the argument
to the --server option in the next step.
Distribute the golden image
update to all nodes by using the information in “Propagating the Golden Image to All Nodes”.