Dynamic Root Disk A.3.13* Administrator's Guide HP-UX 11i v2, HP-UX 11i v3 (766142-001, March 2014)
# /opt/drd/bin/drd activate
If you are not certain which system image is set to become the active system image when the system
boots, execute the following command:
# /usr/sbin/setboot -v
For additional information, see the setboot(1M) manpage.
In the following example on an HP-UX 11i v2 system, a system administrator uses /stand/
bootconf, setboot, and ioscan to determine that, currently, the primary boot disk (the one
that will be booted on the next reboot) is the same as the currently booted disk. The system
administrator is ready to boot to the clone, but wants to set the alternate boot disk to the current
boot disk. (In the event of any problem booting the clone, the system will then fall back to booting
the alternate, current disk.)
The system administrator issues the drd activate command shown below, then uses setboot
to verify the settings.
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
32 Activating the inactive system image