HP Dynamic Root Disk (DRD) Rehosting a mirrored image, Example 7-1 Provisioning a new system

Page 40

Example 7-1 Provisioning a new system

In this example, you have a blade named SALES01 that is running all the correct releases of the correct OE software, and you have another blade (not yet running anything) that you want to set up as SALES02 (a hostname not yet in use), with the identical OE software as SALES01.

You would perform the following steps:

1.Clone the SALES01 system to a SAN LUN.

2.Create a system information file with SYSINFO_HOSTNAME=SALES02, and the

SYSINFO_MAC_ADDRESS, SYSINFO_IP_ADDRESS, and SYSINFO_SUBNET_MASK for SALES02.

3.Execute the drd rehost command, specifying the system information file created in the previous step.

4.Create a Virtual Connect Profile for the second blade, SALES02.

5.Unpresent the LUN from the first blade, SALES01, and present it to the second blade,

SALES02.

6.Choose the new LUN from the boot screens and boot the SALES02 blade.

In this example, no system with hostname SALES02 existed before you booted the new blade. You must specify a unique hostname for the rehosted clone.

Example 7-2 Updating a system to an existing system's maintenance level

In the next example, you use cloning to bring a system up to the same maintenance level as another system. Support system DEVEL01 is running an HP-UX 11i v3 0803 maintenance level, and DEVEL02 is running an HP-UX 11i v3 0709 maintenance level. Rather than use drd runcmd to install 0803 on DEVEL02, you want to clone DEVEL01 and boot the clone on DEVEL02 (with hostname DEVEL02).

You would perform the following steps:

1.Clone DEVEL01 to a SAN LUN.

2.Create a system information file with SYSINFO_HOSTNAME=DEVEL02, and the

SYSINFO_MAC_ADDRESS, SYSINFO_IP_ADDRESS, and SYSINFO_SUBNET_MASK for SALES02.

3.Execute the drd rehost command to copy the DEVEL02 system information file to the cloned disk. The system information file has SYSINFO_HOSTNAME=DEVEL02 and the correct

SYSINFO_MAC_ADDRESS, SYSINFO_IP_ADDRESS, and SYSINFO_SUBNET_MASK for DEVEL02.

4.Unpresent the SAN LUN from DEVEL01 and present it to DEVEL02

5.Use setboot to make the cloned disk on DEVEL02 the boot disk and then reboot DEVEL02; or you can simply reboot DEVEL02 and interrupt the boot to set the new LUN as the boot disk in the EFI interface.

In this example, DEVEL02 is a pre-existing hostname, but you are booting the same system, just using a different boot disk.

7.3 Rehosting a mirrored image

To rehost a mirrored image, use the following procedure:

1.The drd rehost command must be executed on one of the disks. If the image is inactive, simply running drd rehost [-fsysinfo_file] will accomplish this.

2.Both copies (mirrors) of the image must be moved to the new system. This can usually be accomplished by having the SAN management software transfer visibility of both LUNs to the new system.

40 Rehosting and unrehosting systems

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