| United States-English |
|
|
|
![]() |
HP XC System Software : Administration Guide > Chapter 8 Distributing Software Throughout the SystemUpdating the Golden Image |
|
Before you can deploy your software and configuration updates throughout the HP XC system, you must update the golden image to synchronize with these changes. The golden image that is created during the initial HP XC system configuration process is named base_image, and it exists in the file system hierarchy under the directory /var/lib/systemimager/images. You can update the golden image by using either of two utilities: This section describes both methods. The rsync command is the underlying mechanism used by the cluster_config and updateimage utilities to update the golden image. The rsync command provides an efficient method to update an existing fileset because it transfers only the differences between those two sets of files. As a result, the update of the golden image is significantly quicker than its initial creation. Whichever method you use to update the golden image, you can protect the golden image from contamination with golden client (head node) specific personality by using an exclusion file. This exclusion file is passed to the rsync command as a list of exclude patterns. For a detailed description of exclusion files, and how to use exclusion files to manage software updates, see “Exclusion Files”. The following command makes a copy of the default golden image, base_image, in the /var/lib/systemimager/images directory. The saved image name in this example is base_image.orig. You must run this command on the image server node, which is the head node.
If you are preserving multiple images, save earlier versions as compressed archives using your favorite compression utility to preserve disk space on the image server. If you have added your own services to be deployed throughout the HP XC system by using the per-node service configuration method described in “Using Per-Node Service Configuration”, in conjunction with the information in “Adding a Service”, you must run the cluster_config utility on the head node again to ensure the Configuration and management database (cmdb) is updated with the latest per-node service configuration and the necessary configuration files updated on the head node. You must be the superuser (root) to run this utility. The cluster_config utility performs the following tasks: When the cluster_config command completes, the golden image is synchronized with the golden client. You are ready to deploy the golden image to all the nodes in your HP XC system. The updateimage command updates the golden image from the golden client; it does not run any service configuration scripts. As superuser, you must run this command on the golden client node. The updateimage command provides a --dry-run option. This option enables you to inspect the files that will be added to (or deleted from) the golden image, without making any changes. In the following example, the nodename command is executed and resolves to the node name of the golden client:
If you are satisfied with the list of files that will be updated in the golden image, issue the command to perform the update:
When the updateimage command completes, the golden image is synchronized with the golden client and the golden image tar file is updated. You are ready to deploy the golden image to all the nodes in your HP XC system. The --no-netboot option of the updateimage command overrides this default action and maintains the boot order for each client node. Run the following command to update the golden image but keep the client nodes from network booting the next time the nodes are rebooted:
Exclusion files protect the golden image from being contaminated with node-specific content from the golden client. While the golden client represents the configuration from which all other nodes are replicated, the golden client is also an actively participating node, and has its own configuration. A simple example of the types of files to be excluded is a log file, one of many such files in the /var directory. Log files contain node-specific log information. Other examples are configuration files that reference the node's IP address and host name. The image replication and distribution environment uses three separate exclusion files:
Use the updateimage command or thecluster_config command to ensure that the golden image contains all the latest software for all the nodes. If you copy software directly to client nodes without updating the golden image first, that software will be deleted from the client nodes the next time the clients are re-imaged. Choose the --no-netboot option to update the image if you do not want the client nodes to network boot the next time they are rebooted or power cycled. Otherwise, the reboot or power cycle causes a full re-installation of the node software. The --dry-run option enables you to verify which files would be added and deleted without performing the operation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||