HP Dynamic Root Disk (DRD) manual Updating and managing patches with drd runcmd

Page 18

kctune

update-ux

view

kcmodule

kconfig

mk_kernel

swm job

See the Software Distributor Administrator's Guide, located at http://www.hp.com/go/sd-docs, as well as swinstall(1M), swremove(1M), swlist(1M), swmodify(1M), swverify(1M), swjob(1M), kctune(1M), update-ux(1M),view(1M), kcmodule(1M), kconfig(1M), mk_kernel(1M), and swm(1M) for additional information about these commands.

The DRD-safe commands may be specified by their base names, such as swinstall or swremove, or their full paths, such as /usr/sbin/swinstall or /usr/sbin/swremove. However, paths that are symlinks to the DRD-safe commands are not supported.

If the inactive system image has not been mounted, the drd runcmd operation mounts it, executes the DRD-safe command, and then unmounts it. If the inactive system image is already mounted, the drd runcmd operation leaves it mounted.

When swinstall, swremove, and update-uxare used to manage software packages, SD control scripts included in the packages—such as pre-install, post-remove, and update-prep scripts—are executed. For management of such packages to be DRD-safe, the control scripts must not take any action that will affect the booted system. (The configure scripts are not executed.) A package satisfying this restriction is also known as DRD-safe. The swlist, swmodify, and swverify commands—without -For -x fix=true options—may be invoked by drd runcmd for arbitrary packages. The swlist and swmodify commands do not call control scripts, and verify scripts do not change the system.

When executing the drd runcmd kctune command, the kctune command outputs the prompt:

==> Update the automatic 'backup' configuration first?

If the user types y, the following error is displayed:

WARNING: The backup behavior 'yes' is not supported in alternate root environments. The behavior 'once' will be used instead.

This message can be ignored.

3.2 Updating and managing patches with drd runcmd

3.2.1 DRD-Safe patches and the drd_unsafe_patch_list file

An HP program was initiated in November 2004 to make all patches DRD-safe. Although most patches delivered after November 2004 are DRD-safe, a few are not. Patches that are not DRD-safe are listed in the file /etc/opt/drd/drd_unsafe_patch_list, which is delivered as a volatile file with the DRD product. The copy of this file on the inactive system image is used to filter patches that are selected for installation with drd runcmd.

IMPORTANT: When invoked by the drd runcmd operation, the swinstall, swremove, and update-uxcommands reject any attempt to install or remove a patch included in the drd_unsafe_patch_list file on the inactive system image.

In the rare event that a new patch is determined not to be DRD-safe, a new version of the drd_unsafe_patch_list file is made available on HP’s IT Resource Center website.

To determine if you need to update the drd_unsafe_patch_list files, see the Update the drd_unsafe_patch_list File procedure in the DRD Downloads and Patches page at https://

18 Updating and maintaining software on the clone

Image 18
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Rehosting and unrehosting systems Troubleshooting DRD Support and other resourcesDRD commands Glossary IndexList of Figures List of Examples Conceptual overview Commands overviewAbout Dynamic Root Disk TerminologyDownloading and installing Dynamic Root Disk Locating disks Cloning the active system imageActive system image Locating disks on HP-UX 11i v2 systemsLocating disks on HP-UX 11i v3 Integrity systems # /usr/sbin/ioscan -fnkC disk# /usr/sbin/ioscan -m dsf Using other utilities to determine disk availability Using DRD for limited disk availability checksChoosing a target disk Using drd clone to analyze disk size Creating the cloneCloning the active system image Example 2-7 The drd clone command output Success ErrorExample 2-8 The drd clone command output for SAN disk Adding or removing a diskDRD-Safe commands and Packages Swinstall Swremove Swlist Swmodify Swverify SwjobUpdating and maintaining software on the clone Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm job Updating and managing patches with drd runcmdDRD-Safe patches and the drdunsafepatchlist file Patches with special installation instructions Updating and managing products with drd runcmdSpecial considerations for firmware patches Viewing logs Accessing the inactive system image Mounting the inactive system imagePerforming administrative tasks on the inactive system image Enter the patches into a file such as Compare vxconfigbackup with the clone copy Unmounting the inactive system imageUnmounting the inactive system image Page Overview Quick start-basic synchronizationDrd sync command Determining the list of files in the booted volume groupTrimming the list of files to be synchronized Files that have changed on the clone Copying the files to the inactive clone image Drd sync system shutdown script Page Activating the inactive system image Preparing the inactive system image to activate later# /opt/drd/bin/drd activate # /usr/bin/more /stand/bootconf l /dev/dsk/c2t0d0s2 Undoing activation of the inactive system imageActivating the inactive system image Undoing activation of the inactive system image Page Rehosting and unrehosting systems Rehosting overviewRehosting examples Rehosting a mirrored image Example 7-1 Provisioning a new systemUnrehosting overview # rm /var/opt/drd/registry/registry.xmlPage Troubleshooting DRD Page Support and other resources Contacting HPNew and changed information in this edition Locating this guideRelated information Typographic conventions Find1 Page DRD commands DRD command syntaxDrd activate command Logfile=/var/opt/drd/drd.log HAalternatebootdisk=blockdevicespecialfileIgnoreunmountedfs=truefalse Logverbosity=4Verbosity=3 Default Drd clone commandReboot=truefalse Copyautofile optionTtargetdevicefile Copyautofile=truefalseblockdevicespecialfileEnforcedsa=truefalse Drd deactivate command Drd mount command Example A-1 File system mount points Drd rehost command Devicespecialfile -v-xextended option=value -x-?-Xoptionfile Extended options Drd runcmd command Extended options Drd status command Alternatebootdisk=blockdevicespecialfile Drd sync command Usr/sbin/swlist -l file, orDrd umount command Excludelist=Alternatebootdisk=blockdevicespecialfile Drd unrehost command Fsysteminformationfile Mirrordisk=blockdevicespecialfile Page Booted system GlossarySystem image Index Idisk partition, 10, 11 inactive system file system