Navigation Bar

ShadowImage from HDS


ShadowImage for z/OS
ShadowImage for Open Systems

ShadowImage for z/OS

The HDS terminology for a disk is a Logical Volume Image (LVI). ShadowImage volumes are called S-VOLs and T-VOLs, for Source and Target. It is possible to take three T-VOL copies from each S-VOL, though each T-VOL can be in a relationship with only one S-VOL. The T-VOLs must be located in the same subsystem as the S-VOL, and up to a maximum of 8,192 pairs are supported.

When the pair establish command is issued, data is physically copied from the S-VOL to the T-VOL. You cannot access the T-VOL, even after the copy is complete, until you issue a "Split" command. Once the Split command is issued, the T-VOL can be brought on-line to a different LPAR, and read or updated. The point-in-time of the copy is at the moment the split command is issued. ShadowImage updates the T-VOLs asynchronously, so the data on a T-VOL may not be identical with its S-VOL, even if the pair are in duplex status. If you want to synchronize a pair and then access the T-VOL as soon as possible, vary the S-VOL offline and then split the pair before using the T-VOL.
The 9900 subsystem keeps a record of changed tracks on both the S-VOL and the T-VOL, so the T-VOL can be re-synchronised with the S-VOL later, by just copying over changed tracks.

The main states a ShadowImage pair can have are

  • Simplex - The disks are not in a pair relationship
  • Pending - An initial copy is in progress (Initial Copy and other commands are explained later)
  • Duplex - The initial copy is complete
  • Split - The T-VOL is split from the S-VOL, and is a consistent copy. The 9900V continues to record updates for later synchronisation
  • SP-Pending - Steady Split in progress, the status will change to Split when updates to the T-VOL are complete.
  • V-split - Quick Split in progress, the status will change to Split when updates to the T-VOL are complete.
  • Suspend - Stop recording changed track information.
  • Resynch - Re-synchronisation operation in progress. For a Quick Resynch, this is just the time to copy over the changed track bitmap.
  • Resynch-R - Reverse re-synchronisation operation in progress. For a Quick Restore, this is just the time to copy over the changed track bitmap.

ShadowImage Operations

You perform ShadowImage operations with the Remote Console-Storage Navigator, which is a GUI based tool, or with PPRC commands. If you use the GUI, you need to put intended T-VOLs into Reserved status. You do this from the Set Reserve Attribute Panel. If you use PPRC commands, you do not need to reserve the volumes, but they must be varied offline. The following operations are available with the S/390 variant of ShadowImage

Add Pair

This command defines a new relationship between an S-VOL and up to three T-VOLs. Both volumes must be in simplex state. The command also copies all data on the S-VOL to the associated T-VOL(s). The Add Pair command should be transparent to any other process accessing the S-VOL, all read and write I/O operations proceed as normal. Any writes sent to the S-VOL while the initial copy is happening are recorded, and then replicated to the T-VOL after the initial copy is complete.

Once the initial copy is complete, and while the disks are still in Duplex status, The 9900v will periodically update the T-VOL(s) with changed data from the S-VOL. This is not a synchronous operation.

You use the PPRC command CESTPAIR .. MODE(COPY) to add a shadowimage pair.

Split Pair

When the split pair command is issued to a duplexed pair, the T-VOL becomes a point-in-time copy of the S-VOL. If there are any T-VOL write I/Os outstanding at that time, they are processed. The S-VOL, of course, continues to work as normal, and is not affected by the split command. The T-VOL can now be mounted and brought on-line to a different LPAR, and read or updated as required. While the pair is split, write I/Os made to either the S-VOL or the T-VOL after the Split command are recorded in the track-map for future resynchronisation. Its possible to do the Add and Split commands in a single step.

There are two variants of split, Quick Split and Steady Split. With Quick Split, the T-VOL is available immediately, and pending writes happen in the background. With Steady Split, pending writes must complete before the T-VOL can be used.

The CSUSPEND PPRC command allow you to split volume pairs.

Resynchronize Pair

