HP Dynamic Root Disk (DRD) manual Adding or removing a disk

Page 16

Example 2-8 The drd clone command output for SAN disk

======= 06/24/08 11:55:58 MDT BEGIN Clone System Image (user=root) (jobid=drdtest14)

*Reading Current System Information

*Selecting System Image To Clone

*Selecting Target Disk

*The disk "/dev/disk/disk14" contains data which will be overwritten.

*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

======= 06/24/08 12:06:00 MDT END Clone System Image succeeded. (user=root) (jobid=drdtest14)

Next, the drd status command is executed to verify the clone disk and the original disk. Example

2-9displays the output of the following drd status command:

# /opt/drd/bin/drd status

Example 2-9 The drd status command output for SAN disk

=======

06/24/08 12:09:46 MDT

BEGIN Displaying DRD Clone Image Information (user=root) (jobid=drdtest14)

 

* Clone Disk:

/dev/disk/disk14

 

* Clone EFI Partition:

AUTO file present, Boot loader present, SYSINFO.TXT not present

 

* Clone Creation Date:

06/24/08 11:56:18 MDT

 

* Clone Mirror Disk:

None

 

* Mirror EFI Partition:

None

 

* Original Disk:

/dev/disk/disk15

 

* Original EFI Partition:

AUTO file present, Boot loader present, SYSINFO.TXT not present

 

* Booted Disk:

Original Disk (/dev/disk/disk15)

 

* Activated Disk:

Original Disk (/dev/disk/disk15)

=======

06/24/08 12:10:01 MDT

END Displaying DRD Clone Image Information succeeded. (user=root)

(jobid=drdtest14)

NOTE: The elapsed time of the clone creation will vary, depending on the size of the root disk, independent of whether it's going to a SAN or an internal disk.

2.8 Adding or removing a disk

After creating a clone, you can remove it or the original system image from the system. For example, if may need to boot the image on different hardware (See Rehosting and unrehosting systems) or need disk storage for use on another system.

After you remove an image from the system, DRD operations other than clone will fail. In addition, if a VxVM image is removed from the system without updating the VxVM metadata, the drd clone command will also fail. The inactive image disk group is still present which prevents it from being recreated, but the disk residing in it is missing. This prevents DRD from recognizing it as a disk group in use by DRD.

To remove the disk group and enable future drd clonecommands, determine the VxVM disk group of the inactivate image as follows:

If the booted group does NOT begin with the “drd_” prefix the booted group name with “drd_” to determine the inactive image disk group.

OR

If the booted group DOES begin with “drd_” remove the “drd_” prefix to determine the inactive image disk group. Issue the command “vxdg deport <inactive image disk group>”.

16 Cloning the active system image

Image 16
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Troubleshooting DRD Support and other resources DRD commandsRehosting and unrehosting systems Glossary IndexList of Figures List of Examples Commands overview About Dynamic Root DiskConceptual overview TerminologyDownloading and installing Dynamic Root Disk Cloning the active system image Active system imageLocating disks 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 Using DRD for limited disk availability checks Using other utilities to determine disk availabilityChoosing a target disk 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 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 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 synchronizationDetermining 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 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 overview Rehosting and unrehosting systemsRehosting examples 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 HPLocating this guide New and changed information in this editionRelated information Typographic conventions Find1 Page DRD command syntax DRD commandsDrd activate command HAalternatebootdisk=blockdevicespecialfile Ignoreunmountedfs=truefalseLogfile=/var/opt/drd/drd.log Logverbosity=4Drd clone command Reboot=truefalseVerbosity=3 Default 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