HP XC System Software Administration Guide Version 2.1

4. Run the updateclient utility in conjunction wit
hthecexec command t o distribute
the g old en image to all client nodes:
# cexec -x ‘nodename‘ -a "updateclient \
--server nh --image base_image --no-bootloader"
5. Run th e per-nod e configuratio n service on the head node, as fo llows, to update it:
# service nconfig nconfigure
# service nconfig nstart
6. Run the following com m a nds to run the per-node configuration service on all the client
nodes:
# cexec -x ‘nodename‘ -a "service nconfig nconfigure"
# cexec -x ‘nodename‘ -a "service nconfig nstart"
7.4.3 Using the cexec Command
You can use the cexec commandtocopydesignatedfilestoclientnodes.
Its ad vant a ge is that it is performe d immediately and potentially with little effect on the HP XC
system configurat ion files, presuming the fil e list does no t co ntai n any co nf iguration fi les tha t
require the restarting of services.
Its disadvantages are that the files or directories must be copied individually and that the golden
image must be updated to sustain the ch ange when the nod e is reim aged .
7.5 Maintaining Service Configuration Globally
When the golden image is up dated f rom the gold en clien t, 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 t o turn on
only th ose services that sh ould be run o n all nodes. This provides a common denom inator for a
golden image that must serve all client nodes.
The global and node-specific configuration framework (gconfig and nconfig)configures
additional no de-sp ecific services, based on how the HP XC system was defined during the
configuration of the HP XC system, a s the node is initially installed.
If you are adding software that contains services that should run on all nodes, see S ection 7.4 for
the instructions on updating the g old en 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 th e service is not automatically turned on as a result of the software installation
process, use the chkconfig command to start the service on t he head node before updating
the golden image. For exam ple:
# chkconfig --level 2345 service on
Next, 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 nod es. This entry ensures that the correct service orientation
(on or off) in the golden image is alw ays maintained.
To install software that contains services appropriate for on ly one or a hand ful of nodes, update
the chkconfig.map file to add the na me of the service, so that th e golden image will
maintain the service in the default off orientation, because few nodes run this service. Use
the following procedure:
1. Log in as the superuser on the h ead node.
2. Ensure that there are no current LSF-HPC jobs running and that the SLURM queues are
idle with the squeue command.
7-8 Distributing Software Throughout the System