Cloning a Copy of a STD to other STDs Using SYMCLI

 

Topic

Managing TimeFinder

Selections

Select TimeFinder Action: Managing TimeFinder with Solutions Enabler SYMCLI

Select operating system: Solaris

Select a task: Managing TimeFinder/Clone

Select a task: Cloning a copy of a STD to other STDs

 

 

Contents

·             TimeFinder/Clone Standard to Standard devices. 4

 


 

 

·        TimeFinder/Clone Standard to Standard devices

 

Overview

In the following TimeFinder/Clone example, the data from a source (STD) device is copied to two different target (STD) devices. A device group is used to control these clone operations.

 

This procedure is based on content from the following EMC manual:

·         EMC Solutions Enabler Symmetrix TimeFinder Family Product Guide

 

You can download the guide from EMC Online Support (registration required): https://support.EMC.com

 

 

1.   

Select devices

To list the devices on the Symmetrix array, enter:

 

   symdev –sid SymmID list

 

Select the devices to use for the clone operation. This example will use devices 101, 102, and 103.

 

 

2.   

Create the device group

Use the symdg command to create a device group. This example names the device group clonegrp:

 

   symdg create clonegrp –type regular

 

 

3.   

Add devices to the device group

Add the source and target devices to the device group. In the following example the devices are added using the –range option, as follows:

 

  symld –g clonegrp addall dev –range 101:103 –sid 0041

 

By default, their logical device names will be DEV001, DEV002, and DEV003, respectively.

 

 

4.   

Create and verify the clone copy session

Use the symclone create command to create a CopyOnAccess copy session so that selected data can be cloned from source device DEV001 to target DEV002 when the clone operation is activated.

 

   symclone -g clonegrp create DEV001 sym ld DEV002

 

Use the symclone query command to verify that the clone pair is in the Created state, as follows:

 

symclone -g clonegrp query DEV001

 

Device Group (DG) Name: clonegrp

DG's Type             : REGULAR

DG's Symmetrix ID     : 000187900041

 

      Source Device          Target Device       State     Copy

------------------------- ------------------- ------------ ----

                Protected

Logical   Sym   Tracks    Logical     Sym CG SRC <=> TGT  (%)

------------------------- ------------------- ------------ ----

 

DEV001    0101     138090 DEV002      0102 .X Created        0

 

Total            --------

  MB(s)            4315.3

 

Legend:

 

(C): The background copy setting is active for this pair.

(G): The Target device is associated with this group.

 

 

 

5.   

Activate the clone copy session

Use the symclone activate command to activate the clone copy session.

 

   symclone -g clonegrp activate DEV001 sym ld DEV002

 

Use the symclone query command to verify that the clone pair is in the CopyOnAccess state.

To ensure that you do not copy over previously copied data, the clone operation results in putting a hold on the target device. The symld list command with the –held option displays any devices in the device group that are currently being held. This hold is removed when you terminate the clone pair session.

 

 

6.   

Create the second clone copy session

Use the symclone create command to create a copy session between the same source device (DEV001) and a different target device (DEV003). The –copy option will cause the immediate initiation of a full copy between the devices when the copy session is activated.

 

   symclone -g clonegrp create DEV001 sym ld DEV003 -copy

 

 

7.   

Activate the second copy session

Use the symclone activate command to activate the second clone copy session:

 

   symclone -g clonegrp activate DEV001 sym ld DEV003

 

 

8.   

Verify the clone copy sessions

Use the symclone query command with the –multi option to display the multiple copy sessions for source device DEV001 and an updated state for each clone pair. The state of the DEV001/DEV003 pair has changed from Created to CopyInProg (which is 1 % complete). The state of the DEV001/DEV002 pair is still CopyOnAccess.

 

   symclone -g clonegrp query DEV001 -multi

 

Device Group (DG) Name: clonegrp

DG's Type             : REGULAR

DG's Symmetrix ID     : 000187900041

 

      Source Device          Target Device       State     Copy

------------------------- ------------------- ------------ ----

                Protected

Logical   Sym   Tracks    Logical     Sym  CG SRC <=> TGT  (%)

------------------------- ------------------- ------------ ----

 

DEV001    0101     136639 DEV003      0103 XX CopyInProg     1

                   138090 DEV002      0102 .X CopyOnAccess   0

 

Total            --------

  MB(s)            4270.0

 

Legend:

 

(C): The background copy setting is active for this pair.

(G): The Target device is associated with this group.

 

 

9.   

Terminate the clone copy sessions

Use the symclone terminate command to end the DEV001/DEV002 clone pair session normally. Normal termination is possible whenever a clone pair is in the Created, Copied, or CopyOnAccess state.

 

   symclone -g clonegrp terminate DEV001 sym ld DEV002

 

Use the same command to terminate the DEV001/DEV003 clone pair session after the clone pair is in the Created, Copied, or CopyOnAccess state.

 

   symclone -g clonegrp terminate DEV001 sym ld DEV003

 

 

 

 

7Table of Contents