HP Dynamic Root Disk (DRD) manual Accessing the inactive system image

Page 21

4 Accessing the inactive system image

This chapter describes how to mount and unmount the inactive system image.

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

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.

NOTE: You must be logged in as root to run any DRD command.

4.1 Mounting the inactive system image

For details of the drd mount command, including available options and extended options, see The drd mount command.

To mount the inactive system image, execute the drd mount command:

# /opt/drd/bin/drd mount

The command locates the inactive system image and mounts it.

The output of this command is similar to Example 4-1.

4.1 Mounting the inactive system image 21

Image 21
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 other utilities to determine disk availability Using DRD for limited disk availability checksChoosing 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 diskDRD-Safe commands and Packages Swinstall Swremove Swlist Swmodify Swverify SwjobUpdating and maintaining software on the clone Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm job Updating and managing patches with drd runcmdDRD-Safe patches and the drdunsafepatchlist file Patches with special installation instructions Updating and managing products with drd runcmdSpecial 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 OverviewDrd sync command Determining the list of files in the booted volume groupTrimming 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 and unrehosting systems Rehosting overviewRehosting 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 resourcesNew and changed information in this edition Locating this guideRelated information Typographic conventions Find1 Page DRD commands DRD command syntaxDrd 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