Ability to simultaneously patch independent Solaris LDoms
In versions earlier than BMC Server Automation version 8.2, administrators needed to patch primary and guest Oracle Solaris Logical Domains (LDoms) separately. If they added primary and guest LDoms to the same Patch Analysis Job, the Deploy Jobs conflicted with the patch installation on the guest LDoms that occurred during primary LDom patching.
Starting with BMC Server Automation version 8.2, administrators can add primary and guest Solaris LDoms to the same Patch Analysis Job and remediate both LDoms simultaneously. If the Analysis or Remediation Job contains both primary and guest LDoms, patching proceeds by first creating separate Batch Jobs for the primary and guest LDoms, and then by creating a Master Batch Job that patches the guest LDoms before the primary LDoms. Creating a Master Batch Job avoids Deploy Job conflicts with installation of patches on the guest LDoms.
This topic provides the following information:
- Analyzing and deploying Solaris LDom patches
- LDom patching workflow
- Guidelines for Solaris LDom patching
Analyzing and deploying Solaris LDom patches
Starting with BMC Server Automation version 8.2, administrators can:
- Create Batch Jobs for primary and guest LDoms
- Create a Master Batch Job to patch the guest LDoms before the primary LDoms
- Stop and restart the guest LDoms before and after the patch deployment on the primary LDoms
Setting up Patch Global Configuration to stop and restart LDoms
The Solaris tab on the Patch Global Configuration panel contains a new item, Ldom option, which allows the following values:
- None (default value): This option ignores the LDoms and treats the targets as physical installations of Solaris. Use this option if you want to ignore the LDoms even if LDom packages are installed on your computer.
- Stop Ldoms using ldm stop: This option stops the LDoms using the ldm stop command (however, the guest LDoms are not gracefully shut down).
- Shutdown Ldoms using ldm-names as hostname: This option executes the shutdown command on the guests by using the nexec tool, and by using ldm-name as the hostname for nexec.
Stopping and restarting the guest LDoms before and after patch deployment
The Oracle Solaris LDom BLPackage contains a Stop LDoms ExternalCmd item (as shown in the following figure). This ExternalCmd item ensures that the guest LDoms are stopped before the primary LDoms are patched, and restarts the guest LDoms after the patching of primary LDoms is completed.
Creating a Master Batch Job to patch the guest LDoms before the primary LDoms
The Master Batch Job contains the primary and guest LDom Deploy Jobs, which are executed in the following sequence (as shown in the following figure):
- The guest LDom Deploy Job is executed, which deploys the patches on the guest LDoms.
- The primary LDom Deploy Job is executed, which deploys the patches on the primary LDoms.
The following figure shows the Master Deploy Job, which contains the primary and guest LDom Deploy Jobs.
LDom patching workflow
The Master Deploy Job executes LDom patching in the following sequence:
- The guest LDom Deploy Job is executed.
- An NSH Script Job, which shuts down the guest LDoms from the Application Server by using the shutdown command, is executed.
- The primary LDom Deploy Job is executed.
The NSH Script Job contains an associated NSH script in the Depot in the same location as the BLPackage. When the Shutdown Ldoms using ldm-names as hostname option is selected, the NSH Script Job and the NSH script ensure graceful shutdown of the guest LDoms.
Known Issues in Solaris LDom patching
The following known issues remain in Solaris LDom patching:
- Selecting the Stop Ldoms using ldom stop option in the Patch Global Configuration panel stops the guest LDoms (before patching the primary LDoms) without gracefully shutting down the guest LDoms.
- The Shutdown Ldoms using ldm-names as hostname option in the Patch Global Configuration panel assumes that the ldm-name is the same as the hostname used by the nexec parameter to shut down the guest LDoms gracefully.
Guidelines for Solaris LDom patching
BMC specifies the following guidelines for Solaris LDom patching:
- Add both a primary and its guest LDoms to the same Patch Analysis Job. BMC does not recommend patching a primary LDom and its guest LDoms using different Patch Analysis Jobs because patching the primary and guest LDoms separately might incorrectly sequence the primary and guest LDom Deploy Jobs, leading to the problems noted in Analyzing and deploying Solaris LDom patches.
- Administrators will see Batch Jobs that correspond to the primary and guest LDom Deploy Jobs on the BMC Server Automation Console, but they must not execute those Batch Jobs manually.