Dynamic Root Disk: Quick Start & Best Practices

25
The drd log (/var/opt/drd/drd.log) contains entries that pertain only to the command that
was run, including the return code and/or error messages. This log does not contain any log
messages from the sw* command itself.
The sw* log file that results from a drd runcmd operation is always on the inactive system image
(that is, the clone) and is not appended to the original logs on the booted system (that is, the active
system image).
Logs can be viewed on the inactive system image by executing drd runcmd view. For example, to
view the swagent log on the clone, execute the following command:
# /opt/drd/bin/drd runcmd view /var/adm/sw/swagent.log
The following example compares operations and logs on the booted system and the inactive system
image.
To swverify the booted system and view the swverify log, execute the following commands:
# /usr/sbin/swverify \*
# /usr/bin/view /var/adm/sw/swverify.log
To swverify the inactive system image and view the swverify log, execute the following
commands:
# /opt/drd/bin/drd runcmd swverify \*
# /opt/drd/bin/drd runcmd view /var/adm/sw/swverify.log
Note that drd runcmd view /var/opt/drd/drd.log does not provide a view of drd
runcmd commands that were run recently on the booted system, so it is not particularly useful.
You can view logs directly by mounting the inactive system image with the drd mount command.
The log paths are relative to the mount point. The mount point of the root file system of an inactive
image created by the drd clone command is: /var/opt/drd/mnts/sysimage_001. After
DRD is used to create, activate, and boot a clone, the mount point of the original image (which is now
inactive) is: /var/opt/drd/mnts/sysimage_000. The swagent log resides at
/var/opt/drd/mnts/sysimage_001/var/adm/sw/swagent.log or
/var/opt/drd/mnts/sysimage_000/var/adm/sw/swagent.log.
Note:
The drd runcmd view provides a mechanism for browsing logs, but not for annotating them. If
you want to modify log files, you need to mount the inactive system image and edit the logs using
their full pathnames on the booted system. For example, to annotate the swagent log on the
inactive system image, you would use the following commands:
# /opt/drd/bin/drd mount
# /usr/bin/echo “Swagent log after quality pack application using drd
runcmd. June 6, 2007” >> \
/var/opt/drd/mnts/sysimage_001/var/adm/sw/swagent.log