HP Dynamic Root Disk (DRD) manual Undoing activation of the inactive system image

Page 35

NOTE: The following example does not correspond to any of the figures in this guide. Example 6-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://www.hp.com/go/drd-docs.

6.2 Undoing activation of the inactive system image

If you run drd activate and then decide not to boot the inactive image on the next reboot, use the drd deactivate command to set the primary boot disk to the currently booted disk. For further information on the drd deactivate command, see The drd deactivate command and the drd-deactivate(1M) manpage.

6.2 Undoing activation of the inactive system image 35

Image 35
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Glossary Index Troubleshooting DRD Support and other resourcesDRD commands Rehosting and unrehosting systemsList of Figures List of Examples Terminology Commands overviewAbout Dynamic Root Disk Conceptual overviewDownloading and installing Dynamic Root Disk Locating disks on HP-UX 11i v2 systems Cloning the active system imageActive system image Locating disks# /usr/sbin/ioscan -fnkC disk Locating disks on HP-UX 11i v3 Integrity systems# /usr/sbin/ioscan -m dsf Choosing a target disk Using other utilities to determine disk availabilityUsing DRD for limited disk availability checks 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 diskUpdating and maintaining software on the clone DRD-Safe commands and PackagesSwinstall Swremove Swlist Swmodify Swverify Swjob DRD-Safe patches and the drdunsafepatchlist file Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm jobUpdating and managing patches with drd runcmd Special considerations for firmware patches Patches with special installation instructionsUpdating and managing products with drd runcmd 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 OverviewTrimming the list of files to be synchronized Drd sync commandDetermining the list of files in the booted volume group 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 examples Rehosting and unrehosting systemsRehosting overview 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 resourcesRelated information Typographic conventions New and changed information in this editionLocating this guide Find1 Page Drd activate command DRD commandsDRD command syntax Logverbosity=4 HAalternatebootdisk=blockdevicespecialfileIgnoreunmountedfs=truefalse Logfile=/var/opt/drd/drd.logCopyautofile option Drd clone commandReboot=truefalse Verbosity=3 DefaultCopyautofile=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