HP Dynamic Root Disk (DRD) manual Cloning the active system image

Page 14

Use the following command to clone the system image, substituting your target disk identifier for the one shown in the command:

# /opt/drd/bin/drd clone -v -x overwrite=true -t /dev/dsk/c1t2d0

On HP-UX 11i v3 systems, you can also use the agile device file to the target disk, substituting your target disk identifier for the one shown in the following command:

# /opt/drd/bin/drd clone -v -x overwrite=true -t /dev/disk/disk10

NOTE: For descriptions of the drd clone command, see The drd clone command.

The -xoption lets you choose whether to overwrite data on the target disk. The -x overwrite=true option tells the command to overwrite any data on the disk. The -x overwrite=false option tells the command not to write the cloned image if the disk appears to contain LVM, VxVM, or boot records. The default value is false.

Cloning creates an inactive system image on the target disk at /dev/dsk/c1t2d0. Figure 2-2shows the active system image being cloned to the target disk.

NOTE: The drd clone command does not write over a disk that is part of the root volume.

Figure 2-2 Cloning the Active System Image

The output you see as this command runs is similar to Example 2-7.

When you see the message, Copying File Systems to New System Image, the active system image is being cloned. This operation can take quite a while, and you see no more messages until the file systems have been copied.

14 Cloning the active system image

Image 14
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 Choosing a target disk Using other utilities to determine disk availabilityUsing DRD for limited disk availability checks 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 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 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 synchronizationTrimming 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 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 examples Rehosting and unrehosting systemsRehosting overview 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 HPRelated information Typographic conventions New and changed information in this editionLocating this guide Find1 Page Drd activate command DRD commandsDRD command syntax 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