There are four different variations of the Resynchronise pair operation, Normal, Quick, Reverse and Quick Restore. You can perform normal/quick resync operations on split and suspended pairs, but reverse resync operations can only be performed on split pairs. The four operations in detail are -

  • A Normal resynch command makes the T-VOL a copy of the S-VOL again. The T-VOL is inaccessible to all hosts, but the S-VOL is not affected.
    If a suspended pair is re-synchronised, all the data is copied from the S-VOL to the T-VOL. If a split pair is re-synchronised, the 9900V copies all data changed at the S-VOL since the split command was issued from the S-VOL to the T-VOL and also copies over any data changed on the T-VOL, with the original data from the S-VOL.

  • A Quick resync operation just copies over the differential data map from the S-VOL to the T-VOL. The actual data is copied over later as an update copy. The T-VOL cannot be accessed while the Quick Resynch is in progress, but the S-VOL is not affected.

  • A Reverse resync operation synchronizes the S-VOL with the T-VOL. While the reverse-resynch operation is in progress, neither the T-VOL or the S-VOL are accessible, but the S-VOL is available as soon as the reverse resync operation is complete, that is, as soon as all the changed data is copied over. This command applies to split pairs only, not suspended pairs.

  • A Quick Restore just merges and copies over the changed tracks bitmap from the T-VOL to the S-VOL. The data is actually copied over later. A quick restore also swaps over the RAID levels between the two disks if they were different.

You use the PPRC command CESTPAIR .. MODE(RESYNCH) for this.

Suspend Pair

The Suspend Pair command stops the 9900V from recording changed tracks in memory. This means that if the pair is re-synchronised again, all the data must be copied from the S-VOL to the T-VOL. The 9900V will automatically suspend a pair if it has problems with the mirroring. The S-VOL is not affected if a pair is suspended. Suspend Pair is a ShadowImage concept, and so there is no equivalent PPRC command. The CSUSPEND command is the equivalent of a ShadowImage split.

Delete Pair

The Delete Pair command sets the S-VOL and T-VOL status both the simplex, and discards any pending updates to the T-VOL. This means that the T-VOL may not be in the status you require, so its best to do a Split before a Delete Pair, to get the T-VOL consistent. The T-VOL is not available for write operations until the reserve attribute is reset.

You use the PPRC command CDELPAIR to delete a shadowimage pair.

HDS support the full IBM FlashCopy command set with their FlashCopy Extension. See the Flashcopy page for details of the FlashCopy commands. With the ShadowImage FlashCopy feature you can take up to six copies of the original ShadowImage source volume.

HDS recently released Hitachi Dataset Replication Software, which enhances Shadowimage to allow replication at dataset level.

back to top


Open systems ShadowImage

You control Open Systems volume copy using ShadowImage Command Control Interface (CCI) commands embedded in scripts. The exact format of the script will depend on the operating system. CCI commands need a configuration definition file, which contains lists of hosts and the volumes pairs or groups of volumes associated with each host. An example of part of a configuration file to define two volumes in a group sqldb is

HORCM_DEV
#dev_group dev_name port# TargetID LU# MU#
 sqldb     sqldev1  CL1-A   1       1   0
 sqldb     sqldev2  CL1-A   1       2   0

The following CCI commands are available

  • Paircreate: You can either create single volume pairs or groups of pairs. You can specify the copy direction by using the -vl or -vr parameters; -vl means the server that issues the command has the primary volume, -vr means the remote server has the primary volume. Another parameter, -split, means split the pair as soon as the copy completes. This lets you create a point-in-time copy with a single command. An example to create all pairs in volume group sqldb is
     paircreate -g sqldb -vl
    
  • Pairsplit: This command stops the background updates to the secondary volume of a pair. You can either suspend the pair, or delete it and place both disks in simplex status. The following example puts all volumes in simplex status, and allows read-write access to the secondary.
     pairsplit -g sqldb -rw -s
    
  • Pairresynch: Take a suspended pair, and make the secondary volume an image of the primary again, by copying over the updates made to the primary, and overwriting any updates made to the secondary disk with the original data from the primary disk. If you chose the -restore option, then the primary disk is made an image of the secondary. In this case, the primary disk is inaccessable until the resynch is complete. There are lots of different options for the pairresynch command. In the example below, the primary volumes are being re-synchronised from the secondaries.
     pairresync -g sqldb -restore
    
  • Pairevtwait: This pauses the script while it waits for a long running command to complete, then checks the pair status. The example below queries all volumes in the sqldb group, and waits for 10 seconds, or until the status of all volumes is pair (duplex).
     pairevtwait -g sqldb -s pair -t 10
    
  • Pairdisplay: You use this one to display the pair status to see if it is what you expected it to be. An example is
     pairdisplay -g sqldb

back to top


Copyright © Lascon Storage Ltd. 2000 to present date. By entering and using this site, you accept the conditions and limitations of use

 

 

 

Advertising banner for Lasconet