Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Dynamic Root Disk Administrator's Guide: HP-UX 11i v2, HP-UX 11i v3 > Chapter 3 Cloning the Active System Image

Creating the Clone

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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. Preparing to Clone the Active System Image illustrates the content of the active system disk and the clone target disk before cloning happens.

Figure 3-1 Preparing to Clone the Active System Image

Preparing to Clone the Active System
Image

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
NOTE: For descriptions of these options, see Option Descriptions

The -x option 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. Cloning the Active System Image shows the active system image being cloned to the target disk.

Figure 3-2 Cloning the Active System Image

Cloning the active system image

The output you see as this command runs is similar to Example 3-3 The drd clone command output.

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.

Example 3-3 The drd clone command output

=======  12/01/06 00:07:28 MST  BEGIN Clone System Image (user=root)
         (jobid=drdtest2)

       * Reading Current System Information
       * Selecting System Image To Clone
       * Selecting Target Disk
       * Selecting Volume Manager For New System Image
       * Analyzing For System Image Cloning
       * Creating New File Systems
       * Copying File Systems To New System Image
       * Making New System Image Bootable
       * Unmounting New System Image Clone
       * System image: "sysimage_001" on disk "/dev/dsk/c2t1d0"

=======  12/01/06 00:08:19 MST  END Clone System Image succeeded. (user=root)
         (jobid=drdtest2)

Disk Configurations After Cloning shows the two disks after cloning. Both disks contain the system image. The image on the target disk is the inactive system image.

Figure 3-3 Disk Configurations After Cloning

Disk configurations after cloning

After running drd clone, you have identical system images on the system disk and the target disk. The image on the system disk is the active system image. The image on the target disk is the inactive system image.

The drd clone command returns the following values:

0 Success

1 Error

2 Warning

For more details, you can examine messages written to the log file at /var/opt/drd/drd.log.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.