If you do not want to make the inactive system image the active
system image right away, you can configure the drd activate command so that it does not reboot the system. Because -x
reboot=false is the default, the command is simply:
# /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:
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 5-1 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 booted at the next restart of the system. Executing
the drd activate command activates the inactive
system image. Executing the drd deactivate command
activates the booted image. For more details about the use of drd activate and drd deactivate, see
the Using Dynamic Root Disk Activate and Deactivate Commands white paper, at http://docs.hp.com/en/oshpux11iv2.html#Dynamic%20Root%20Disk.