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

Page 24

Example 4-5 Editing symlinked files

Task: You changed the value of NUM_BK in /opt/VRTS/bin/vxconfigbackup from 5 to 10 by editing the file. You want the change applied to the clone as well.

Execute the following commands:

1.Mount the inactive system image:

#/opt/drd/bin/drd mount

2.Compare vxconfigbackup with the clone copy:

#/usr/bin/diff /opt/VRTS/bin/vxconfigbackup \ /var/opt/drd/mnts/sysimage_000/opt/VRTS/bin/vxconfigbackup

Surprisingly, the files are equal! What happened?

A long listing shows that the files are symlinks:

#/usr/bin/ll /opt/VRTS/bin/vxconfigbackup \ /var/opt/drd/mnts/sysimage_000/opt/VRTS/bin/vxconfigbackup

The listing shows:

lrwxr-xr-x l bin bin 32 Apr 3 17:34 /opt/VRTS/bin/vxconfigbackup -> /usr/lib/vxvm/bin/vxconfigbackup lrwxr-xr-x 1 bin bin 32 Nov 16 12:45 /var/opt/drd/mnts/sysimage_000/opt/VRTS.bin/vxconfigbackup

-> /usr/lib/vxvm/bin/vxconfigbackup

When the clone is booted, the target of the symlink on the clone resides on the clone. However, when the clone is mounted under the booted system, the target of the symlink resides on the booted system.

To change the data on the clone, edit the file that will be the target of the symlink when the clone is booted:

#/usr/bin/vi /var/opt/drd/mnts/sysimage_001/usr/lib/vxvm/vxconfigbackup and change the value of NUM_BK to 10.

CAUTION: Attempting to edit a path on the clone that is an absolute symlink results in changes on the booted system!

4.3 Unmounting the inactive system image

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

To unmount the inactive system image, the command is:

# /opt/drd/bin/drd umount

The output is similar to Example 4-7.

Example 4-6 The drd umount command output

======= 12/08/06 22:09:22 MST BEGIN Unmount Inactive System Image (user=root) (jobid=dlkma1)

*Reading Current System Information

*Locating Inactive System Image

*Unmounting Inactive System Image

======= 12/08/06 22:09:48 MST END Unmount Inactive System Image succeeded. (user=root) (jobid=dlkma1)

The drd umount command:

24 Accessing the inactive system image

Image 24
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 Using other utilities to determine disk availability Using DRD for limited disk availability checksChoosing a target disk 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 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 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 synchronizationDrd 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 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 and unrehosting systems Rehosting overviewRehosting examples 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 HPNew and changed information in this edition Locating this guideRelated information Typographic conventions Find1 Page DRD commands DRD command syntaxDrd activate command 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