HP Dynamic Root Disk (DRD) manual Viewing logs

Page 20

Files referenced in the command line must both:

Reside in the inactive 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-uxcommand -foption.

To use update-uxwith 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.

3.6 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.

20 Updating and maintaining software on the clone

Image 20
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Troubleshooting DRD Support and other resources DRD commandsRehosting and unrehosting systems Glossary IndexList of Figures List of Examples Commands overview About Dynamic Root DiskConceptual overview TerminologyDownloading and installing Dynamic Root Disk Cloning the active system image Active system imageLocating disks Locating disks on HP-UX 11i v2 systemsLocating disks on HP-UX 11i v3 Integrity systems # /usr/sbin/ioscan -fnkC disk# /usr/sbin/ioscan -m dsf Choosing a target disk Using other utilities to determine disk availabilityUsing DRD for limited disk availability checks Using drd clone to analyze disk size Creating the cloneCloning the active system image Example 2-7 The drd clone command output Success ErrorExample 2-8 The drd clone command output for SAN disk Adding or removing a 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 Accessing the inactive system image Mounting the inactive system imagePerforming administrative tasks on the inactive system image Enter the patches into a file such as Compare vxconfigbackup with the clone copy Unmounting the inactive system imageUnmounting the inactive system image Page Overview Quick start-basic synchronizationTrimming 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 Activating the inactive system image Preparing the inactive system image to activate later# /opt/drd/bin/drd activate # /usr/bin/more /stand/bootconf l /dev/dsk/c2t0d0s2 Undoing activation of the inactive system imageActivating the inactive system image Undoing activation of the inactive system image Page Rehosting examples Rehosting and unrehosting systemsRehosting overview Rehosting a mirrored image Example 7-1 Provisioning a new systemUnrehosting overview # rm /var/opt/drd/registry/registry.xmlPage Troubleshooting DRD Page Support and other resources Contacting HPRelated information Typographic conventions New and changed information in this editionLocating this guide Find1 Page Drd activate command DRD commandsDRD command syntax HAalternatebootdisk=blockdevicespecialfile Ignoreunmountedfs=truefalseLogfile=/var/opt/drd/drd.log Logverbosity=4Drd clone command Reboot=truefalseVerbosity=3 Default Copyautofile optionTtargetdevicefile Copyautofile=truefalseblockdevicespecialfileEnforcedsa=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 Drd sync command Usr/sbin/swlist -l file, orDrd umount command Excludelist=Alternatebootdisk=blockdevicespecialfile Drd unrehost command Fsysteminformationfile Mirrordisk=blockdevicespecialfile Page Booted system GlossarySystem image Index Idisk partition, 10, 11 inactive system file system