emc vmax3 local replication

Upload: comp2web

Post on 04-Feb-2018

239 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/21/2019 EMC VMAX3 Local Replication

    1/26

    This Technical Note explains the EMC VMAX3 Local Replication, including TimeFinderSnapVX and TimeFinder Emulation Support.

    Executive Summary.................................................................................. 2

    TimeFinder SnapVX .................................................................................. 2

    Implementing TimeFinder SnapVX ............................................................ 14

    Emulation Support for TimeFinder Mirror, Clone, and VP Snap ................... 19

    Conclusion .............................................................................................. 20

    References .............................................................................................. 21

    Appendices ............................................................................................. 22

    EMC VMAX3

    TM

    Local Replication

    TimeFinder SnapVX and TimeFinder EmulationH13697A03February 2015

    TECHNICAL NOTES

  • 7/21/2019 EMC VMAX3 Local Replication

    2/26

    Executive Summary

    Executive Summary

    EMC TimeFinder software delivers point-in-time copies of volumes that can be usedfor backups, decision support, data warehouse refreshes, or any other process thatrequires parallel access to production data.

    Previous VMAX families offer several different TimeFinder offerings, each with theirown characteristics and ideal use cases. These offerings also have severalsimilarities, the main one being that they each require a target volume to retainsnapshot or clone data.

    TimeFinder in HYPERMAX OS 5977 for VMAX3 introduces TimeFinder SnapVX whichcombines the best aspects of the previous TimeFinder offerings, adds some newease-of-use features, and increases scalability.

    SnapVX provides very low impact snapshots and clones for VMAX LUNs. SnapVXsupports up to 256 snapshots per source volume, which are tracked as versions withless overhead and simple relationship tracking. Users can assign names to identify

    their snapshots, and they have the option of setting automatic expiration dates oneach snapshot.

    SnapVX provides the ability to manage consistent point-in-time copies for storagegroups with a single operation. Up to 1024 target volumes can be linked per sourcevolume, providing read/write access as pointers or full-copy clones.

    TimeFinder in HYPERMAX OS also provides compatibility modes for users who rely ontheir TimeFinder Mirror, Clone, or VP Snap command scripts. This will allow users touse their existing scripts while learning how to take advantage of the new features ofSnapVX.

    This document describes TimeFinder features for business continuance and

    implementation guidelines, including restrictions and limitations for this product.The features discussed are valid for HYPERMAX OS 5977 on VMAX3 Series arrays.

    Audience

    This technical note is intended for storage administrators, database administrators,and technologists who have an interest in understanding the concepts surroundingLocal Replication in VMAX3 Family storage arrays.

    TimeFinder SnapVX

    Local replication with SnapVX starts out as efficient as possible by creating asnapshot, a pointer based structure that preserves a point in time view of a sourcevolume. Snapshots do not require target volumes, share back-end allocations withthe source volume and other snapshots of the source volume, and only consumeadditional space when the source volume is changed. A single source volume canhave up to 256 snapshots.

    Each snapshot is assigned a user-defined name and can optionally be assigned anexpiration date, both of which can be modified later. New management interfaces

    2 EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    3/26

    TimeFinder SnapVX

    provide the user with the ability to take a snapshot of an entire Storage Group with asingle command.

    A point-in-time snapshot can be accessed by linkingit to a host accessible volumereferred to as a target. The target volumes are standard VMAX3 Thin LUNs. Up to1024 target volumes can be linked to the snapshot(s) of a single source volume. Thislimit can be achieved either by linking all 1024 target volumes to the same snapshot

    from the source volume, or by linking multiple target volumes to multiple snapshotsfrom the same source volume. However, a target volume may only be linked to asingle snapshot at a time.

    By default, targets are linked in a nocopy mode, but can be linked in a copy mode tocreate full-copy clones. Snapshots can be cascaded from linked targets, and targetscan be linked to snapshots of linked targets. There is no limit to the levels ofcascading and the cascade can be broken at any point, with limitations that arediscussed later.

    Terminology

    The following are explanations of terms that are commonly used

    throughout the paper:

    Storage Resource Pool SRP): A collection of data pools whichprovide physical storage for thin devices. SRPs are managed byFully Automated Storage Tiering (FAST).

    Source Volume: A VMAX3 LUN that has SnapVX snapshots from it,either with or without linked targets.

    Snapshot: A preserved point-in-time image of a source volume. Asnapshot uses pointers in cache to indicate which version of atrack is applicable to the specific point-in-time; either a track that

    resides on the source volume, or a snapshot delta.Snapshot Delta: A point-in-time version of a source volume trackthat was preserved during a host write to a source volume thathad an active snapshot.

    Linked Target Volume: A VMAX3 LUN that is linked to a SnapVXsnapshot in order to make the point-in-time of the snapshotaccessible to the host. Linked targets can have one of two modes:

    1)

    Nocopy Mode: Does not copy data to the linked targetvolume but still makes the point-in-time accessible viapointers to the snapshot. The point-in-time image will not

    be available after the target is unlinked because sometarget data may no longer be associated with the point-in-time.

    2)

    Copy Mode: Copies all relevant tracks from the snapshotspoint-in-time to the linked target volume to create acomplete copy of the point-in-time that will remainavailable after the target is unlinked.

    3EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    4/26

    TimeFinder SnapVX

    Creating Snapshots

    TimeFinder SnapVX allows snapshots to be taken without the use of a target volume.The snapshots are made as efficient as possible by sharing point-in-time tracks,which are called snapshot deltas. The snapshot deltas are stored directly in theStorage Resource Pool (SRP) where the source volume resides. Each snapshot willuse pointers to reference snapshot deltas appropriate for the specific point-in-timeimage.

    SnapVX Snapshots are created with the symsnapvx est abl i sh command. As partof the establish command the user will define a name for the snapshot. The user-defined name may be up to 32 characters long and may include alpha and numericcharacters, dash and underscores. The name is not case sensitive.

    Figure 1 depicts a source volume with three snapshots.

    Figure 1. Volume with three snapshots

    Generation Numbers

    It is possible to have multiple snapshots by the same name for the same set ofsource volumes, and generation numbers will be used to identify the differentsnapshots. It is important to understand how generation numbers are applied whendeciding to either reuse snapshot names or to use unique names for each snapshot.Generation numbers are relative to existing snapshots at the time of creating ordisplaying snapshots, and will change as snapshots are created and terminated.

    When a snapshot name is reused, the new session will become Generation 0 and allprevious sessions by the same name will have their generation numbers incrementedby a value of 1. Similarly, if a more recent snapshot is terminated, all oldersnapshots will have their generation numbers decreased by a value of 1. The mostrecent snapshot will always have a generation number of 0. This is advantageous

    4 EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    5/26

    TimeFinder SnapVX

    because after creating a new snapshot, the user will always know that it is Generation0 and will not have to search for the specific snapshot.

    For example, if a user creates a snapshot called hourly_backup at 1PM. Thissnapshot would be Generation 0. Then at 2PM they create another snapshot andreuse the name hourly_backup. At this point, the 1PM snapshot would becomeGeneration 1 and the 2PM snapshot would be Generation 0. Similarly, at this point if

    the 2PM snapshot (Generation 1) was terminated, the 1PM snapshot would againbecome Generation 0.

    Reusing snapshot names and employing generation numbers can be very useful. Auser could create a certain amount of generations for a specific snapshot, and thenevery day they could create a new one and terminate the oldest, using the samecommands each day and making scripting simple.

    However, the user must be cognizant of the fact that the generation numbers aredynamic; creating or terminating snapshots may cause generation numbers of othersnapshots to change. This could be problematic in situations where multiple userscreate snapshots on the same set of volumes, especially in situations where a singlevolume is in multiple groups (Storage Groups, Device Groups, Composite Groups,etc). Just as with any other feature or option, the user must make the best choice fortheir environment.

    Time-to-Live TTL)

    The user also has the option of defining a time-to-live (TTL) value on each snapshot,which acts as an expiration date. Snapshots will automatically terminate when theTTL expires, assuming the snapshot does not have any linked targets. If a snapshothas linked targets and the time-to-live has expired, the snapshot will terminate whenthe last target is unlinked.

    TTL values can either be set to a specific date (- absol ut e) or a specified number ofdays (- del ta). When a user sets TTL to a specific date, Solutions Enabler will

    internally use a delta that is calculated from the specified date and the current hosttime. This internal conversion eliminates the need for users to synchronize clocks orcalculate times between servers and the VMAX3. Time-to-Live values can bespecified when the snapshot is established, and can also be set or changed onexisting snapshots.

    Host Writes to Source

    Host writes to source volumes will create snapshot deltas in the SRP. Snapshotdeltas are the original point-in-time version of each track that has been updatedsince a snapshot was established. Multiple snapshots can share a single snapshotdelta if they are all active at the time a source track was updated. So, if a source trackthat is being updated needs to be preserved by multiple snapshots, only one

    snapshot delta is needed. This sharing allows the snapshots to be as space-efficientas possible.

    The output of command symsnapvx l i st det ai l and other commands will reportthe amount of deltas for each snapshot. The symsnapvx l i st det ai l output alsohas a Non-Shared Tracks field that provides the number of tracks uniquelyallocated to each snapshot. This information is valuable because it can be used to

    5EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    6/26

    TimeFinder SnapVX

    determine which snapshots are using the most non-shared space and will be mostbeneficial to terminate in the event of needing to free some space in the SRP. Onlynon-shared space is freed from the SRP when a snapshot is terminated.

    Redirect-On-Write

    SnapVX introduces Redirect-On-Write (ROW) technology to the VMAX3. When asource track is written to and the original data needs to be preserved for a

    snapshot(s), the new write will be accepted and asynchronously written to a newlocation in the Storage Resource Pool (SRP). The source volume will now point to thenew data while the snapshot(s) will continue to point to the original data (thesnapshot delta) in its original location.

    Redirect-On-Write is illustrated in the following figures. Figure 2 shows the sourcevolume and snapshot both pointing to the same location in the pool before the trackis updated.

    Figure 2. Source track prior to host update

    Figure 3 shows the source pointing to the new location in the pool after the hostwrite, while the snapshot continues to point to the original location.

    Figure 3. Source track and snapshot delta after Redirect-On-Write

    SnapVX will use Asynchronous Copy on First Write (ACOFW) rather than ROW incertain situations, specifically to prevent the new write from being directed to a lowertier. For example, if the original track resides on the Flash Drive tier, it may be copiedto a lower technology drive to allow the new write to be applied to the originallocation on the Flash tier.

    Shared Allocations

    VP Snap in Enginuity 5876 introduced backend allocation sharing between VP Snaptarget volumes; multiple snapshots from a source volume can share point-in-timeversions of a track. A backend allocation could be shared by up to 16 VP Snaps.Allowing multiple targets to reference the same shared copy provides cost-effectivespace savings. Shared track values on thin pools could be seen with SolutionsEnabler and Unisphere for VMAX.

    6 EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    7/26

    TimeFinder SnapVX

    SnapVX in HYPERMAX OS 5977 greatly enhances this shared allocation capability. Asnapshot delta can be shared between snapshots and shared with target volumes,and a source allocation can be shared with target volumes. And there is no limit tothe amount of volumes that can share a particular allocation.

    Sharing of a snapshot delta between snapshots is similar to that of VP Snap at 5876;when a source write comes in and the original track needs to be preserved as a

    snapshot delta for multiple snapshots, only a single snapshot delta will need to becreated.

    However, nocopy linked targets will begin to share tracks with the source volumeand/or share snapshot deltas for the specific point-in-time as part of the definingprocess, which is discussed on page 8. The targets will be added to sharing at thetime of link, independent of source track updates.

    If a source track that is being shared with a target (or multiple targets) is updated, theexisting track will be preserved as a snapshot delta and will continue to be sharedwith the target(s).

    Writes to a target will be applied only to the specific target. If the write is to a track

    that is being shared then the track for the specific target will be split from the sharedgroup, and any other snapshots and/or targets continue to share the original sharedtrack.

    Reporting of shared track counts on pools or SRPs by Solutions Enabler or Unispherefor VMAX is not applicable in HYPERMAX 5977. However, some Solutions Enablerdisplays will report shared track counts on pools for backwards compatibility to olderarrays.

    Solutions Enabler instances and Unisphere for VMAX will report the non-shared trackcount on each snapshot. The non-shared count is the most important value becausenon-shared snapshot deltas will be discarded when the snapshot is terminated,

    which will free space in the SRP.

    Linking Target Volumes to Snapshots

    A target volume can be linked to a snapshot when a user wants to present a point-in-time copy to a host. Multiple targets can be linked to a single snapshot. Writing to alinked target will not affect the point-in-time of the snapshot; should the data on thelinked target be corrupted by the user activity the target can be relinked to theoriginal snapshot. Figure 4 depicts a source volume with three snapshots, and atarget linked to the 3rdsnapshot.

    7EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    8/26

    TimeFinder SnapVX

    Figure 4. Target linked to a snapshot

    Targets can be linked in either copy mode to create full-volume copies that willremain available even after a snapshot is terminated, or in nocopy mode to createspace-saving copies that will only allocate space due to host writes to the target.Host writes to a source volume that has a snapshot with a target linked in nocopymode will only preserve point-in-time tracks as snapshot deltas, and will not causeany tracks to be copied to the linked target. The linked targets will access thepreserved point-in-time by sharing the snapshot delta allocation.

    Snapshots that have targets linked in nocopy mode cannot be terminated. The usercan either unlink the target or change it to copy mode and terminate the snapshotafter the copy completes.

    Linked targets can be SRDF R1 volumes, as long as the link command is in copymode.

    Volumes with persistent allocations cannot be linked targets. Likewise, persistentallocations cannot be set on linked targets. Persistent allocations are tracks that areunaffected by a standard reclaim operation and any Clone, Snap, or SRDF copyoperations. Tracks are marked as persistent by the user with Solutions Enabler orUnisphere for VMAX.

    Relinking

    The r el i nkcommand provides the capability to perform incremental refreshes oflinked targets. The r el i nkcommand can also be used to link a target to a differentsnapshot of the same source volume. The r el i nkcommand can be issued to bothcopy and nocopy mode linked targets. This functionality provides an easy way forusers to check different points-in-time if they are unsure which one is the best forthem to access.

    8 EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    9/26

    TimeFinder SnapVX

    Unlinking

    The unl i nkcommand is used to break the relationship between a snapshot and alinked target. Copy mode linked targets can be unlinked once copying is completeand will retain a full, useable point-in-time copy of the source volume.

    After a nocopy linked target has been unlinked, the target data should not beconsidered valid since a considerable amount of the data may not be associated with

    the point-in-time.

    A target volume that has cascaded snapshots can only be unlinked once the targethas completely copied. In the case of a nocopy linked target that has cascadedsnapshot(s), the user will need to set modeto copy, then unlink after copy hascompleted. Cascaded snapshots are discussed further on page 10.

    Defining State

    SnapVX introduces a new concept of a defined state for linked target tracks.Defining may aid performance of host access of target tracks that have not yet beencopied to target by presenting data directly from the SRP and eliminating the need fora redirect to source or snapshot.

    The point-in-time of a snapshot is immediately available through the target volume assoon as it is linked. However, its track tables will still be pointing to its old tracklocations and all tracks are considered undefined. Shortly after linking, abackground defining process will change the pointers of each track to reflect thelocation of the appropriate track version for the specific point-in-time.

    Figure 5 illustrates the defining process. The target is linked to snapshot 2. The firsttwo tracks on the linked target volume have been defined and point directly to thedata in the SRP. The last two tracks on the linked target volume have not yet beendefined and are still pointing to the snapshot. Note that an undefined track couldpoint to a track on source rather than snapshot if that is the appropriate version ofthe track for the specific point-in-time represented by that snapshot.

    Figure 5. Tracks Defined

    Defining applies to both copy mode and nocopy mode linked targets. In the case ofcopy mode linked targets, the copy will begin after the defining process hascompleted.

    9EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    10/26

    TimeFinder SnapVX

    The point-in-time of the snapshot is immediately available when the target is linked.The user does not need to wait for the target volume to be defined before accessingthe point-in-time. A write to an undefined target track will invoke the definingprocess for the track. And a read to an undefined target track will be redirected to theappropriate point-in-time version of the track via either the snapshot or the sourcevolume.

    The user can check for the defined state of a linked target with the followingcommand:

    symsnapvx s i d ver i f y sg snapshot_name l i nked - def i ned

    Linking Larger Target

    A target volume that is larger than the source volume can be linked to the snapshot ineither copy or nocopy mode. This functionality is enabled by default. There is anenvironmental variable SYMCLI _SNAPVX_LARGER_TGTthat can be set to preventlarger targets from being used.

    Source Volumes / Linked Targets SRP Relationships

    Source volumes and linked targets can be associated either to the same or separateSRPs. Single SRP systems are generally recommended because they are easier tomanage and performance may be better when spreading workloads across allavailable resources in the array. Also, please note that SRP count and configurationneed to be specified during the system ordering process.

    Snapshot deltas will always be stored in the source volumes SRP. There is noadvantage to having nocopy linked targets in a separate SRP because writes to asource volume will only create snapshot deltas and will not initiate a copy to target.

    If opting for a separate SRP for copy mode linked targets, the target SRP must haveenough disks to support the expected capacity and performance requirements of thetarget volumes.

    A single snapshot can have both copy and nocopy linked targets. All linked targetsfrom a single snapshot do not need to be in the same SRP. Source volumes andlinked targets (copy and nocopy modes) can be moved between SRPs whileTimeFinder sessions are active; FAST will move allocations accordingly.

    Restore Operations

    Snapshots can be restored directly to the source volume(s) via the symsnapvxrestorecommand or via Unisphere for VMAX. The symsnapvx t er mi nate restoredcommand will terminate the restored session only and will not break thesource-to-snapshot relationship. Restoring from a snapshot to source will not affectthe point-in-time of any other snapshots or linked targets.

    Restoring from a linked target back to a source is functionally possible although it isnot done with a restore command. Instead, the user would take a snapshot of alinked target, which will essentially create a cascaded scenario, discussed further inthe following section. The user could then use the original source volume as a linkedtarget to the cascaded snapshot. Cascaded snapshots are discussed further in thefollowing section.

    10EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    11/26

    TimeFinder SnapVX

    Cascading Snapshots

    Cascading refers to taking a snapshot of a linked target, and also to linking a target toa snapshot of a linked target. All tracks on a target volume must be defined before asnapshot can be taken of the target volume.

    Figure 6 illustrates one example of cascaded SnapVX sessions.

    Figure 6. Cascaded Snapshots

    The cascading capabilities of SnapVX are very robust. However, it is important tonote that some historical reasons for cascading clone or snap sessions may not existwith SnapVX.

    Since point-in-time data for SnapVX snapshots is stored in the SRP and cannot be

    directly accessed by the host, the point-in-time of the snapshot is always pristine,and there is no need to make a Gold Copy clone to cascade from. Even if a target islinked to the snapshot and written to, the point-in-time of the snapshot will notchange. This reduces the amount of full volume copies that are required in most usecases making SnapVX very space efficient.

    Furthermore, the defining mechanism allows reads to tracks that do not reside on thetarget volume to be serviced directly from the SRP and not redirected to the sourcevolume as would be the case with traditional snaps or clones. This not only improvesperformance of the read but also reduces the possibility of target reads affectingperformance of the source volume.

    Cascaded SnapVX sessions are supported with the following considerations:

    There is no limit on the amount of cascaded hops thatare allowed.

    A snapshot of a linked target is only allowed once thelinked target is in either the def i nedor copi edstate.

    11EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    12/26

    TimeFinder SnapVX

    A cascaded snapshot can only restore to a linked targetthat is in copy mode and has fully copied.

    The cascaded chain can be broken at any point byunlinking the target from the snapshot with thefollowing rules:

    A snapshot that has a linked target cannot be

    terminated.

    A linked target must be in copy mode and fullycopied before it can be unlinked.

    Reserved Capacity

    Reserved Capacity is a percentage of the SRP that can only be consumed by new hostwrites. Existing and new snapshots will be affected if the Free Capacity of the SRPfalls below the set Reserved Capacity. The following commands can be used to viewand change the values:

    symcf g l i st sr p v

    symconf i gur e - si d - cmd "set sr p r esv_cap=; " commi t

    Valid values for Reserved Capacity percentage are from 1% to 80%.

    As an example, if the reserved capacity on an SRP is set to 10% and the SRP becomes90% full with volume allocations, snapshot deltas, and SRDF Delta Set Extensionallocations, then only new host writes can consume the last free 10% of the SRP.

    When only Reserved Capacity is available in an SRP, a snapshot will fail at the nextattempt to create a new snapshot delta, and the snapshot will need to be terminated.Copy to targets will halt and will not be able to complete. This includes SnapVXlinked targets and TimeFinder emulation targets. Copy will resume if free space is

    made available in the SRP, or if the Reserved Capacity value is lowered to a sufficientvalue.

    The Reserved Capacity only affects the TimeFinder copy process. Host reads andwrites to the targets will still be possible.

    Interoperability

    TimeFinder SnapVX is interoperable with other HYPERMAX OS features under thefollowing conditions:

    SRDF

    Snapshots can be taken from SRDF/A R2 volumes

    Write-pacing is not required

    Linked targets in copy mode can be SRDF source volumes

    FAST

    Allocations owned by a source volume will be managed bythe Service Level Objective of the source volumes StorageGroup

    12EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    13/26

    TimeFinder SnapVX

    Allocations owned by a target volume will be managed bythe Service Level Objective of the target volumes StorageGroup

    Snapshot deltas will be managed by the Optimized ServiceLevel Objective

    Read miss I/Os to target tracks that are owned by the source

    volume will increment the FAST metrics for the sourcevolume, not the target volume, and may contribute to theextent being promoted

    Source and target volumes can be moved across SRPs whileTimeFinder sessions are active

    Zero Space Reclaim

    Zero space reclaim is supported on SnapVX source andtarget volumes.

    Storage Group Operations

    SnapVX has the ability to perform operations on entire Storage Groups (SGs). Thisreduces complexity by eliminating the need for users to create separate device files,device groups or composite groups for replication. Those options are still available inSolutions Enabler. The storage group option is the only option for SnapVX inUnisphere for VMAX. This document will focus on the storage group option in thefollowing implementation section.

    When creating snapshots with the symsnapvx est abl i shcommand, the sgswitch is used to specify the source SG, and one snapshot of the same name will becreated for each volume in the SG. If for some reason a snapshot cannot be createdfor one of the volumes in the SG, the entire operation will fail and no snapshots willbe created.

    When linking target volumes to a snapshot with the symsnapvx l i nkcommand, thel nsgswitch is used to specify the entire target SG to link. Similar to the establ i shcommand, if any volume in the SG cannot be linked for some reason, the entireoperation will fail and no volumes will be linked. Unisphere for VMAX also has anoption that will create a new SG and appropriate volumes for the user, which will beshown later.

    In the case of cascaded storage groups, a symsnapvx command issued to a parentstorage group will be applied to all child storage groups.

    Expanding Storage Groups with Active Snapshots

    SnapVX is designed to replicate entire applications that are configured on volumescontained in an entire SG. It is possible to add volumes to an SG that has activesnapshots. The new volumes will be included the next time a snapshot is taken.However, the volumes will not be included in previously existing snapshots.

    If an SG is restored from snapshots that do not include the new volumes, the SG willbe taken back to a point-in-time when the new volumes did not exist. Therefore,these new volumes in the SG should not be presented to the application and will be

    13EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    14/26

    Implementing TimeFinder SnapVX

    set to Not Ready. The volumes will remain Not Ready after the restored session isterminated and the user will need to determine the best course of action toreintroduce the new volumes to the SG. The volumes will automatically becomeready again if the user decides to restore from snapshots that include these volumes.

    Similar action is taken for using SGs that have been expanded as linkedtargets. If the SG that is being used as the linked target contains more

    volumes than are included in the specified snapshot, the extra volumeswill be set to Not Ready and will not be included in the point-in-time image.The user will need to determine the best course of action to remove orreintroduce the extra volumes. And if the SG is linked to another snapshotthat contains all of the volumes in the SG, the volumes will automaticallybe made ready and will be included in the session.

    Implementing TimeFinder SnapVX

    Creating Snapshots

    Figure 7. Creating a snapshot called hourlysnap and keeping for 2 days

    Figure 8. Creating a Snapshot with Unisphere Data Protection Wizard

    $ symsnapvx - si d 67 - nop - sg snapsour ce est abl i sh - name hour l ysnap - t t l - del t a 2

    Est abl i sh oper at i on execut i on i s i n pr ogr ess f or t he stor age gr oup snapsour ce.Pl ease wai t . . .

    Pol l i ng f or Est abl i sh. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . St ar t ed.Pol l i ng f or Est abl i sh. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done.Pol l i ng f or Act i vat e. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . St ar t ed.Pol l i ng f or Act i vat e. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done.

    Est abl i sh oper at i on successf ul l y execut ed f or t he st orage gr oup snapsour ce

    14EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    15/26

    Implementing TimeFinder SnapVX

    Figure 9 shows there are 4 generations of snap from the storage group snapsouce,and Figure 10 shows a more detailed view giving more information including the eachsnapshot was taken and expiration date if one was set on creation.

    Figure 9. Listing of snapshots for storage group snapsource

    Figure 10. Listing of snapshots for storage group snapsource with detail option

    Note: See Appendix B for information on the GCM Flag

    $ symsnapvx - si d 67 l i st - sg snapsour ce

    St or age Gr oup ( SG) Name : snapsour ce

    SG' s Symmetr i x I D : 000197200067 ( Mi cr ocode Ver si on: 5977)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Sym Num Fl gsDev Snapshot Name Gens FLRG Last Snapshot Ti mest amp- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -00040 hour l ysnap 4 . . . . Mon Oct 20 11: 00: 00 201400041 hour l ysnap 4 . . . . Mon Oct 20 11: 00: 00 201400042 hour l ysnap 4 . . . . Mon Oct 20 11: 00: 00 201400043 hour l ysnap 4 . . . . Mon Oct 20 11: 00: 00 2014

    Fl gs:( F)ai l ed : X = Fai l ed, . = No Fai l ur e( L) i nk : X = Li nk Exi st s, . = No Li nk Exi st s

    ( R) est ore : X = Rest ore Act i ve, . = No Rest ore Act i ve( G) CM : X = GCM, . = Non- GCM

    symsnapvx -s i d 67 l i st - sg snapsour ce detai l

    or age Gr oup ( SG) Name : snapsour ceG' s Symmet r i x I D : 000197200067 ( Mi cr ocode Ver si on: 5977)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Tot alym Fl gs Del t as Non- Sharedv Snapshot Name Gen FLRG Snapshot Ti mest amp ( Tr acks) ( Tr acks) Expi r at i on Dat e- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -040 hour l ysnap 0 . . . . Mon Sep 29 11: 00: 00 2014 26371 25848

    hour l ysnap 1 . . . . Mon Sep 29 10: 00: 00 2014 26389 25866 hour l ysnap 2 . . . . Mon Sep 29 09: 00: 00 2014 26389 5120 Thu Oct 23 10: 13: 55 2hour l ysnap 3 . . . . Mon Sep 29 08: 00: 00 2014 26389 5120 Wed Oct 22 10: 11: 58 2

    041 hour l ysnap 0 . . . . Mon Sep 29 11: 00: 00 2014 26379 25886 hour l ysnap 1 . . . . Mon Sep 29 10: 00: 00 2014 26393 25900 hour l ysnap 2 . . . . Mon Sep 29 09: 00: 00 2014 26393 5086 Thu Oct 23 10: 13: 55 2hour l ysnap 3 . . . . Mon Sep 29 08: 00: 00 2014 26393 5086 Wed Oct 22 10: 11: 58 2

    042 hour l ysnap 0 . . . . Mon Sep 29 11: 00: 00 2014 26377 25833 hour l ysnap 1 . . . . Mon Sep 29 10: 00: 00 2014 26388 25844 hour l ysnap 2 . . . . Mon Sep 29 09: 00: 00 2014 26388 5199 Thu Oct 23 10: 13: 55 2hour l ysnap 3 . . . . Mon Sep 29 08: 00: 00 2014 26388 5199 Wed Oct 22 10: 11: 58 2

    043 hour l ysnap 0 . . . . Mon Sep 29 11: 00: 00 2014 26377 25857 hour l ysnap 1 . . . . Mon Sep 29 10: 00: 00 2014 26386 25866 hour l ysnap 2 . . . . Mon Sep 29 09: 00: 00 2014 26386 5137 Thu Oct 23 10: 13: 55 2hour l ysnap 3 . . . . Mon Sep 29 08: 00: 00 2014 26386 5137 Wed Oct 22 10: 11: 58 2

    - - - - - - - - - - - - - - - - - - - -422172 247984

    gs :(F )ai l ed : X = Fai l ed, . = No Fai l ure(L) i nk : X = Li nk Exi sts , . = No Li nk Exi sts( R) est ore : X = Rest or e Acti ve, . = No Rest or e Acti ve( G) CM : X = GCM, . = Non- GCM

    15EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    16/26

    Implementing TimeFinder SnapVX

    Figure 11. Viewing Snapshots from Unisphere for VMAX

    Linking, relinking, unlinking

    To access a point in time copy, you must create a link from the snapshot data to ahost mapped target volume. The links may be created in Copy mode for a permanentcopy of the target volume, or in Nocopy mode for temporary use.

    Copy mode links create full-volume clones of the data. Nocopy mode links are spacesaving snapshots that only consume space when host data is written directly to thetarget volume. Both modes are allowed to be in either the same or separate SRP asthe source volume.

    Figure 12. Solutions Enabler Link Operation

    Figure 12 shows the cli commands for linking to a snapshot, note that a generationnumber was specified. If no generation is specified the most recent snapshot for the

    snapshot name provided will automatically be selected.

    Note: Please see Appendix C for information on monitoring the copy process to copymode linked targets.

    When linking snapshots via Unisphere for VMAX, the user is presented with existingSGs to select for the targets. Unisphere for VMAX can also create a new SG with theappropriate volumes and perform the link operation from one simple wizard, as seenin Figure 13.

    $ symsnapvx - si d 67 - sg snapsour ce - snapshot _name hour l ysnap - gen 2 l i nk - l nsg snapt arget

    Execut e Li nk operat i on f or St orage Gr oup snapsour ce (y/ [ n] ) ? y

    Li nk operati on execut i on i s i n pr ogr ess f or t he st or age gr oup snapsour ce. Pl ease wai t . . .Pol l i ng f or Li nk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . St ar t ed.Pol l i ng f or Li nk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done.

    Li nk operat i on successf ul l y execut ed f or t he st orage gr oup snapsour ce

    16EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    17/26

    Implementing TimeFinder SnapVX

    Figure 12. Unisphere for VMAX Link Wizard

    Should the user need to transition to a different snapshot copy using the same set ofsource and target volumes a relink operation can be performed linking to a differentsnapshot or a different generation of the same snapshot. Users should unmount anytarget volumes from the mount host and remount after relink to ensure that the datathe host sees is correct Figure 14 shows the relink process from the CLI and Figure 15shows the relink process the Unisphere GUI.

    Figure 14. Relinking via command line

    $ symsnapvx - si d 67 - sg snapsour ce - snapshot _name hour l ysnap - gen 0 rel i nk - l nsg snapt arget

    Execut e Rel i nk operat i on f or St orage Gr oup snapsour ce (y/ [ n] ) ? y

    Rel i nk operati on execut i on i s i n pr ogr ess f or t he st or age gr oup snapsour ce. Pl ease wai t . . .Pol l i ng f or Rel i nk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . St ar t ed.Pol l i ng f or Rel i nk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done.

    Rel i nk operat i on successf ul l y execut ed f or t he st orage gr oup snapsour ce

    17EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    18/26

    Implementing TimeFinder SnapVX

    Figure 15. Relinking a target snapshot to a different point in time Unisphere for VMAX

    HYPERMAX OS supports up to 1,024 linked targets per source volume.

    At any time the target volume can be unlinked from the snap copy, if the link wascreated with the copy mode and state transitioned to a copied state the targetvolumes will be an independent copy of the source.

    Independent copies that are no longer required can be reused as linked targets in thefuture providing there are no snapshots cascaded off these volumes. If the spaceused by linked copies needs to be returned to the SRP the user can run the symdevf r ee al l command to return this space to the system for global use. Please notethat the symdev f r ee al l command provides the user with the ability to wipe a

    volume of all data and should be used with caution and only by knowledgeableadministrators.

    Restoring from snapshots

    It is possible to restore from any point in time snapshot that is available in the array.Figure 16 shows how to restore from a snapshot to the production volume using theCLI commands. It is recommended to unmount the production volume prior toissuing the restore operation and remount after to ensure that the host sees the

    18EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    19/26

    Emulation Support for TimeFinder Mirror, Clone, and VP Snap

    correct data. Users can determine which snapshot to use by verifying the datathrough a linked target with the link/relink commands.

    Figure 16. Restoring from snapshot

    Figure 16 shows the command line option restoring from generation 2 of a snapshotto the source volume.

    Emulation Support for TimeFinder Mirror, Clone,

    and VP Snap

    SnapVX provides emulation modes for TimeFinder Mirror, Clone, and VP Snap. Thisallows the user to issue legacy TimeFinder commands when in reality SnapVXsessions are created in the background. The sessions will appear to be legacyTimeFinder sessions to the user. A single source volume cannot have both SnapVXand Emulation sessions at the same time.

    Solutions Enabler and Unisphere for VMAX steps to create sessions are exactly thesame as in the latest versions of Enginuity 5876, and the sessions will follow allfeature restrictions from Enginuity 5876, including session counts, cascaded hop

    limits, and requiring source-target pairing. Emulation sessions cannot takeadvantage of Storage Group operations ( sg option). Emulation sessions will copydata directly from source to target without using snapshot deltas.

    Emulation mode target volumes can be moved between SRPs while sessions areactive.

    TimeFinder VP Snap Emulation

    VP Snap control commands at 5977 are exactly the same as 5876, enabling users touse their existing VMAX VP Snap scripts on VMAX3. However, there are severalbehavioral differences that need to be understood when preparing volumes andmonitoring sessions. The following behaviors apply to VP Snap at 5977:

    All VP Snap target volumes from a specific source do not need to beassociated to the same SRP.

    VP Snap target volumes can be moved across SRPs while sessions areactive. Non-shared allocations will be moved.

    As source tracks are updated, the Protected Track counts will notdecrement.

    $ symsnapvx - si d 67 - sg snapsour ce - snapshot_name hour l ysnap - gen 2 r est ore

    Execut e Rest or e oper ati on f or St orage Gr oup snapsour ce ( y/ [ n] ) ? y

    Rest or e oper at i on execut i on i s i n pr ogr ess f or t he stor age gr oup snapsour ce. Pl ease wai t . . .Pol l i ng f or Rest or e. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . St ar t ed.Pol l i ng f or Rest or e. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done.

    Rest or e oper at i on successf ul l y execut ed f or t he st or age gr oup snapsour ce

    19EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    20/26

    Conclusion

    As source tracks are updated when the session is active, the preservedpoint-in-time tracks for the VP Snap emulation sessions will be storedin the SRP of the source volume, even if the target volume is in adifferent SRP. Only changed tracks on the target volume are stored inthe target SRP.

    Shared allocation counts in Solution Enabler and Unisphere for VMAX

    do not apply due to the way that shared allocations are handled at5977. These counters will always show zero.

    VP Snap target volumes will not be deallocated when the sessions areterminated. If the target volume is in a separate SRP from the sourcevolume, any allocations that reside in the source SRP after terminatewill be relocated to the target SRP by a FAST compliance move.

    Note: Please see Appendix C for information on monitoring the copy process of Mirrorand Clone emulation sessions.

    TimeFinder Snap Deprecation

    TimeFinder Snap is not available with VMAX3 for open systems. EMC

    offers services for TimeFinder Snap users that would like help converting toSnapVX on VMAX3. Please contact your local account team for moreinformation.

    Conclusion

    TimeFinder SnapVX provides new functionality and combines the benefits of theTimeFinder Clone, Mirror, and VP Snap into one easy-to-use software feature.

    SnapVX allows the user to create snapshots without the need for a target volume.Snapshots can then be used to link to target volumes in either full-copy or nocopymode which can then be presented to the host server. SnapVX allows for far greaterscalability than previous TimeFinder offerings, with up to 256 snapshots per sourcevolume and 1024 linked target volumes per source volume. SnapVX also introducesthe ability to take snapshots on a Storage Group level, and uses advanced redirect-on-write technology.

    SnapVX is compatible with many other HYPERMAX OS features. And along with all ofthe new functionality that is provided, users can also run emulation of TimeFinderMirror, Clone, and VP Snap which will use SnapVX technology in the background,completely transparent to the user until they are ready to make the switch and takefull advantage of SnapVX.

    20EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    21/26

    References

    References

    Reference information and product documentation can be found at support.EMC.comincluding;

    EMC VMAX3 Family with HYPERMAX OS Product Guide

    EMC Solutions Enabler TimeFinder Family CLI User Guide

    EMC HYPERMAX OS for VMAX 100K 200K 400K NewFeatures White Paper

    EMC VMAX3 Service Level Provisioning with FullyAutomated Storage Tiering (FAST)

    21EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    22/26

    Appendices

    Appendices

    Appendix A

    TimeFinder SnapVX State Table

    The following table describes prerequisites, transient states, and final states for all

    controls:

    Action

    Prerequisite

    Transient State

    Final State

    Establish None Establish In Progress Established

    Restore Established

    If the source device is a linktarget, must be fully copied.

    Restore In Progress Restored

    Terminate Established Terminate In Progress NA

    Terminate withFLAG1_RESTORED

    Restored NA NA

    Setmode Copy Linked NoCopy Link Copy In Progress Link Copied

    Setmode NoCopy Link Copy In Progress or LinkCopied

    NA Linked

    Set TTL Established with no links orrestores.

    NA NA

    Link Established NA Linked

    Link with FLAG1_COPY Established Link Copy In Progress Link Copied

    Unlink Linked or

    Link Copied

    If the target is the source ofanother snapshot, the linkmust be fully copied.

    NA NA

    Relink Linked or

    Link Copied

    NA Linked

    Relink withFLAG1_COPY

    Linked or

    Link Copied

    Link Copy In Progress Link Copied

    Rename Established NA NA

    22EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    23/26

    Appendices

    Appendix B

    Geometry Compatibility Mode GCM)

    An array running HYPERMAX OS cannot create a device that is exactly the same sizeas a device with an odd number of cylinders on an array running Enginuity 5876. Inorder to support the full functionality, SRDF requires that R1 and R2 devices in adevice pair be same size and TimeFinder requires that source and target devices are

    the same size.

    HYPERMAX OS introduces a new device attribute, Geometry Compatible Mode (GCM).A device with GCM set is treated as half a cylinder smaller than its true configuredsize so the device will be treated as the same size as an Enginuity 5876 device withan odd number of cylinders, thus enabling full functionality between HYPERMAX OSand Enginuity 5876 for SRDF, TimeFinder SnapVX, and TimeFinder emulations, andORS.

    The GCM attribute can only be set for devices on arrays running HYPERMAX OS. Theattribute can be set manually or automatically as part of an operation that creates alocal or remote replication relationship.

    The symdev set /unset , symdg set /unset , symcg set /unset , and symsgset /unset commands have been enhanced with a new option - gcmto set andunset GCM for a device or group.

    The symdevshow, symdev l i s t v, symdg show l d, symdg l i st l d v,sympdshow, and sympdl i s t vcommands have been enhanced to report theGCM attribute.

    The symr dfcreatepair command has been enhanced to transparently set /unset the GCM attribute as part of the create pair operation, as follows:

    o Set the GCM attribute for a target device that is configured a cylinder larger.The source of the copy can be:

    A device on an array running Enginuity 5876 with an odd number ofcylinders and capacity that matches the GCM size of the device.

    A GCM device on an array running HYPERMAX OS.

    o Unset the GCM attribute for a target device that is configured the exact samesize as the source of the copy. The source of the copy can be:

    A device on an array running Enginuity 5876 with even number of thecylinders and capacity that matches the size of the device on the array

    running HYPERMAX OS.

    A device on the array running HYPERMAX OS without the GCM attribute.

    ORS

    o The ORS create operation will be modified to use the GCM size whenestablishing a push or pull session to the remote target.

    23EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    24/26

    Appendices

    TimeFinder SnapVX

    o

    If a SnapVX snapshot is created from a GCM device, then the resultingsnapshot will also be given the GCM attribute and this will be reported as anattribute of the snapshot.

    o

    A SnapVX link operation will change the GCM attribute on the link target

    device to match the GCM setting of the snapshot.

    TimeFinder Clone and VP Snap

    o

    Create, full establish, or full restore operations between a GCM device and anon-GCM device will result in the device that is the target of the data copyhaving its GCM attribute changed to match the GCM attribute setting of thedevice that is the source of the data copy.

    o When the source and target devices are the same physical size, and thesource of a clone session is a GCM device and the target device is not, thenthe Clone to Larger Target rules will be enforced.

    TimeFinder Mirror

    o

    Full establish and full restore operations between a GCM device and a non-GCM device will result in the device that is the target of the data copy havingits GCM attribute changed to match the GCM attribute setting of the devicethat is the source of the data copy.

    Appendix C

    Monitoring the Copy Process

    When monitoring the copy process to a full copy linked target, the number of tracksremaining to copy are determined by a sum of multiple internal counters, capped atthe maximum size of the volume. If the sum of these values exceeds the size of the

    device, then it may appear that the copy has not started or is stuck when querying thesession from Solutions Enabler or Unisphere for VMAX, even though the copy hasactually begun. See Figure 17 as an example.

    Figure 17. Viewing snapshot with linked targets

    $ symsnapvx - si d 067 l i st - sg snapsour ce - l i nked - detai l

    Storage Gr oup (SGName : SNVX_SGSG' s Symmet r i x I D : 000197200067 ( Mi cr ocode Ver si on: 5977)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Sym Li nk Fl gs Remai ni ng DoneDev Snapshot Name Gen Dev FCMD Snapshot Ti mest amp ( Tr acks ) ( %)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -00040 hour l ysnap 2 0003D . . . I Mon Sep 29 14: 01: 59 2014 18510 000041 hour l ysnap 2 0003E . . . I Mon Sep 29 14: 01: 59 2014 18510 000042 hour l ysnap 2 0003F . . . I Mon Sep 29 14: 01: 59 2014 18510 0

    00043 hour l ysnap 2 00040 . . . I Mon Sep 29 14: 01: 59 2014 18510 0- - - - - - - - - -

    74040Fl gs:

    ( F)ai l ed : F = For ce Fai l ed, X = Fai l ed, . = No Fai l ur e( C) opy : I = CopyI nPr og, C = Copi ed, D = Copi ed/ Dest aged, . = NoCopy Li nk( M) odi f i ed : X = Modi f i ed Tar get Data, . = Not Modi f i ed( D) ef i ned : X = Al l Tracks Def i ned, . = Def i ne i n pr ogr ess

    24EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    25/26

    Appendices

    The user may be able to notice usage increase on the target volumes or SRPs. Thisdoes not slow down the actual copy, just the way that the copy is reported. Once theinternal counters drop below a certain threshold the number of tracks reported to theuser will drop dramatically.

    Another effect of this is that incremental relink operations may appear as fulloperations because the internal counters add up to the full size of the volume. Bothof these behaviors will be more noticeable on larger volumes.

    This behavior also applies to monitoring the copy process of TimeFinder Mirror andClone emulation sessions, which use SnapVX in the background.

    This behavior is also documented in knowledgebase solution 196700.

    25EMC VM AX3 Loc al Rep lic at ion

  • 7/21/2019 EMC VMAX3 Local Replication

    26/26

    Appendices

    Copyright 2015 EMC Corporation. All rights reserved. Published in the USA.

    Published February, 2015

    EMC believes the information in this publication is accurate as of itspublication date. The information is subject to change without notice.

    The information in this publication is provided as is. EMC Corporation makes nrepresentations or warranties of any kind with respect to the information in thispublication, and specifically disclaims implied warranties of merchantability o

    fitness for a particular purpose. Use, copying, and distribution of any EMCsoftware described in this publication requires an applicable software license.

    EMC2, EMC, and the EMC logo are registered trademarks or trademarks of EMCCorporation in the United States and other countries.

    All other trademarks used herein are the property of their respective owners.

    For the most up-to-date regulatory document for your product line, go to EMCOnline Support (https://support.emc.com).

    26EMC VM AX3 Loc al Rep lic at ion

    https://support.emc.com/https://support.emc.com/https://support.emc.com/https://support.emc.com/