HP Dynamic Root Disk (DRD) manual About Dynamic Root Disk, Conceptual overview, Terminology

Page 7

1 About Dynamic Root Disk

1.1 Conceptual overview

This document describes the Dynamic Root Disk (DRD) toolset, which you can use to perform software maintenance and recovery on an HP-UX operating system with minimum system downtime. DRD enables you to easily and safely clone a system image from a root disk to another disk on the same system and modify the image without shutting down the system. DRD significantly reduces system downtime and allows you to do software maintenance during normal business hours. This document is primarily for HP-UX system administrators who apply software maintenance on HP-UX systems, such as installing new software product revisions, as well as updating from an older HP-UX operating environment (OE) to a newer one. Some understanding of HP-UX system administration is assumed.

Hewlett-Packard developed DRD to minimize the usual maintenance window during which you shut down the system to apply software maintenance. With DRD, the system keeps running while you clone the system image and apply software maintenance to the cloned image. DRD tools can manage the two system images simultaneously. DRD also provides a fail-safe mechanism for returning the system to its original state, if necessary.

Using DRD commands, you can perform software maintenance or make other modifications on the cloned system image without affecting the active system image. When ready, you can boot the cloned image on either the original system or a different system. The only downtime required for this process is while the system reboots.

Other uses of DRD include using the clone for quick software recovery or using the clone to boot another system, which is referred to as rehosting. For details of rehosting, see Rehosting and unrehosting systems.

1.2 Terminology

In this guide, “root group” refers to the LVM volume group or VxVM disk group that contains the root (“/”) file system. The term “logical volume” refers to an LVM logical volume or a VxVM volume.

IMPORTANT: DRD supports the following LVM root volume group versions:

DRD A.3.5.* and earlier:

HP-UX 11i v2: LVM 1.0

HP-UX 11i v3: LVM 1.0

DRD A.3.6.* and later:

HP-UX 11i v2: LVM 1.0

HP-UX 11i v3: LVM 1.0 and LVM 2.2

1.3Commands overview

The drd command provides a command line interface to DRD tools. The drd command has nine major modes of operation:

activate After using the DRD commands to create and optionally modify a clone, using drd activate invokes setboot(1M) and sets the primary boot path to the clone. After the clone is booted, using drd activate invokes setboot(1M) to set the primary boot path to the original system image. The drd activate command always sets the primary boot path to the inactive (not booted) system image.

clone Clones a booted system to an inactive system image. The drd clone mode copies the LVM volume group or VxVM disk group, containing the volume on which the root file system (“/”) is mounted, to the target disk specified in the command.

1.1 Conceptual overview

7

Image 7
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Glossary Index Troubleshooting DRD Support and other resourcesDRD commands Rehosting and unrehosting systemsList of Figures List of Examples Terminology Commands overviewAbout Dynamic Root Disk Conceptual overviewDownloading and installing Dynamic Root Disk Locating disks on HP-UX 11i v2 systems Cloning the active system imageActive system image Locating disks# /usr/sbin/ioscan -fnkC disk Locating disks on HP-UX 11i v3 Integrity systems# /usr/sbin/ioscan -m dsf Using DRD for limited disk availability checks Using other utilities to determine disk availabilityChoosing a target disk 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 diskSwinstall Swremove Swlist Swmodify Swverify Swjob DRD-Safe commands and PackagesUpdating and maintaining software on the clone Updating and managing patches with drd runcmd Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm jobDRD-Safe patches and the drdunsafepatchlist file Updating and managing products with drd runcmd Patches with special installation instructionsSpecial considerations for firmware patches 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 OverviewDetermining the list of files in the booted volume group Drd sync commandTrimming 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 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 overview Rehosting and unrehosting systemsRehosting examples 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 resourcesLocating this guide New and changed information in this editionRelated information Typographic conventions Find1 Page DRD command syntax DRD commandsDrd activate command Logverbosity=4 HAalternatebootdisk=blockdevicespecialfileIgnoreunmountedfs=truefalse Logfile=/var/opt/drd/drd.logCopyautofile option Drd clone commandReboot=truefalse Verbosity=3 DefaultCopyautofile=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