skip book previous and next navigation links
go up to top of book: HP Volume Shadowing for OpenVMSHP Volume Shadowing for OpenVMS
go to beginning of chapter: Ensuring Shadow Set ConsistencyEnsuring Shadow Set Consistency
go to previous page: Copy OperationsCopy Operations
go to next page: Controlling HSC Assisted Copy and Minimerge OperationsControlling HSC Assisted Copy and Minimerge Operations
end of book navigation links

Merge Operations   



The purpose of either a full merge or a minimerge operationis to compare data on shadow set members and to ensure that allof them contain identical data on every logical block (each blockis identified by its logical block number [LBN]). A full merge orminimerge operation is initiated if either of the following eventsoccurs:

The merge operation is managed by one of the OpenVMS systemsthat has the shadow set mounted. The members of a shadow set arephysically compared to each other to ensure that they contain thesame data. This is done by performing a block-by-block comparisonof the entire volume. As the merge proceeds, any blocks that aredifferent are made the same -- either both old or new ---by means of a copy operation. Because the shadowing software doesnot know which member contains newer data, any full member can be the source memberof the merge operation.

A full merge operation can be a very lengthy procedure. Duringthe operation, application I/O continues but at a slower rate.

A minimerge operation can be significantly faster. By usinginformation about write operations that were logged in volatilecontroller storage, the minimerge is able to merge only those areasof the shadow set where write activity was known to have occurred.This avoids the need for the entire volume scan that is requiredby full merge operations, thus reducing consumption of system I/Oresources.

The shadowing software always selects one member as a logicalmaster for any merge operation, across the OpenVMS Cluster.Any difference in data is resolved by a propagation of the informationfrom the merge master to all the other members.

The system responsible for doing the merge operation on agiven shadow set, updates the merge fence for thisshadow set after a range of LBNs is reconciled. This fence "proceeds" acrossthe disk and separates the merged and unmerged portions of the shadowset.

Application read I/O requests to the merged side of the fencecan be satisfied by any source member of the shadow set. Applicationread I/O requests to the unmerged side of the fence are also satisfiedby any source member of the shadow set; however, any potential datadifferences---discovered by doing a data compare operation---arecorrected on all members of the shadow set before returningthe data to the user or application that requested it.

This method of dynamic correction of data inconsistenciesduring read requests allows a shadow set member to fail at any pointduring the merge operation without impacting data availability.

Volume Shadowing for OpenVMS supports both assisted and unassistedmerge operations in the same cluster. Whenever you create a shadowset, add members to an existing shadow set, or boot a system, the shadowingsoftware reevaluates each device in the changed configuration todetermine whether it is capable of supporting the merge assist.

Unassisted Merge Operations   

For systems runningsoftware earlier than OpenVMS Version 5.5-2, the mergeoperation is performed by the system and is known as an unassisted mergeoperation.

To ensure minimal impact on user I/O requests, volume shadowingimplements a mechanism that causes the merge operation to give priorityto user and application I/O requests.

The shadow server process performs merge operations as a backgroundprocess, ensuring that when failures occur, they minimally impactuser I/O. A side effect of this is that unassisted merge operationscan often take an extended period of time to complete, dependingon user I/O rates. Also, if another node fails before a merge completes,the current merge is abandoned and a new one is initiated from thebeginning.

Note that data availability and integrity are fully preservedduring merge operations regardless of their duration. All shadowset members contain equally valid data.

Assisted Merge Operations   

Starting with OpenVMSVersion 5.5-2, the merge operation includes enhancementsfor shadow set members that are configured on controllers that implement assisted mergecapabilities. The assisted merge operation is also referred to asa minimerge. The minimerge feature significantlyreduces the amount of time needed to perform merge operations. Usually,the minimerge completes in a few minutes. HSC and HSJ controllers supportminimerge.

By using information about write operations that were loggedin controller memory, the minimerge is able to merge only thoseareas of the shadow set where write activity was known to have beenin progress. This avoids the need for the total read and comparescans required by unassisted merge operations, thus reducing consumptionof system I/O resources.

Controller-based write logs contain information about exactlywhich LBNs in the shadow set had write I/O requests outstanding(from a failed node). The node that performs the assisted mergeoperation uses the write logs to merge those LBNs that may be inconsistentacross the shadow set. No controller-based write logs are maintainedfor a one member shadow set. No controller-based write logs aremaintained if only one OpenVMS system has the shadow set mounted.


NoteThe shadowing software does not automatically enablea minimerge on a system disk because of the requirement to consolidatecrash dump files on a nonsystem disk.

Dump off system disk (DOSD) is supported on both OpenVMS VAXand OpenVMS Alpha, starting with OpenVMS VAX Version 6.2 and OpenVMSAlpha Version 7.1. If DOSD is enabled, the system disk can be minimerged.


The minimerge operation is enabled on nodes running OpenVMSVersion 5.5-2 or later. Volume shadowing automaticallyenables the minimerge if the controllers involved in accessing thephysical members of the shadow set support it. See the HP VolumeShadowing for OpenVMS Software Product Description (SPD 27.29.xx )for a list of supported controllers. Note that minimerge operationsare possible even when shadow set members are connected to differentcontrollers. This is because write log entries are maintained ona per controller basis for each shadow set member.

Volume Shadowing forOpenVMS automatically disables minimerges if:

The following transient conditions can also cause a minimergeoperation to be disabled:


go to previous page: Copy OperationsCopy Operations
go to next page: Controlling HSC Assisted Copy and Minimerge OperationsControlling HSC Assisted Copy and Minimerge Operations