HP Dynamic Root Disk (DRD) manual Devicespecialfile -v-xextended option=value -x-?-Xoptionfile

Page 58

Patches to the auto_parms utility are needed to process the SYSINFO.TXT file during the boot of the disk. Please refer to the Download DRD and Patches webpage at https:// h20392.www2.hp.com/portal/swdepot/ displayInstallInfo.do?productNumber=DynRootDisk#download for information about the appropriate patches to install.

A system administrator can execute the drd rehost command after cloning a system image to setup the clone to run on another system.

The initial implementation of drd rehost only supports rehosting of an LVM-managed root volume group on an Integrity virtual machine to another Integrity virtual machine, or an LVM-managed root volume group on a Blade with Virtual Connect I/O to another such Blade.

The format of the sysinfo file is defined in sysinfo(4), which is provided by a patch documented at the Download DRD and Patches webpage at https://h20392.www2.hp.com/portal/ swdepot/displayInstallInfo.do?productNumber=DynRootDisk#download. Only files conforming to sysinfo(4) can be used for rehosting.

The disk to be rehosted must be a bootable disk and may be specified as the argument of the -toption. If no -toption is specified, the disk to be rehosted is the inactive system image. The inactive system image is either a clone created by the drd clone command, or the original booted image that was cloned, whichever is not currently booted.

If no -toption is specified, the inactive image chosen is checked to ensure that it is managed by LVM. However, if a disk is specified using the -toption, the volume management of the disk is not checked.

If a preview operation is run—by specifying the -poption—the syntax of the system information file is checked, but the file is not copied to the target.

The drd rehost command syntax is:

drd rehost [-?] [-p] -f system_information_file [-q] -t

device_special_file [-v][-xextended option=value] [-x-?][-Xoption_file]

Options

-?

Displays the usage message for a DRD command. This option cannot be used with other options.

-p

Sets preview mode. When run with the -poption, a DRD command performs analysis without running the command and reports any errors.

-fsystem_information_file

Specifies the file containing the system information (hostname, IP address, network information, etc.) to be copied to EFI/HPUX/SYSINFO.TXT on the disk specified by the -toption. See sysinfo(4) for the syntax of this file. If not specified, the file defaults to /etc/opt/drd/ default_sysinfo_file.

-q

Decreases the verbosity level by one each time it is specified. For example, -qqwill reduce the verbosity from the default value of 4 to 2. If both -x verbosity=5 and -qqqare included on the command line, the effective verbosity is 2. The minimum verbosity level is 0. (See also the -x verbosity option.)

-tdevice_special_file

Specifies the block device special file of a single writeable physical disk. The file specified by the -foption will be written to EFI/HPUX/SYSINFO.TXT in the EFI partition of this disk. If no target is specified, the inactive system image is used as a target.

-v

Increases the verbosity level by one each time it is specified. For example, -vwill increase the effective verbosity from the default value of 4 to 5. If both -x verbosity=1 and -vvare included on the command line, the effective verbosity is 3. The maximum verbosity level is 5. (See also the -x verbosity option.)

58 DRD commands

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