HP Dynamic Root Disk (DRD) manual Updating and maintaining software on the clone

Page 17

3 Updating and maintaining software on the clone

After cloning the active system image, you can use drd runcmd to run a limited set of commands and to apply patches to the inactive system image. This chapter describes this process.

For details of the drd runcmd command, including available options and extended options, see The drd runcmd command.

NOTE: You must be logged in as root to run any DRD command.

3.1 DRD-Safe commands and Packages

The drd runcmd operation runs a command on the inactive system image that does not make any changes to the booted system, the running kernel, or the process space. This enables a system administrator to make changes to the inactive system image without incurring any disruption to the currently booted system.

NOTE: The drd runcmd command suppresses all reboots. The option -x autoreboot is ignored when a swinstall, swremove, or update-uxcommand is executed by drd runcmd.

Not all commands can safely be executed by the drd runcmd operation. For example, commands that start or stop daemons or change dynamic kernel tuneables are disruptive to current processes and must be prevented by the drd runcmd operation.

Restrictions on commands executed by drd runcmd are:

When calling swinstall and update-ux, drd runcmd supports installation from directory depots on the booted system and on remote servers. Note that installing from serial depots or from depots on the inactive system image is not supported.

drd runcmd can also be used to swlist, swverify, swremove, and swmodify software that is installed on the inactive image. It cannot be used to list or modify any depot's contents. Using these commands outside of drd runcmd allows for depot listing and management.

Commands that are not disruptive to the booted system and perform appropriate actions on the inactive system are known as DRD-safe. For this release of DRD, a short list of commands is recognized by the drd runcmd operation to be DRD-safe. An attempt to use DRD to run commands that are not DRD-safe will terminate with an ERROR return code without executing the command.

A number of Software Distributor commands have been made safe at a sufficient maintenance level of SW-DIST. The DRD product has a package co-requisite on a minimum release of SW-DIST. (For details of the DRD product dependencies, see the following webpage: https:// h20392.www2.hp.com/portal/swdepot/ displayInstallInfo.do?productNumber=DynRootDisk#download.)

Similarly, drd runcmd update-uxincludes a run-time check for the revision of SWManager (SWM), which provides DRD-safe tools used during the update. This functionality supports updates on the clone from an older version of HP-UX 11i v3 to HP-UX 11i v3 update 4 or later. (For details of the DRD product dependencies, see the following webpage: https://h20392.www2.hp.com/ portal/swdepot/displayInstallInfo.do?productNumber=DynRootDisk#download.)

The DRD-safe commands are the following:

swinstall

swremove

swlist

swmodify

swverify

swjob

3.1 DRD-Safe commands and Packages 17

Image 17
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents DRD commands Troubleshooting DRD Support and other resourcesRehosting and unrehosting systems Glossary IndexList of Figures List of Examples About Dynamic Root Disk Commands overviewConceptual overview TerminologyDownloading and installing Dynamic Root Disk Active system image Cloning the active system imageLocating disks Locating disks on HP-UX 11i v2 systems# /usr/sbin/ioscan -fnkC disk Locating disks on HP-UX 11i v3 Integrity systems# /usr/sbin/ioscan -m dsf Choosing a target disk Using other utilities to determine disk availabilityUsing DRD for limited disk availability checks Creating the clone Using drd clone to analyze disk sizeCloning the active system image Success Error Example 2-7 The drd clone command outputAdding or removing a disk Example 2-8 The drd clone command output for SAN diskUpdating and maintaining software on the clone DRD-Safe commands and PackagesSwinstall Swremove Swlist Swmodify Swverify Swjob DRD-Safe patches and the drdunsafepatchlist file Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm jobUpdating and managing patches with drd runcmd Special considerations for firmware patches Patches with special installation instructionsUpdating and managing products with drd runcmd Viewing logs Mounting the inactive system image Accessing the inactive system imagePerforming administrative tasks on the inactive system image Enter the patches into a file such as Unmounting the inactive system image Compare vxconfigbackup with the clone copyUnmounting the inactive system image Page Quick start-basic synchronization OverviewTrimming the list of files to be synchronized Drd sync commandDetermining the list of files in the booted volume group Files that have changed on the clone Copying the files to the inactive clone image Drd sync system shutdown script Page Preparing the inactive system image to activate later Activating the inactive system image# /opt/drd/bin/drd activate Undoing activation of the inactive system image # /usr/bin/more /stand/bootconf l /dev/dsk/c2t0d0s2Activating the inactive system image Undoing activation of the inactive system image Page Rehosting examples Rehosting and unrehosting systemsRehosting overview Example 7-1 Provisioning a new system Rehosting a mirrored image# rm /var/opt/drd/registry/registry.xml Unrehosting overviewPage Troubleshooting DRD Page Contacting HP Support and other resourcesRelated information Typographic conventions New and changed information in this editionLocating this guide Find1 Page Drd activate command DRD commandsDRD command syntax Ignoreunmountedfs=truefalse HAalternatebootdisk=blockdevicespecialfileLogfile=/var/opt/drd/drd.log Logverbosity=4Reboot=truefalse Drd clone commandVerbosity=3 Default Copyautofile optionCopyautofile=truefalseblockdevicespecialfile TtargetdevicefileEnforcedsa=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 Usr/sbin/swlist -l file, or Drd sync commandExcludelist= Drd umount commandAlternatebootdisk=blockdevicespecialfile Drd unrehost command Fsysteminformationfile Mirrordisk=blockdevicespecialfile Page Glossary Booted systemSystem image Index Idisk partition, 10, 11 inactive system file system