Example
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:
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
Example
======= 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