HP Dynamic Root Disk (DRD) manual Using drd clone to analyze disk size, Creating the clone

Page 13

If the disk is currently in use by the LVM Manager, it is rejected by the drd clone operation.

If the disk is currently in use by the VxVM Manager, it will be accepted only if the following two conditions are met:

The disk is an inactive image managed by DRD

The extended option -x overwrite=true is specified on the drd clone command

If the disk is not currently in use by LVM or VxVM, but contains LVM, VxVM, or boot records, it is only accepted as a drd clone target if -x overwrite=true is specified on the drd clone command.

NOTE: A selected target disk will not be overwritten if it is part of the root volume. However, the drd clone command will overwrite swap or raw data disks because it does not detect this type of usage. For example, any raw disks in use by databases would be overwritten if given as the target clone disk.

2.6 Using drd clone to analyze disk size

A simple way to determine if a disk is large enough for a DRD clone is to run drd clone in preview mode:

Example 2-5 drd clone preview example on HP-UX 11i v2 or 11i v3

# /opt/drd/bin/drd clone –p –v –t /dev/dsk/cxtxdx

Example 2-6 drd clone preview example on HP-UX 11i v3 (using agile DSF)

# /opt/drd/bin/drd clone –p –v –t /dev/disk/diskn

The preview operation includes disk space analysis that shows whether a target disk is large enough. If you prefer to investigate disk sizes before previewing the clone, you can use the diskinfo command.

2.7 Creating the clone

After determining that sufficient disk space exists and that the target disk contains no data you want to keep, you are ready to run the drd clone command. Figure 2-1illustrates the content of the active system disk and the clone target disk before cloning happens.

Figure 2-1 Preparing to Clone the Active System Image

2.6 Using drd clone to analyze disk size

13

Image 13
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 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 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