HP Dynamic Root Disk (DRD) manual DRD commands, DRD command syntax, Drd activate command

Page 49

A DRD commands

term para

This appendix describes the DRD commands you can use to clone an image and work with the cloned image. The commands are:

drd-activate(1M)

drd-clone(1M)

drd-deactivate(1M)

drd-mount(1M)

drd-rehost(1M)

drd-runcmd(1M)

drd-status(1M)

drd-sync(1M)

drd-umount(1M)

drd-unrehost(1M)

Chapters 2 through 6 describe how to use these commands to perform DRD operations. You must be logged in as root to use any DRD command.

A.1 DRD command syntax

This section explains DRD command syntax, including the options that are specific to certain commands.

NOTE: This section is intended for quick reference after you are familiar with using DRD. Chapters 2 through 6 explain how to perform operations with DRD commands.

A.1.1 The drd activate command

The drd activate command causes the inactive system image to boot either immediately or the next time the system boots. Immediate or delayed booting is controlled by the -x reboot={truefalse} extended option. The default is false.

The drd-activate(1M) command invokes the setboot(1M) command to set the primary boot disk to the target of the drd clone operation. It also optionally sets the alternate and High Availability alternate boot disks to values specified on the command line.

The drd activate command syntax is:

drd activate [-?] [-p] [-q] [-v] [-x extended option=value] [-x -?] [-X option_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.

-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.)

A.1 DRD command syntax 49

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