Dynamic Root Disk A.3.13 Administrator's Guide: HP-UX 11i v2, HP-UX 11i v3
Dynamic Root Disk A.3.13 Administrator's Guide: HP-UX 11i v2, HP-UX 11i v3
13* Administrator's
Guide
HP-UX 11i v2, HP-UX 11i v3
Document Part Number DRD Version Supported Operating Systems Publication Date
Contents 3
8 Troubleshooting DRD................................................................................39
9 Support and other resources......................................................................40
Information to collect before contacting HP.................................................................................40
How to contact HP..................................................................................................................40
New and changed information in this edition.............................................................................41
Locating this guide..................................................................................................................41
Related information.................................................................................................................41
Typographic conventions.........................................................................................................41
10 Documentation feedback.........................................................................42
A DRD commands.......................................................................................43
DRD command syntax.............................................................................................................43
The drd activate command..................................................................................................43
The drd clone command.....................................................................................................45
The drd deactivate command..............................................................................................47
The drd mount command....................................................................................................49
The drd rehost command....................................................................................................51
The drd runcmd command..................................................................................................53
The drd status command.....................................................................................................55
The drd sync command.......................................................................................................57
The drd umount command...................................................................................................59
The drd unrehost command.................................................................................................61
Glossary....................................................................................................64
Index.........................................................................................................66
4 Contents
HP secure development lifecycle
Starting with HP-UX 11i v3 March 2013 update release, HP secure development lifecycle provides
the ability to authenticate HP-UX software. Software delivered through this release has been digitally
signed using HP's private key. You can now verify the authenticity of the software before installing
the products, delivered through this release.
To verify the software signatures in signed depot, the following products must be installed on your
system:
• B.11.31.1303 or later version of SD (Software Distributor)
• A.01.01.07 or later version of HP-UX Whitelisting (WhiteListInf)
To verify the signatures, run: /usr/sbin/swsign -v -s <depot_path>
For more information, see Software Distributor documentation at: http://www.hp.com/go/sd-docs.
NOTE: Ignite-UX software delivered with HP-UX 11i v3 March 2014 release or later supports
verification of the software signatures in signed depot or media, during cold installation. For more
information, see Ignite-UX documentation at: http://www.hp.com/go/ignite-ux-docs.
5
1 About Dynamic Root Disk
Conceptual overview
This document describes the Dynamic Root Disk (DRD) toolset, which you can use to perform
software maintenance and recovery on an HP-UX operating system with minimum system downtime.
DRD enables you to easily and safely clone a system image from a root disk to another disk on
the same system and modify the image without shutting down the system. DRD significantly reduces
system downtime and allows you to do software maintenance during normal business hours. This
document is primarily for HP-UX system administrators who apply software maintenance on HP-UX
systems, such as installing new software product revisions, as well as updating from an older HP-UX
operating environment (OE) to a newer one. Some understanding of HP-UX system administration
is assumed.
Hewlett-Packard developed DRD to minimize the usual maintenance window during which you
shut down the system to apply software maintenance. With DRD, the system keeps running while
you clone the system image and apply software maintenance to the cloned image. DRD tools can
manage the two system images simultaneously. DRD also provides a fail-safe mechanism for
returning the system to its original state, if necessary.
Using DRD commands, you can perform software maintenance or make other modifications on
the cloned system image without affecting the active system image. When ready, you can boot
the cloned image on either the original system or a different system. The only downtime required
for this process is while the system reboots.
Other uses of DRD include using the clone for quick software recovery or using the clone to boot
another system, which is referred to as rehosting. For details of rehosting, see Rehosting and
unrehosting systems (page 36).
Terminology
In this guide, “root group” refers to the LVM volume group or VxVM disk group that contains the
root (“/”) file system. The term “logical volume” refers to an LVM logical volume or a VxVM volume.
IMPORTANT: DRD supports the following LVM root volume group versions:
• DRD A.3.5.* and earlier:
◦ HP-UX 11i v2: LVM 1.0
Commands overview
The drd command provides a command line interface to DRD tools. The drd command has nine
major modes of operation:
• activate
After using the DRD commands to create and optionally modify a clone, using drd activate
invokes setboot(1M) and sets the primary boot path to the clone. After the clone is booted,
using drd activate invokes setboot(1M) to set the primary boot path to the original system
NOTE: The drd runcmd command suppresses all reboots. The option -x autoreboot
is ignored when an swinstall, swremove, or update-ux command is executed by drd
runcmd.
• status
Displays (system-specific) status information about the original disk and the clone disk, including
which disk is currently booted and which disk is activated (that is, the disk that will be booted
when the system is restarted).
• sync
Propagates file system changes from the booted original system to the inactive clone image.
• umount
Commands overview 7
Unmounts all file systems in the inactive system image previously mounted by a drd mount
command.
• unrehost
Removes the system information file, EFI/HPUX/SYSINFO.TXT, from a disk that was rehosted,
optionally preserving a copy in a file system on the booted system.
For details of DRD commands syntax, including all options and extended options, see DRD
commands (page 43).
NOTE: Due to system calls DRD depends on, DRD expects legacy Device Special Files (DSFs) to
be present and the legacy naming model to be enabled on HP-UX 11i v3 (11.31) servers. HP
recommends only partial migration to persistent DSFs be performed. For details of migration to
persistent DSFs, see theHP-UX 11i v3 Persistent DSF Migration Guide.
NOTE: On VxVM configurations, DRD expects OS Native Naming (osn) to be enabled. Enclosure
Based Naming (ebn) must be turned off.
NOTE:
After creating a DRD clone, your system has two system images—the original and the cloned
image. Throughout this document, the system image that is currently in use is called the active
system image. The image that is not in use is called the inactive system image.
Locating disks
The target of a drd clone operation must be a single disk or SAN LUN that is write-accessible
to the system and not currently in use. Depending on your HP-UX operating system, refer to one
of the following sections:
• Locating Disks on HP-UX 11i v2
• Locating Disks on HP-UX 11i v3
Example 2 The ioscan -fnkC disk command output on an HP-UX 11i v2 Integrity system
# /usr/sbin/ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s3
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s1
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s3
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s1
IMPORTANT:
The above output includes block device special files ending with s1, s2, or s3. These endings
indicate an idisk partition on the disk. Do NOT use a partition as a clone target!
The first disk in the above list is a DVD drive, indicated by the DV in the description field. Do NOT
use a DVD as a clone target!
Some device files are identified as /dev/rdsk/. . . following the block device special file
designation. This identifies them as raw files. Do NOT use a raw file as a clone target!
If you have recently added a disk to your system you may need to run ioscan without the -k
option to display the new disk. See the ioscan(1M) manpage for more information about ioscan
options.
IMPORTANT:
The above output includes block device special files ending with _p1, _p2, or _p3. These endings
indicate an idisk partition on the disk. Do NOT use a partition as a clone target!
The last disk in the above list is a DVD drive, indicated by the DW in the description field. Do NOT
use a DVD as a clone target!
Some device files are identified as /dev/rdisk following the block device special file designation.
This identifies them as raw files. Do NOT use a raw file as a clone target!
Additionally, on HP-UX 11i v3 Integrity systems, you may find it useful to use the following ioscan
command to identify persistent and legacy DSFs:
Example 4 The ioscan -m dsf command output on an HP-UX 11i v3 Integrity system
# /usr/sbin/ioscan -m dsf
Persistent DSF Legacy DSF(s)
==========================================
/dev/rdisk/disk4 /dev/rdsk/c2t0d0
/dev/rdisk/disk4_p1 /dev/rdsk/c2t0d0s1
/dev/rdisk/disk4_p2 /dev/rdsk/c2t0d0s2
/dev/rdisk/disk4_p3 /dev/rdsk/c2t0d0s3
/dev/rdisk/disk5 /dev/rdsk/c2t1d0
/dev/rdisk/disk5_p1 /dev/rdsk/c2t1d0s1
/dev/rdisk/disk5_p2 /dev/rdsk/c2t1d0s2
/dev/rdisk/disk5_p3 /dev/rdsk/c2t1d0s3
/dev/rdisk/disk6 /dev/rdsk/c3t2d0
/dev/rdisk/disk6_p1 /dev/rdsk/c3t2d0s1
/dev/rdisk/disk6_p2 /dev/rdsk/c3t2d0s2
/dev/rdisk/disk6_p3 /dev/rdsk/c3t2d0s3
/dev/rdisk/disk7 /dev/rdsk/c0t0d0
For additional information about LVM volume group configurations from legacy to the agile naming
model, see the LVM Migration from Legacy to Agile Naming Model HP-UX 11i v3 white paper.
Example 6 drd clone preview example on HP-UX 11i v3 (using agile DSF)
# /opt/drd/bin/drd clone –p –v –t /dev/disk/diskn
The preview operation includes disk space analysis that shows whether a target disk is large
enough. If you prefer to investigate disk sizes before previewing the clone, you can use the
diskinfo command.
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
On HP-UX 11i v3 systems, you can also use the agile device file to the target disk, substituting
your target disk identifier for the one shown in the following command:
# /opt/drd/bin/drd clone -v -x overwrite=true -t /dev/disk/disk10
NOTE: For descriptions of the drd clone command, see The drd clone command.
NOTE: The drd clone command does not write over a disk that is part of the root volume.
The output you see as this command runs is similar to Example 2-7.
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.
======= 12/01/06 11:38:19 MST END Clone System Image succeeded. (user=root)
(jobid=drdtest2)
Figure 2-3 shows the two disks after cloning. Both disks contain the system image. The image on
the target disk is the inactive system image.
The DRD clone operation will have some impact on the booted system's I/O resources, particularly
if the source disk is on the same SCSI chain as the target disk. DRD's performance is similar to
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.
Here is an example of creating a clone from a HP-UX 11i v3 system to a storage area network
(SAN) disk. First, Example 2-8 displays the output of the following drd clone command:
# /opt/drd/bin/drd clone -t /dev/disk/disk14 -x overwrite=true
======= 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-9 displays the output of the following drd status command:
# /opt/drd/bin/drd status
======= 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.
NOTE: The drd runcmd command suppresses all reboots. The option -x autoreboot is
ignored when a swinstall, swremove, or update-ux command is executed by drd runcmd.
Not all commands can safely be executed by the drd runcmd operation. For example, commands
that start or stop daemons or change dynamic kernel tuneables are disruptive to current processes
and must be prevented by the drd runcmd operation.
Restrictions on commands executed by drd runcmd are:
• When calling swinstall and update-ux, drd runcmd supports installation from directory
depots on the booted system and on remote servers. Note that installing from serial depots or
from depots on the inactive system image is not supported.
• drd runcmd can also be used to swlist, swverify, swremove, and swmodify software
that is installed on the inactive image. It cannot be used to list or modify any depot's contents.
Using these commands outside of drd runcmd allows for depot listing and management.
Commands that are not disruptive to the booted system and perform appropriate actions on the
inactive system are known as DRD-safe. For this release of DRD, a short list of commands is
recognized by the drd runcmd operation to be DRD-safe. An attempt to use DRD to run commands
that are not DRD-safe will terminate with an ERROR return code without executing the command.
A number of Software Distributor commands have been made safe at a sufficient maintenance
level of SW-DIST. The DRD product has a package co-requisite on a minimum release of SW-DIST.
(For details of the DRD product dependencies, see the following webpage: https://
h20392.www2.hp.com/portal/swdepot/displayInstallInfo.do?
productNumber=DynRootDisk#download.)
Similarly, drd runcmd update-ux includes a run-time check for the revision of SWManager
(SWM), which provides DRD-safe tools used during the update. This functionality supports updates
on the clone from an older version of HP-UX 11i v3 to HP-UX 11i v3 update 4 or later. (For details
of the DRD product dependencies, see the following webpage: https://h20392.www2.hp.com/
portal/swdepot/displayInstallInfo.do?productNumber=DynRootDisk#download.)
The DRD-safe commands are the following:
• swinstall
• swremove
• swlist
• swmodify
• swverify
IMPORTANT: When invoked by the drd runcmd operation, the swinstall, swremove, and
update-ux commands reject any attempt to install or remove a patch included in the
drd_unsafe_patch_list file on the inactive system image.
In the rare event that a new patch is determined not to be DRD-safe, a new version of the
drd_unsafe_patch_list file is made available on HP’s IT Resource Center website.
IMPORTANT: System administrators need to be aware that any firmware change cannot be
reversed by booting a different system image.
◦ Be referenced in the DRD-safe command by the path relative to the mount point of the
inactive system image
This applies to files referenced as arguments for the -C, -f, -S, -X, and -x logfile options
for an sw command run by drd runcmd and for the update-ux command -f option.
• To use update-ux with a media source or local depot, SWM version A.3.5.1 or later must
be present on the clone.
See drd-runcmd(1M) for further information about restrictions on Software Distributor commands
invoked by drd runcmd.
Viewing logs
When a drd runcmd operation executes a DRD-safe command, the DRD command runs on the
booted system, and the DRD log, /var/opt/drd/drd.log, is created on the booted system.
However, the DRD-safe command runs on the inactive system image, and its logs (if they exist),
reside on the inactive system image.
Logs can be viewed on the inactive system image by using the drd runcmd view command.
For example, to view the swagent log on the inactive image, execute the following command:
# /opt/drd/bin/drd runcmd view /var/adm/sw/swagent.log
For more information on viewing log files and on maintaining the integrity of system logs, see the
Dynamic Root Disk: Quick Start & Best Practices white paper, located at http://www.hp.com/go/
drd-docs.
IMPORTANT: If you choose to mount the inactive DRD system image, exercise caution to ensure
that any actions taken do not impact the running system. You must:
• Not stop/kill or restart any processes or daemons.
• Only make kernel changes by executing: drd runcmd kctune.
For example, to change the value of the maxfiles_lim kernel tunable on the inactive system
image to 8192, execute the command:
# /opt/drd/bin/drd runcmd kctune maxfiles_lim=8192
Using drd runcmd to change the value of maxfiles_lim on the inactive system image ensures
that its value on the booted system is unchanged.
NOTE: Accessing the inactive system image is not always required; however, you may need to
access the inactive system image prior to activating it.
You can mount DRD-cloned file systems to access them and:
• Check the logs of commands executed by drd runcmd.
• Create files on the inactive system image. In particular, you can create files that will be
referenced by swinstall commands, executed by the drd runcmd command. (For an
example of this type of file creation, see Example 13.)
• Verify the integrity of certain files on the inactive system image. If a file is known to have
changed during the drd clone operation, you might want to compute a checksum on the
copy of the file on the booted system and the copy on the target system to validate the clone
copy.
======= 12/08/06 22:19:31 MST BEGIN Mount Inactive System Image (user=root)
(jobid=dlkma1)
======= 12/08/06 22:19:52 MST END Mount Inactive System Image succeeded.
(user=root) (jobid=dlkma1)
The drd mount command automatically chooses the mount point for the inactive system image.
If the image was created by the drd clone command, the mount point is /var/opt/drd/mnts/
sysimage_001. If the clone has been booted, drd mount mounts the original system at the
mount point /var/opt/drd/mnts/sysimage_000. To see all mounted file systems, including
those in the active and inactive system images, execute the following command:
# /usr/bin/bdf
The output of this command should look similar to Example 4-2, if the drd mount command has
been executed:
In this output, file systems identified as dev/vg00/* are the active system image file systems.
Those identified as /dev/drd00/* are the inactive system image file systems.
TIP: HP recommends that a clone be deployed shortly after creating and (optionally) modifying
it.
You verify software on the inactive system image with drd runcmd swverify and see a warning
message.
Task:
Find additional information about the message.
To see detailed information about the warning message supplied by the swagent log, execute
the following command:
# /opt/drd/bin/drd runcmd view /var/adm/sw/swagent.log
Task:
Create a file containing a list of patches to be applied to the inactive system image. You want to
use the file as the argument of a -f option in a swinstall command run by drd runcmd.
Follow this procedure:
1. Mount the inactive system image:
# /opt/drd/bin/drd mount
2. Enter the patches into a file such as
/var/opt/drd/mnts/sysimage_001/var/opt/drd/my_patch_list
with the following commands:
a. # /usr/bin/echo “PHCO_02201” > \
/var/opt/drd/mnts/sysimage_001/var/opt/drd/my_patch_list
b. # /usr/bin/echo “PHCO_12134” >> \
/var/opt/drd/mnts/sysimage_001/var/opt/drd/my_patch_list
c. # /usr/bin/echo “PHCO_56178” >> \
/var/opt/drd/mnts/sysimage_001/var/opt/drd/my_patch_list
NOTE: If the inactive system image is the original system image, and not the clone, the
root file system mount point is /var/opt/drd/mnts/sysimage_000.
3. Apply the patches using drd runcmd, identifying the file by its path relative to the mount
point of the inactive system image root file system:
# /opt/drd/bin/drd runcmd swinstall -s patch_server:/var/opt/patch_depot \
-f /var/opt/drd/my_patch_list
NOTE: Because the inactive system image was mounted when drd runcmd was executed,
it is still mounted after drd runcmd completes. You can unmount it with the following
command:
# /opt/drd/bin/drd umount
Task:
You changed the value of NUM_BK in /opt/VRTS/bin/vxconfigbackup from 5 to 10 by
editing the file. You want the change applied to the clone as well.
Execute the following commands:
1. Mount the inactive system image:
# /opt/drd/bin/drd mount
2. Compare vxconfigbackup with the clone copy:
# /usr/bin/diff /opt/VRTS/bin/vxconfigbackup \
/var/opt/drd/mnts/sysimage_000/opt/VRTS/bin/vxconfigbackup
Surprisingly, the files are equal! What happened?
A long listing shows that the files are symlinks:
# /usr/bin/ll /opt/VRTS/bin/vxconfigbackup \
/var/opt/drd/mnts/sysimage_000/opt/VRTS/bin/vxconfigbackup
The listing shows:
lrwxr-xr-x l bin bin 32 Apr 3 17:34
/opt/VRTS/bin/vxconfigbackup -> /usr/lib/vxvm/bin/vxconfigbackup
lrwxr-xr-x 1 bin bin 32 Nov 16 12:45
/var/opt/drd/mnts/sysimage_000/opt/VRTS.bin/vxconfigbackup
-> /usr/lib/vxvm/bin/vxconfigbackup
When the clone is booted, the target of the symlink on the clone resides on the clone. However,
when the clone is mounted under the booted system, the target of the symlink resides on the booted
system.
To change the data on the clone, edit the file that will be the target of the symlink when the clone
is booted:
# /usr/bin/vi /var/opt/drd/mnts/sysimage_001/usr/lib/vxvm/vxconfigbackup
and change the value of NUM_BK to 10.
CAUTION: Attempting to edit a path on the clone that is an absolute symlink results in changes
on the booted system!
======= 12/08/06 22:09:48 MST END Unmount Inactive System Image succeeded.
(user=root) (jobid=dlkma1)
Here is a sample scenario that can be improved by using the drd sync command:
1. A system administrator creates a DRD clone on a Thursday.
2. The administrator applies a collection of software changes to the clone on Friday using the
drd runcmd command.
3. On Friday, several log files are updated on the booted system.
4. On Saturday, the clone is booted.
Prior to DRD release B.11.xx.A.3.5, the system administrator needed to take manual actions to
ensure that changes made to log files on the booted system (on Friday) were copied to the clone
before or after it was booted. This was particularly important for logs that were audited for security
purposes.
With the introduction of the drd sync command, the administrator can run drd sync before
booting the clone (preferably as part of a shutdown script) to ensure that changes made to the
booted system are propagated to the clone.
The drd sync command does not propagate changes to software installed on the clone. In most
cases, software installed on the clone is intentionally different from software installed on the booted
system. For example, patches might have been applied to the clone, new revisions of software
products installed, or an entire new release of HP-UX installed using drd runcmd. More information
on how drd sync handles software changes is provided in “The drd sync command” (page 27).
IMPORTANT: HP recommends that drd sync not be used for clones that have diverged greatly
from the booted system over a period of time. In some cases, it is more appropriate to re-create
the clone and apply the software changes, or install newer software changes. For ways to determine
how much a clone differs from the original booted system, see “Using the drd sync preview to
determine divergence of the clone from the booted system” (page 29).
IMPORTANT: The original system must be booted when drd sync is run, and changes are
always propagated from the original system to the clone.
The current limitations apply to actual propagation of changes:
• If a new hard link is created to a file that existed when the clone was created, the drd sync
command does not recognize that the file should be created as a hard link on the inactive
clone image, and creates a new copy of the file with the new (hard-linked) name. In rare
cases, this could result in an “insufficient space” error on the clone during synchronization.
• If a permission or ownership of a file on the original booted system is changed, the modification
time of the file is not updated, so this change by itself does not cause the file to be copied to
the clone. However, new permission or ownership of the file is propagated to the clone when
it is copied.
The copy of a file to the inactive clone image does not include modification of any file system
access control lists (ACLs) on the clone.
Using the drd sync preview to determine divergence of the clone from
the booted system
If many changes were made to the booted system after the clone was created, it can be preferable
to run drd clone rather than attempt to use drd sync to update the inactive clone. To determine
the extent of the changes to the booted system, run drd sync with the -p preview option:
# /opt/drd/bin/drd sync -p
Next, examine the /var/opt/drd/files_to_be_copied_by_drd_sync file. If the file is
large, consider running drd clone to re-create the clone.
Additional information can be obtained by examining other files in /var/opt/drd/sync, which
are described in “The drd sync command” (page 27).
set_return() {
if [ $1 -ne 0 ]; then
echo $2
rval=1
fi
}
case $1 in
stop_msg)
echo "Running drd sync to synchronize cloned root file systems"
;;
Using the drd sync preview to determine divergence of the clone from the booted system 29
stop)
# Synchronize the source disk with the cloned system
drd mount >/dev/null 2>&1 # Ignore errors, may already be mounted.
drd sync
sync_ret=$?
set_return $sync_ret "ERROR: Return code from drd sync is $sync_ret"
rm -f $0 ${DRD_MOUNT_PT}$0 > /dev/null 2>&1
[[ -x $0 ]] && \
set_return 1 "ERROR: The $0 script (on image being shut down) could not be removed."
[[ -x ${DRD_MOUNT_PT}$0 ]] && \
set_return 1 "ERROR: The ${DRD_MOUNT_PT}$0 script ($0 on clone) could not be removed."
drd umount >/dev/null 2>&1 # Ignore errors.
;;
*)
echo "usage: $0 { stop_msg | stop }"
rval=1
;;
esac
exit $rval
NOTE: The alternate boot path and the High Availability (HA) alternate boot path are not affected
by the drd activate command. In addition, the value of the autoboot flag (set by setboot
–b ) is not affected by the drd activate command.
NOTE: The following example does not correspond to any of the figures in this guide.
Example 17 Booting the primary boot disk with an alternate boot disk (HP-UX 11i v2)
# /usr/bin/more /stand/bootconf
l /dev/dsk/c2t0d0s2
#
# /usr/sbin/setboot
Primary bootpath : 0/1/1/0.0.0
HA Alternate bootpath : 0/1/1/1.2.0
Alternate bootpath : 0/1/1/1.2.0
Autoboot is ON (enabled)
#
# /usr/sbin/ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s3
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s1
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s3
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s1
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s3
/dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0s1
#
# /usr/bin/more /stand/bootconf
l /dev/dsk/c2t0d0s2
#
# /opt/drd/bin/drd activate -x alternate_bootdisk=/dev/dsk/c2t0d0
======= 06/06/07 22:38:02 MDT BEGIN Activate Inactive System Image (user=root) (jobid=drd2)
* Checking for Valid Inactive System Image
* Reading Current System Information
* Locating Inactive System Image
* Determining Bootpath Status
* Primary bootpath : 0/1/1/0.0.0 [/dev/dsk/c2t0d0] before activate.
* Primary bootpath : 0/1/1/1.2.0 [/dev/dsk/c3t2d0] after activate.
* Alternate bootpath : 0/1/1/1.2.0 [/dev/dsk/c3t2d0] before activate.
* Alternate bootpath : 0/1/1/0.0.0 [/dev/dsk/c2t0d0] after activate.
* HA Alternate bootpath : 0/1/1/1.2.0 [/dev/dsk/c3t2d0] before activate.
* HA Alternate bootpath : 0/1/1/1.2.0 [/dev/dsk/c3t2d0] after activate.
* Activating Inactive System Image
======= 06/06/07 22:38:13 MDT END Activate Inactive System Image succeeded. (user=root) (jobid=drd2)
#
# /usr/sbin/setboot
Primary bootpath : 0/1/1/1.2.0
HA Alternate bootpath : 0/1/1/1.2.0
Alternate bootpath : 0/1/1/0.0.0
Autoboot is ON (enabled)
The drd activate and drd deactivate commands enable you to choose an image to be
booted the next time the system is restarted. An image is considered to be activated if it will be
TIP: If you have already booted the (previously) inactive image, you can use drd activate
to return to the (previously) active image.
In this example, /dev/dsk/c2t3d0 contains your root volume group, and you use drd clone
to create an inactive system disk at /dev/dsk/c1t2d0. Next, you execute drd activate. The
results are:
• Disk set to become the active system disk after the next reboot: /dev/dsk/c1t2d0
• Disk set to become the inactive system disk after the next reboot: /dev/dsk/c2t3d0
The output of drd status is:
# /opt/drd/bin/drd status
======= 07/01/08 13:14:36 MDT BEGIN Displaying DRD Clone Image Information
(user=root) (jobid=drdtest1)
======= 07/01/08 13:14:42 MDT END Displaying DRD Clone Image Information
succeeded. (user=root) (jobid=drdtest1)
If plans change prior to rebooting the system and you do not want to have /dev/dsk/c1t2d0
become the active system disk, you can use drd deactivate to “undo” the previous drd
activate command.
The results are:
• Disk set to become the active system disk after the next reboot: /dev/dsk/c2t3d0
• Disk set to become the inactive system disk after the next reboot: /dev/dsk/c1t2d0
The output of drd status is:
# drd status
======= 07/01/08 13:14:36 MDT BEGIN Displaying DRD Clone Image Information
(user=root) (jobid=drdtest1)
======= 07/01/08 13:14:42 MDT END Displaying DRD Clone Image Information
succeeded. (user=root) (jobid=drdtest1)
In this example, drd activate is executed on a system without performing a reboot, followed
by running drd deactivate, and the end result is no change. For example, if you have a system
with the root volume group on /dev/disk/disk11 and a clone created on /dev/disk/disk10,
the output of drd status is:
# drd status
======= 07/01/08 13:20:04 MDT BEGIN Displaying DRD Clone Image Information
(user=root) (jobid=drdtest1)
======= 07/01/08 13:20:10 MDT END Displaying DRD Clone Image Information
succeeded. (user=root) (jobid=drdtest1)
If you use drd activate and do not perform a reboot, and then use drd deactivate, the
output of drd status is:
# drd status
======= 07/01/08 13:20:04 MDT BEGIN Displaying DRD Clone Image Information
(user=root) (jobid=drdtest1)
======= 07/01/08 13:20:10 MDT END Displaying DRD Clone Image Information
succeeded. (user=root) (jobid=drdtest1)
IMPORTANT: For additional information on rehosting, including required software, see the
Exploring DRD Rehosting in HP-UX 11i v2 and 11i v3 white paper, located at http://www.hp.com/
go/drd-docs.
The initial release of drd rehost has been tested on Integrity Virtual Machines and on blades
with Virtual Connect. In addition, preliminary testing indicates that simple (single root volume
group) standalone LVM-managed Itanium-based systems running a September 2008 HP-UX 11i
v3 Operating Environment (OE) can be rehosted to another system with the exact same hardware.
The benefit of the September 2008 HP-UX 11i v3 Operating Environment is the availability of “Self
healing of boot disk configuration”, which is provided by LVM and described in the September
2008 HP-UX 11i v3 Release Notes, located in the HP-UX 11i v3 - 2008 Release Documents Portfolio.
Rehosting overview
For details of the drd rehost command, including available options and extended options, see
The drd rehost command.
The common steps for rehosting are:
1. Create a system image using the drd clone command
2. Create a system information file for the new image, which contains information such as
hostname, IP addresses, language, time zone, and other system information
3. Copy the system information file to the EFI partition using the drd rehost command
4. Unpresent the disk (new image) from the source system and present it to the target system that
will boot the rehosted image.
5. Process the new system information file with the auto_parms(1M) utility during the boot of the
rehosted image
In order to perform these steps, minimal revisions of Dynamic Root Disk and auto_parms(1M),
delivered in the SystemAdmin.FIRST-BOOT fileset are required. For details, see the Exploring
DRD Rehosting in HP-UX 11i v2 and 11i v3 white paper, located at http://www.hp.com/go/
drd-docs.
Rehosting examples
In the following examples you can substitute a hot-swappable disk for the SAN LUN. Refer to your
Storage Area Network software documentation for information on presenting and unpresenting a
LUN to a 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.
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.
Unrehosting overview
For details of the drd unrehost command, including available options and extended options,
see The drd unrehost command.
The drd unrehost command removes EFI/HPUX/SYSINFO.TXT, and optionally preserves a
copy of it in a file on the booted system.
You can execute the drd unrehost command after previously executing the drd rehost
command, specifying the same target, if the disk should not be rehosted.
The format of the sysinfo file is defined in sysinfo(4). To determine the most recent patch that supplies
sysinfo(4), see the Download DRD and Patches webpage, located at https://
h20392.www2.hp.com/portal/swdepot/displayInstallInfo.do?
productNumber=DynRootDisk#download.
39
9 Support and other resources
This chapter contains support information and the available resources for the HP Dynamic Root
Disk software product.
How to contact HP
Use the following methods to contact HP:
For the name of the nearest HP authorized reseller:
• See the Contact HP worldwide (in English) webpage (http://www8.hp.com/us/en/
hp-information/summary/ww-contact-us.html).
For HP technical support:
• In the United States, for contact options see the Contact HP United States webpage (http://
welcome. hp.com/country/us/en/contact_us.html). To contact HP by phone:
◦ Call 1-800-HP-INVENT (1-800-474-6836). This service is available 24 hours a day, 7
days a week. For continuous quality improvement, calls may be recorded or monitored.
◦ If you have purchased a Care Pack (service upgrade), call 1-800-633-3600. For more
information about Care Packs, refer to the HP website (http://www8.hp.com/us/en/
business-services/it-services.html?compURI=1077422).
• In other locations, see the Contact HP worldwide (in English) webpage (http://
welcome.hp.com/country/us/en/wwcontact_us.html).
Subscription service
HP recommends that you register your product at the Subscriber's Choice for Business website:
http://www.hp.com/country/us/en/contact_us.html
After registering, you will receive email notification of product enhancements, new driver versions,
firmware updates, and other product resources.
To obtain product support, see “Information to collect before contacting HP” (page 40).
For a forum with other DRD users, visit the HP_UX_Docs twitter page:
http://twitter.com/HP_UX_Docs
IMPORTANT: Check the HP-UX Dynamic Root Disk - Manuals page (http://www.hp.com/go/
drd-docs) for the latest revision of this guide. The guide on the September 2010 HP-UX Instant
Information media is an initial version and may contain outdated information.
Related information
For more information about HP Dynamic Root Disk, see http://www.hp.com/go/drd-docs.
For more information related to HP-UX technical documentation, see http://www.hp.com/go/
hpux-core-docs.
Typographic conventions
This document uses the following typographic conventions.
Book Title Title of a book or other document.
Linked Title Title that is a hyperlink to a book or other document.
http://www.hp.com A website address that is a hyperlink to the site.
Command Command name or qualified command phrase.
user input Commands and other text that you type.
computer output Text displayed by the computer.
Enter The name of a keyboard key. Note that Return and Enter both refer to
the same key. A sequence such as Ctrl+A indicates that you must hold
down the key labeled Ctrl while pressing the A key.
variable The name of an environment variable, for example PATH or errno.
value A value that you may replace in a command or function, or information
in a display that represents several possible values.
find(1) HP-UX manpage. In this example, “find” is the manpage name and “1”
is the manpage section.
42 Documentation feedback
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.
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 -p option, 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, -qq will reduce the verbosity from the default
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
44 DRD commands
-x preview={true|false} If true, run this command in preview mode only. That is,
complete the analysis phase and exit; no changes are
committed to disk. This option has the same effect as
specifying -p on the command line. The default is false.
This option is available on every DRD command except drd
runcmd.
-x reboot={true|false} If true, specifies the system is rebooted at the successful
completion of a drd activate operation. The default is
false.
-x verbosity=3 (Default.) Specifies the level of stdout/stderr verboseness. Replace 3
with the following values:
0 Only ERRORS and the starting/ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 (Default) Adds INFO messages (informational messages
preceded by the * character.)
4 Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
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 -p option, 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, -qq will reduce the verbosity from the default
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
-v Increases the verbosity level by one each time it is specified.
For example, -v will increase the effective verbosity from
the default value of 4 to 5. If both -x verbosity=1 and
-vv are included on the command line, the effective
verbosity is 3. The maximum verbosity level is 5. (See also
the -x verbosity option.)
-t target_device_file The -t target_device_file option and parameter are
required with the drd clone command. This option
specifies the block device special file (for example, /dev/
dsk/c2t0d0) of a single physical disk on which the cloned
system image is to be written. The block device special file
must exist on the system and be writeable. All data
previously on a disk will be unavailable after a clone
operation. (See the -x overwrite extended option.)
-x extended_option= value Sets the extended option to a value.
-x -? Displays the list of possible -x (extended) options.
-X option_file Gets the extended options from a file.
46 DRD commands
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x (Default is true) Controls whether to copy the
copy_autofile={true|false}block_device_special_file EFI/HPUX/AUTO file from the active to the inactive system
image.
-x enforce_dsa={true|false} Usage: Advanced/Dangerous. Controls whether or not a
failure in the disk space analysis (DSA) part of the analysis
phase is fatal to the session.
true: A failure in DSA will result in a failure of Analysis phase
for the entire session. The command will not proceed.
false: A failure in DSA will be logged, but the session will
be allowed to proceed. There is a risk of filling a mounted
disk or volume to its maximum capacity at some point during
the session. Attempts to exceed the capacity will result in a
catastrophic failure of the session, and possibly leave an
unusable system.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
Options
-? Displays the usage message for a DRD command. This
option cannot be used with other options.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
48 DRD commands
overwritten. The -x overwrite=true allows a disk to
be overwritten, even if it contains boot, LVM, or VxVM
records. Note that DRD does not overwrite a disk associated
with an active LVM volume group or VxVM disk group,
regardless of the setting of the overwrite option. If a
previously created clone is mounted, use the drd umount
command to unmount it before attempting to create a new
clone on the disk.
-x preview={true|false} If true, run this command in preview mode only. That is,
complete the analysis phase and exit; no changes are
committed to disk. This option has the same effect as
specifying -p on the command line. The default is false.
This option is available on every DRD command except drd
runcmd.
-x reboot={true|false} If true, specifies the system is rebooted at the successful
completion of a drd activate operation. The default is
false.
-x verbosity=3 (Default.) Specifies the level of stdout/stderr verboseness. Replace 3
with the following values:
0 Only ERRORS and the starting/ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 (Default) Adds INFO messages (informational messages
preceded by the * character.)
4 Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
If the inactive system image was created by the drd clone command, the mount point for the
root file system, chosen automatically by the mount command, is /var/opt/drd/mnts/
sysimage_001. If the currently-booted system was created by the drd clone command, the
mount point of the root file system of the original system (now inactive) is /var/opt/drd/mnts/
sysimage_000.
The drd mount command syntax is:
drd mount [-?] [-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.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
50 DRD commands
overwritten. The -x overwrite=true allows a disk to
be overwritten, even if it contains boot, LVM, or VxVM
records. Note that DRD does not overwrite a disk associated
with an active LVM volume group or VxVM disk group,
regardless of the setting of the overwrite option. If a
previously created clone is mounted, use the drd umount
command to unmount it before attempting to create a new
clone on the disk.
-x preview={true|false} If true, run this command in preview mode only. That is,
complete the analysis phase and exit; no changes are
committed to disk. This option has the same effect as
specifying -p on the command line. The default is false.
This option is available on every DRD command except drd
runcmd.
-x reboot={true|false} If true, specifies the system is rebooted at the successful
completion of a drd activate operation. The default is
false.
-x verbosity=3 (Default.) Specifies the level of stdout/stderr verboseness. Replace 3
with the following values:
0 Only ERRORS and the starting/ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 (Default) Adds INFO messages (informational messages
preceded by the * character.)
4 Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
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 -p option, a DRD
command performs analysis without running the command
and reports any errors.
-f system_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 -t option. 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, -qq will reduce the verbosity from the default
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
-t device_special_file Specifies the block device special file of a single writeable
physical disk. The file specified by the -f option 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, -v will increase the effective verbosity from
the default value of 4 to 5. If both -x verbosity=1 and
-vv are included on the command line, the effective
verbosity is 3. The maximum verbosity level is 5. (See also
the -x verbosity option.)
-x extended_option=value Sets the extended option to a value.
-x -? Displays the list of possible -x (extended) options.
-X option_file Gets the extended options from a file.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
52 DRD commands
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
Options
-? Displays the usage message for a DRD command. This
option cannot be used with other options.
-q Decreases the verbosity level by one each time it is specified.
For example, -qq will reduce the verbosity from the default
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
-v Increases the verbosity level by one each time it is specified.
For example, -v will increase the effective verbosity from
the default value of 4 to 5. If both -x verbosity=1 and
-vv are included on the command line, the effective
verbosity is 3. The maximum verbosity level is 5. (See also
the -x verbosity option.)
-x extended_option=value Sets the extended option to a value.
-x -? Displays the list of possible -x (extended) options.
-X option_file Gets the extended options from a file.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
54 DRD commands
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
NOTE: Disk State varies depending on the system's architecture. The drd status command
will list either LIF Area or EFI Partition instead of Disk State. For Itanium® systems, the
Disk State will report whether the personality file, SYSINFO.TXT, exists on the specified disk. This
file is used to rehost a disk. See the drd-rehost(1M) man page for more information.
Disk State varies depending on the system's architecture. The drd status command lists either
Clone LIF Area or Clone EFI Partition.
The drd status command syntax is:
drd status [-?] [-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.
-q Decreases the verbosity level by one each time it is specified.
For example, -qq will reduce the verbosity from the default
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
-v Increases the verbosity level by one each time it is specified.
For example, -v will increase the effective verbosity from
the default value of 4 to 5. If both -x verbosity=1 and
-vv are included on the command line, the effective
verbosity is 3. The maximum verbosity level is 5. (See also
the -x verbosity option.)
-x extended_option=value Sets the extended option to a value.
-x -? Displays the list of possible -x (extended) options.
-X option_file Gets the extended options from a file.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
56 DRD commands
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
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 -p option, 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, -qq will reduce the verbosity from the default
58 DRD commands
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
-v Increases the verbosity level by one each time it is specified.
For example, -v will increase the effective verbosity from
the default value of 4 to 5. If both -x verbosity=1 and
-vv are included on the command line, the effective
verbosity is 3. The maximum verbosity level is 5. (See also
the -x verbosity option.)
-x extended_option=value Sets the extended option to a value.
-x -? Displays the list of possible -x (extended) options.
-X option_file Gets the extended options from a file.
Extended options
The following extended options are available:
-x exclude_list= The full path for a file containing fully qualified file system
locations to be excluded from synchronization, listed one
per line, in addition to those described in drd-sync(1M). If
the location is a directory, the contents of the directory,
including all subdirectories, are excluded. Note, file names
must NOT end with a space.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
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 -p option, 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, -qq will reduce the verbosity from the default
value of 4 to 2. If both -x verbosity=5 and -qqq are
included on the command line, the effective verbosity is 2.
The minimum verbosity level is 0. (See also the -x
verbosity option.)
-v Increases the verbosity level by one each time it is specified.
For example, -v will increase the effective verbosity from
the default value of 4 to 5. If both -x verbosity=1 and
-vv are included on the command line, the effective
verbosity is 3. The maximum verbosity level is 5. (See also
the -x verbosity option.)
-x extended_option=value Sets the extended option to a value.
-x -? Displays the list of possible -x (extended) options.
-X option_file Gets the extended options from a file.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
60 DRD commands
-x Specifies the target's block device special file of the mirror
mirror_disk=block_device_special_file disk. The block device special file should refer to an entire
disk, not to a partition. This option requires that LVM
mirroring is installed. The block device special file specified
is used to mirror each logical volume in the target of the
clone operation.
-x overwrite={true|false} Specifies whether drd clone should overwrite existing
information on the target disk. That is, it controls whether a
disk containing boot, LVM, or VxVM records can be
overwritten. The -x overwrite=false (default) prevents
a disk that contains boot, LVM, or VxVM records from being
overwritten. The -x overwrite=true allows a disk to
be overwritten, even if it contains boot, LVM, or VxVM
records. Note that DRD does not overwrite a disk associated
with an active LVM volume group or VxVM disk group,
regardless of the setting of the overwrite option. If a
previously created clone is mounted, use the drd umount
command to unmount it before attempting to create a new
clone on the disk.
-x preview={true|false} If true, run this command in preview mode only. That is,
complete the analysis phase and exit; no changes are
committed to disk. This option has the same effect as
specifying -p on the command line. The default is false.
This option is available on every DRD command except drd
runcmd.
-x reboot={true|false} If true, specifies the system is rebooted at the successful
completion of a drd activate operation. The default is
false.
-x verbosity=3 (Default.) Specifies the level of stdout/stderr verboseness. Replace 3
with the following values:
0 Only ERRORS and the starting/ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 (Default) Adds INFO messages (informational messages
preceded by the * character.)
4 Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
Options
-? Displays the usage message for a DRD command. This
option cannot be used with other options.
Extended options
The following extended options are available:
-x This is the alternate boot disk. The alternate boot disk must
alternate_bootdisk=block_device_special_file be specified as a block device special file.
-x This is the High Availability alternate boot disk. The High
HA_alternate_bootdisk=block_device_special_file Availability alternate boot disk must be specified as a block
device special file. High Availability alternate boot disk is
supported only on Itanium-based architecture and for
PA-RISC systems that support hardware partitions.
-x (Default is false) Controls whether a clone fails when an
ignore_unmounted_fs={true|false} unmounted file system in the root volume group is detected.
-x This is the path to the log file for this command. Each time
logfile=/var/opt/drd/drd.log DRD is run, this file will grow larger. This can be changed,
for example, to a month-specific location for easier
archiving, off-host backup, and rotation.
-x log_verbosity=4 (Default.) Specifies the level of log verboseness. Replace 4
with the following values:
0 Only ERRORS and the starting/ending BANNER
messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 Adds INFO messages (informational messages preceded
by the * character.)
4 (Default) Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
62 DRD commands
-x Specifies the target's block device special file of the mirror
mirror_disk=block_device_special_file disk. The block device special file should refer to an entire
disk, not to a partition. This option requires that LVM
mirroring is installed. The block device special file specified
is used to mirror each logical volume in the target of the
clone operation.
-x overwrite={true|false} Specifies whether drd clone should overwrite existing
information on the target disk. That is, it controls whether a
disk containing boot, LVM, or VxVM records can be
overwritten. The -x overwrite=false (default) prevents
a disk that contains boot, LVM, or VxVM records from being
overwritten. The -x overwrite=true allows a disk to
be overwritten, even if it contains boot, LVM, or VxVM
records. Note that DRD does not overwrite a disk associated
with an active LVM volume group or VxVM disk group,
regardless of the setting of the overwrite option. If a
previously created clone is mounted, use the drd umount
command to unmount it before attempting to create a new
clone on the disk.
-x preview={true|false} If true, run this command in preview mode only. That is,
complete the analysis phase and exit; no changes are
committed to disk. This option has the same effect as
specifying -p on the command line. The default is false.
This option is available on every DRD command except drd
runcmd.
-x reboot={true|false} If true, specifies the system is rebooted at the successful
completion of a drd activate operation. The default is
false.
-x verbosity=3 (Default.) Specifies the level of stdout/stderr verboseness. Replace 3
with the following values:
0 Only ERRORS and the starting/ending BANNER messages.
1 Adds WARNING messages.
2 Adds NOTE messages.
3 (Default) Adds INFO messages (informational messages
preceded by the * character.)
4 Adds verbose INFO messages.
5 Adds additional detailed INFO messages.
64 Glossary
System image The file systems and their contents that comprise an installation of HP-UX — residing on disk and
therefore persisting across reboots.
System recovery See Hot recovery
Unrehost DRD command that removes the system information file, EFI/HPUX/SYSINFO.TXT, from a disk
that was rehosted, optionally preserving a copy in a file system on the booted system.
VxVM Veritas Volume Manager
65
Index
drd activate command, 6, 31, 43, 47
A drd clone
active system image, 9, 15 analyze disk size, 13
disk availability, 12
B options, 46
bdf command drd clone command, 7, 9, 45
output, 22 output, 14
block device special file, 46 DRD command syntax, 43
block device special files, 10, 11 DRD commands, 43
drd deactivate
C extended options, 48
choosing target disk, 11 options, 47
clone drd deactivate command, 7
creation, 13 drd log file, 15
maintaining software, 17 drd mount
cloned image; extended options, 50
modifying, 6 options, 49
cloning operation drd mount command, 7, 21, 49
log, 46 output, 21
command return values, 15 DRD overview, 6
commands drd rehost
bdf, 22, 25 extended options, 52
DRD, 43 options, 52
drd activate, 6, 31, 43 drd rehost command, 7, 51
drd clone, 7, 9, 13, 45 drd runcmd
drd deactivate, 7, 47 extended options, 54
drd mount, 7, 21, 49, 51 options, 54
drd rehost, 7, 51 restrictions, 19
drd runcmd, 7, 53 drd runcmd command, 7, 53
drd status, 7, 55 drd runcmd error codes, 53
drd sync, 7, 57 drd status
drd umount, 7, 24, 59 extended options, 56
drd unrehost, 8, 61 options, 56
DRD-safe, 53 drd status command, 7, 55
ioscan, 10 drd sync
lvm, 12 extended options, 59
overview, 6 options, 58
setboot, 32, 43, 47 drd sync command, 7, 57
swapinfo, 12 operation, 27
vgexport, 45 overview, 26
vxdisk -o alldgs list, 12 preview option, 29
vxvm, 12 drd umount
contacting HP, 40 extended options, 60
creating a patch install file, 23 options, 60
drd umount command, 7, 24, 59
D output, 24
delayed booting, 31, 43 drd unrehost
documentation extended options, 62
changed information in this edition, 41 options, 61
downloading DRD, 8 drd unrehost command, 8, 61
DRD DRD-safe commands, 17, 53
related information, 41 drd_unsafe_patch_list file, 18
support, 40 Dynamic Root Disk (DRD), 6
drd activate
extended options, 44 E
options, 43 exclude_list, 59
66 Index
extended options drd unrehost, 61
drd activate, 44
drd clone, 46 P
drd deactivate, 48 patches
drd mount, 50 firmware, 19
drd rehost, 52 managing, 18
drd runcmd, 54 special installation instructions, 19
drd status, 56 patching
drd sync, 59 creating a patch install file, 23
drd umount, 60 physical volume, 12
drd unrehost, 62 preview mode, 43, 46, 48, 50, 52, 58, 60, 62
Extensible Firmware Interface (EFI) partitions, 45
R
F raw files, 10, 11
file systems, 22 reboot, 31
firmware patches, 19 rehost, 36
rehost a mirrored image, 37
G root file system, 9
guide root file system mount point, 49
locating, 41 root volume group, 45
patching, 9
I
idisk partition, 10, 11 S
inactive system file system special installation instructions for patches, 19
unmounting, 59 stable storage
inactive system image, 9, 15 modifying, 31
accessing, 21 support, 40
activating, 31, 43 supported LVM versions, 39
administrative tasks, 22 symlinked files
modifying, 21 editing, 24
mount point, 22 synchronize inactive clone, 26
mounting, 53 system image
synchronize, 26 active, 9
undoing activation, 33 cloning, 6
unmounting, 24 inactive, 9
installing DRD, 8
ioscan command T
HP-UX 11i v2, 9 target disk, 9, 11, 12, 15
HP-UX 11i v3, 10 availability, 12
choosing, 11
L overwriting, 13
locating system disks, 9 size, 12, 13
locating this guide, 41 terminology, 6
log verbosity, 44, 47, 48, 50, 53, 54, 56, 59, 60, 62 troubleshooting, 39
logs typographic conventions, 41
viewing, 20
LVM legacy to agile naming, 11 U
LVM supported versions, 39 unrehost, 38
O V
options verbosity, 45, 49, 51, 53, 55, 57, 59, 61, 63
drd clone, 43, 46 volume group, 45
drd deactivate, 47
drd mount, 49 W
drd rehost, 52 warning message
drd runcmd, 54 checking, 23
drd status, 56
drd sync, 58
drd umount, 60
67