| United States-English |
|
|
|
![]() |
HP XC System Software : Administration Guide > Chapter 8 Distributing Software Throughout the SystemAdding Software or Modifying Files on the Golden Client |
|
The first step in managing software changes to your HP XC system is to update the golden client node. This can involve adding new software packages, adding a new user, or modifying a configuration file that is replicated across the HP XC system, such as a NIS or NTP configuration file.
If you need to add a software package or service configuration file to the golden client that should not be distributed to all nodes, be sure to prevent these files from becoming part of the golden image by using an exclusion file. See “Exclusion Files” for further details. If the package or service configuration file is specific to the head node and it is not to be distributed to any other node, then making the change on the golden client and excluding the necessary files from being included in the golden image is sufficient. However, if the software package or configuration file is destined for other (specialized) nodes in the HP XC system, then a procedure is required to distribute these changes to those nodes. You can use either of the following methods to accomplish this: Use the following procedure to install additional RPMs from the HP XC System Software Installation DVD:
“Updating the Golden Image” discusses how to update the golden image with the new software for subsequent distribution to client nodes. File overrides overwrite files delivered in the golden image. File overrides are copied to the client nodes after the golden image is transferred, thus overriding files in the golden image itself. File overrides are organized in a subdirectory hierarchy rooted at /var/lib/systemimager/overrides/name. Each subdirectory of the ./overrides/name directory specifies a complete file override hierarchy that is copied to the root directory of the client's file system. The necessity to use file overrides is specified in the master autoinstallation scripts, located at /var/lib/systemimager/scripts. Each master autoinstallation script contains an OVERRIDES variable specifying one or more overrides subdirectories to associate with this master autoinstallation script. To specify a select number of nodes to receive a particular override, make a copy of the appropriate master autoinstallation script, and modify the OVERRIDES variable to match your overrides subdirectory name, /name. Finally, in the /var/lib/systemimager/scripts directory, create symbolic links to this master autoinstallation script for the nodes that will receive this override. The symbolic link names must follow the format name.sh, where name is the host name of each node to receive the override. For further information on using overrides in the SystemImager environment, see the FAQ chapter in the SystemImager Manual, located at the following Web site: The following procedure describes how to set up an override to allow a compiler package to be delivered only to the nodes with the login role:
Now the system can be imaged. In this example, when nodes n[7-9] are installed with the full imaging installation, the compiler overrides are automatically delivered after the golden image has been delivered. Use the --override option of the si_updateclient command to ensure that both overrides are properly delivered:
The HP XC system configuration process uses per-node configuration scripts to achieve personalized role configurations as necessary on each node. The per-node configuration process occurs initially during HP XC system configuration, at the time each client node is auto-installed. The HP XC configuration and management database (cmdb) contains the per-node role and service configuration, and is queried on each node's initial boot to identify which roles and services to configure. See “Adding a Service” for more information. A per-node configuration script is associated with each configurable service, and is executed on the client node if the cmdb identifies this client as hosting this service. The per-node configuration process actually occurs in two phases:
If you used the si_updateclient utility, after successfully synchronizing each client node with the golden image, you must run the per-node configuration scripts on each node with the following commands. This returns the per-node personality following the golden image update:
The number of simultaneous remote commands are increased by using the cexec command's -f option. You can monitor the execution of the per-node configuration scripts from a central location by monitoring the /hptc_cluster/adm/logs/imaging.log file. Run the following command from the imaging server node (currently, the head node):
The per-node configuration scripts log their execution locally to the /var/log/nconfig.log file. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||