![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
Volume Shadowing for OpenVMS
6.6 Examples of Copy and Merge OperationsExample 6-1 shows what happens when you create a shadow set by mounting two disk volumes that have never been a part of a shadow set. Because neither disk volume has been a part of a shadow set, the Mount utility (MOUNT) assumes that the first disk named in the MOUNT command is the source member. When the Mount utility checks the volume labels on the disks, it discovers that they are different from each other, and the utility automatically performs a copy operation. In this example, DSA0 is the virtual unit name, $1$DUA8 and $1$DUA89 are the names of the disk volumes, and SHADOWDISK is the volume label.
The SHOW DEVICE display in Example 6-1 shows the shadow set during the copy operation (transient state). Because the SCB information on $1$DUA8 and $1$DUA89 indicates that these devices have never been part of a shadow set, the shadowing software uses the first device named in the command line ($1$DUA8) as the source of the copy operation. The device status "ShadowSetMember" indicates that the $1$DUA8 device is a source shadow set member, and "ShadowCopying" indicates that the physical device $11$DUA89 is the target of a copy operation. Suppose you want to add a new member to an existing shadow set, and the device you add is a previous member of this same shadow set. In this case, the volume label of the new member matches that of the current shadow set members, but the new member's MOUNT generation number is out of date compared with those of the current members. Thus, the Mount utility automatically performs a copy operation on that member. Example 6-2 shows the format of the MOUNT command and MOUNT status messages returned when you add the $3$DIA12 device to the shadow set represented by the DSA9999 virtual unit. Notice that you do not need to list the member units currently in the shadow set on the MOUNT command line.
Example 6-3 shows what happens when a three-member shadow set is dissolved on one node and then is immediately remounted on another node. When the Mount utility checks the volume information on each member, it finds that the volume information is consistent across the shadow set. Thus, a copy operation is not necessary when the shadow set is mounted. In Example 6-3, DSA10 is the virtual unit and $3$DUA10, $3$DUA11, and $3$DUA12 are the member volumes. The first part of the example displays the output from a SHOW DEVICE command, which shows that the shadow set is mounted and in a steady state. Then the user dismounts the DSA10 shadow set and immediately remounts it.
Example 6-4 shows the output from the SHOW DEVICE command at the time of the merge operation. When a system fails, the volume information is left in a state that shows that each shadow set member was not properly dismounted. If you issue the MOUNT command again after the node reboots, the shadowing software automatically performs a merge operation on the shadow set.
Chapter 7
|
For detailed information about the conditions under which this form of backup is supported, see Section 7.12. |
The minicopy operation can be used at the discretion of the system manager and at a time chosen by the system manager.
Because minicopy can significantly reduce the time it takes to return a member to a shadow set, it gives system managers greater flexibility in scheduling the removal and return of a shadow set member, and it improves availability.
The time needed to perform a minicopy is proportional to the amount of change that occurred to a shadow set in the disk's absence. A shorter copy time gives sites more flexibility in managing backups.
Table 7-1 shows the results from one series of tests, comparing full copy and minicopy times for shadow sets over a spectrum of write activity. The results presented in Table 7-1 and Table 7-2 should be used only as an indication of the performance gain you may experience using minicopy.
Percentage of Bits Set | Time for Full Copy (seconds) | Time for Minicopy (seconds) | Minicopy Time as Percentage of Full Copy Time |
---|---|---|---|
100% | 4196.09 | 3540.21 | 84.4% |
90% | 3881.95 | 3175.92 | 81.8% |
80% | 3480.50 | 2830.47 | 81.3% |
75% | 3290.67 | 2614.87 | 79.5% |
70% | 3194.05 | 2414.03 | 75.6% |
60% | 2809.06 | 2196.60 | 78.2% |
50% | 2448.39 | 1759.67 | 71.9% |
40% | 2076.52 | 1443.44 | 69.5% |
30% | 1691.51 | 1039.90 | 61.5% |
25% | 1545.94 | 775.35 | 50.2% |
20% | 1401.21 | 682.67 | 48.7% |
15% | 1198.80 | 554.06 | 46.2% |
10% | 1044.33 | 345.78 | 33.1% |
5% | 905.88 | 196.32 | 21.7% |
2% | 712.77 | 82.79 | 11.6% |
1% | 695.83 | 44.90 | 6.5% |
Table 7-2 shows the results from another series of tests, comparing performance times of a hardware assisted copy (using MSCP disk copy data (DCD) commands on an HSJ controller) with a minicopy over a spectrum of write activity.
Percentage of Bits Set | DCD Copy Time (seconds) | Minicopy Time (seconds) | Minicopy Time as Percentage of DCD Copy Time |
---|---|---|---|
100% | 1192.18 | 1181.61 | 99.1% |
90% | 1192.18 | 1097.03 | 92.0% |
80% | 1192.18 | 979.06 | 82.1% |
70% | 1192.18 | 862.66 | 72.4% |
60% | 1192.18 | 724.61 | 60.8% |
50% | 1192.18 | 627.24 | 52.6% |
40% | 1192.18 | 490.70 | 41.2% |
30% | 1192.18 | 384.45 | 32.3% |
20% | 1192.18 | 251.53 | 21.1% |
10% | 1192.18 | 128.11 | 10.7% |
5% | 1192.18 | 71.00 | 6.0% |
0% | 1192.18 | 8.32 | 0.7% |
To use the minicopy operation:
$ MOUNT DSA42/SHAD=$4$DUA42 volume-label |
$ MOUNT DSA42/SHAD=$4$DUA42 volume-label/POLICY=MINICOPY |
For a detailed description of how to use /POLICY=MINICOPY[=OPTIONAL]
with the MOUNT and DISMOUNT commands, see Section 7.6 and
Section 7.7.
7.5 Minicopy Restrictions
The following restrictions apply to the use of minicopy:
%DISM-F-SRCMEM, only source member of shadow set cannot be dismounted |
Previous | Next | Contents | Index |